-
Notifications
You must be signed in to change notification settings - Fork 727
XSS in URI / PATH_INFO going undetected #1022
Comments
So is the suggestion to add the URI to one of these rules |
Not sure yet. But my customer just confirmed he wants me to come up with a solution here. So I'll dig into this and solve it. |
I remember we used to have something for URL rewriting |
This is weird, the web server should reply with a 404 due to non existing resource as index.html is a directory and the x"> a file name. |
;) I rewrote the filename part of the URI to camouflage the real filename. Obviously I omitted the hostname, the slash and any real thought at a reasonable filename. However, I do think enterprise CMS systems are more sophisticated than what you think. To the client, this index.html looks like a static page, but for the CMS it's dynamic ressource and |
There you go, I had exactly that in mind, this is not the web server it is the CMS doing bad rewrites to turn To me modsec I will be happy to see more inspections on headers and request line that what he have now, we are ignoring lots of fun stuff. |
Another example (redacted): Is there any update on this @dune73 ? |
Can we start by adding the path to 941110? Or anyone thinks this will cause many FPs? |
No progress. Sorry. I know it's on my todo list, but my life outside CRS is eating me alive these days. If anybody wants to take over, be my guest. I think adding the path would make sense. @lifeforms: What do you think? |
agree with @fgsch. IMHO all XSS rules should look into |
I will submit a PR later today or tomorrow for 941110. I haven't had a chance to look into the other vectors in detail but I expect FPs at least until client9/libinjection#143 is merged, which seems to have gone awfully silent. |
This issue has been open 120 days with no activity. Remove the stale label or comment, or this will be closed in 14 days |
There is a false negative in the way we ignore
onXXX
events in the URI.If the same URI appears in the Referer, it triggers 941101, 941120 and 941160. Adding the URI to be covered by these rules, won't change a thing, so it's also an encoding problem.
The text was updated successfully, but these errors were encountered: