Skip to content

Don't treat URL parsing and path resolving as sanitizers - #12

Open
elkhayyat wants to merge 1 commit into
RobustaStudio:mainfrom
elkhayyat:sanitizers
Open

elkhayyat wants to merge 1 commit into
RobustaStudio:mainfrom
elkhayyat:sanitizers

Conversation

@elkhayyat

Copy link
Copy Markdown
Contributor

Fixes #11.

  • SSRF: parsing the URL no longer clears it. A check on the parsed host does.
  • Path traversal and PHP file inclusion: resolving the path no longer clears it. A prefix check on the resolved path does.

The tests cover JS, Python and PHP. On main they miss 9 lines and wrongly flag 5 that check the host; with this change they pass.

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.

URL parsing and path resolving count as sanitizers

1 participant