Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
Update BurpExtender.java
Browse files Browse the repository at this point in the history
  • Loading branch information
nwalsh1995 committed Feb 1, 2017
1 parent 19cf2c3 commit eeb7f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/burp/BurpExtender.java
Expand Up @@ -103,7 +103,7 @@ public List<IScanIssue> doPassiveScan(IHttpRequestResponse baseRequestResponse)
String jsCode = tag.html();
// check that we are executing javascript with our parameter value as a method name
// this would find things like <script>opener.{callback}({jsonp}) or <script>{callback}( {jsonp} )</script>
if( jsCode.contains(p.getValue() + "({") && Character.toString(jsCode.charAt((jsCode.indexOf(p.getValue()+"({"))-1)).matches("[^a-zA-Z0-9\\.]") ) {
if( jsCode.contains(p.getValue() + "({") && Character.toString(jsCode.charAt((jsCode.indexOf(p.getValue()+"({"))-1)).matches("[^a-zA-Z0-9]") ) {
String detail = "Same Origin Method Execution might be possible. This is rated as high severity because it appears the callback parameter"
+ " is specifying which method to directly call in the response under a Javascript context."
+ " Search for <b>" + p.getValue() + "({</b> in the response to determine validity.";
Expand Down

0 comments on commit eeb7f6f

Please sign in to comment.