XSS vector URL parameter injection breaks on regex metacharacters #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In
vectors/02-xss.shline 49-51, the URL parameter substitution usessed:If the parameter value contains regex metacharacters (
.*[$etc.),sedinterprets them as regex, corrupting the URL.Fix: Use
perlor bash parameter expansion instead ofsedfor replacement.