Skip to content
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

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

Open
dune73 opened this issue Mar 27, 2024 · 0 comments

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant