-
Notifications
You must be signed in to change notification settings - Fork 28
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
Unparseable vulnerable pattern #5
Comments
Perhaps the issue is the use of '^...|^...', which is an unusual construction? |
Confirmed. This pattern is detected as vulnerable. /<!--[\s\S]*?-->|<\/?[a-zA-Z0-9\-]+(?:"[^"]*"|'[^']*'|\s[^<'">\/]*)*?\/?>/ (note there is now no '^' leading the disjunctions). Is the '^...|^...' construction legal in Java? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following pattern is vulnerable.
I found it in marked (in that discussion it is a more complex version of "n.2" which the detector does catch).
/^<!--[\s\S]*?-->|^<\/?[a-zA-Z0-9\-]+(?:"[^"]*"|'[^']*'|\s[^<'">\/]*)*?\/?>/
It can be exploited with prefix
<tag
pump\t\t""
suffix<"\t/>a'a
.However, the detector says 'SKIPPED'. Not sure why.
The text was updated successfully, but these errors were encountered: