8000 document.querySelector('p').textContent="XSS" and document.body.appendChild not being detected · Issue #3634 · coreruleset/coreruleset · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

document.querySelector('p').textContent="XSS" and document.body.appendChild not being detected #3634

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

Closed
dune73 opened this issue Mar 27, 2024 · 2 comments · Fixed by #4055
Closed

Comments

@dune73
Copy link
Member
dune73 commented Mar 27, 2024
$ curl -H "x-format-output: txt-matched-rules" http://sandbox.coreruleset.org/ -d "foo=document.querySelector('p').textContent=\"XSS\""
-- no output --

$ curl -H "x-format-output: txt-matched-rules" http://sandbox.coreruleset.org/ -d 'foo=document.body.appendChild(document.createElement("h1")).textContent = "XSS"'
-- no output --

The document.head.appendChild and document.querySelector should probably be enough to trigger an alert.

@dune73 dune73 changed the title docment.querySelector('p').textContent="XSS" not being detected document.querySelector('p').textContent="XSS" not being detected Mar 27, 2024
@dune73 dune73 changed the title document.querySelector('p').textContent="XSS" not being detected document.querySelector('p').textContent="XSS" and document.body.appendChild not being detected Mar 27, 2024
@azurit
Copy link
Member
azurit commented Jun 21, 2024

Which rule should handle this? 941180?

@Xhoenix
Copy link
Member
Xhoenix commented Mar 28, 2025

Created PR #4055

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
0