←back to thread

698 points jgrahamc | 1 comments | | HN request time: 0s | source
Show context
stevens32 ◴[] No.20425422[source]
For the regex novices here, would anyone mind explaining what that pattern is meant to match? More specifically, what `.(?:.=.*)` is meant to do?
replies(4): >>20425511 #>>20425513 #>>20425924 #>>20426517 #
1. meowface ◴[] No.20425513[source]
The bottom of the post elaborates it.

They said it was for XSS detection. I think the purpose was to identify reflected XSS by looking for paths or headers containing JavaScript-esque variable assignment (JS keywords/syntax preceding "something=something"), but not 100% sure.