(IHttpRequestResponse basePair, IScannerInsertionPoint insertionPoint)
| 16 | } |
| 17 | |
| 18 | @Override |
| 19 | public List<IScanIssue> doActiveScan(IHttpRequestResponse basePair, IScannerInsertionPoint insertionPoint) { |
| 20 | List<IScanIssue> issues = new ArrayList<>(); |
| 21 | |
| 22 | // Construct the attack payload |
| 23 | byte[] payload = insertionPoint.buildRequest("a'a\\'b\"c>?>%}}%%>c<[[?${{%}}cake\\".getBytes()); |
| 24 | |
| 25 | // Send the attack request |
| 26 | IHttpRequestResponse attack = callbacks.makeHttpRequest(basePair.getHttpService(), payload); |
| 27 | |
| 28 | // Compare the response |
| 29 | if (!tagmap(helpers.bytesToString(attack.getResponse())).equals(tagmap(helpers.bytesToString(basePair.getResponse())))) { |
| 30 | // Launch passive scan if the responses are different |
| 31 | launchPassiveScan(attack); |
| 32 | } |
| 33 | |
| 34 | return issues; |
| 35 | } |
| 36 | |
| 37 | |
| 38 | } |
nothing calls this directly
no test coverage detected