-
-
Notifications
You must be signed in to change notification settings - Fork 401
feat(ssrf): move schemes to shared include data #2599
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
feat(ssrf): move schemes to shared include data #2599
Conversation
b813346
to
7750409
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename protocols.data
to url-schemes.data
. "Scheme" is the term used by the RFC.
206255b
to
75ca246
Compare
75ca246
to
81f4d00
Compare
I've replaced the complex IPv6 regular expressions with a single simple one. It doesn't make sense to replicate the specification, we only need to find strings that look like IPv6 (the delimiting brackets I've also expanded the "enclosed alphanumerics" matches to match all existing code points instead of matching only specific strings. IMPORTANT: this PR relies on two PRs to fix bugs in regexp-assemble: #2624, #2623. |
One thing I'm unsure about are evasions of the type |
It is a space. See this presentation |
Ughhhhh.. We might want to include this one?
|
890ce6c
to
259dd9a
Compare
@theseion You are still appearing as "requested changes" here. Maybe you can approve? |
Requires a fix to Regexp::Assemble. Will updated ASAP. |
Signed-off-by: Felipe Zipitria <felipe.zipitria@owasp.org>
Signed-off-by: Felipe Zipitria <felipe.zipitria@owasp.org>
259dd9a
to
1189d00
Compare
@fzipi I have a working version (without having fixed the regexp-assemble bug yet). |
I think there's still a duplicate in the tests but I wanted to get this to you as fast as possible. |
@theseion Awesome! But the bug is affecting the regex creation, right? In that case, are we going to merge? |
The bug affects regex creation but only under specific circumstances, which, apart from me, no one is going to run into at the moment. So yes, merge when you think it's good. |
Signed-off-by: Felipe Zipitria felipe.zipitria@owasp.org
Move the embedded list of schemes so it can be used by other RFI rules. Also we keep the list centralized.