Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing URL startWith check prior to scanning #30

Merged
merged 1 commit into from
Jun 1, 2018
Merged

Removing URL startWith check prior to scanning #30

merged 1 commit into from
Jun 1, 2018

Conversation

jamesrthomas1984
Copy link
Contributor

Removed this check - why is it necessary? I found that this was causing issues scanning using SSL and a URL /subdirectory/ - i.e. initiating a scan on https://test.com/en:

url.toExternalForm() is https://test.com:443/en/somepage
baseUrl is https://test.com/en
url.toExternalForm().startsWith(baseUrl) is false

@vmwclabot
Copy link
Member

@jamesthomas-redmoon, you must sign our contributor license agreement before your changes are merged. Click here to sign the agreement. If you are a VMware employee, read this for further instruction.

@jamesrthomas1984 jamesrthomas1984 mentioned this pull request Mar 7, 2018
@jamesrthomas1984 jamesrthomas1984 changed the title Update BurpService.java Removing URL startWith check prior to scanning Mar 7, 2018
@vmwclabot
Copy link
Member

@jamesthomas-redmoon, VMware has approved your signed contributor license agreement.

@dmettem
Copy link
Contributor

dmettem commented Mar 14, 2018

@jamesthomas-redmoon Reason for this check is to limit the scan to only those URLs that are from baseUrl instead of every URL that is in site map. If you remove this check, the complete site map that is in scope will be scanned, which is not the intention of this method.

@jamesrthomas1984
Copy link
Contributor Author

jamesrthomas1984 commented Mar 14, 2018

Hi @dmettem -

Isn't "limit the scan to only those URLs that are from baseUrl instead of every URL that is in site map" already achieved by

IHttpRequestResponse[] siteMapInScope = BurpExtender.getInstance().getCallbacks().getSiteMap(baseUrl);

? That's the behaviour I am seeing.

@dmettem
Copy link
Contributor

dmettem commented Apr 3, 2018

Hi @jamesthomas-redmoon,

Sorry for not getting back early on this. I think you are right.
Can you please resolve the conflicts and update the pull request? I will merge the commit once the conflicts are resolved.

Thanks for your contribution.

@gangelino
Copy link
Contributor

Hi @jamesthomas-redmoon, we'd love to merge your PR, could you please resolve the conflicts? Thanks!

@jamesrthomas1984
Copy link
Contributor Author

Hi @gangelino @dmettem I've rebased my change with the latest version of burp-rest-api, note that I've not tested my change with the latest burp-rest-api.

@gangelino gangelino merged commit 1a01689 into vmware:master Jun 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants