Skip to content

Restrict DOM XSS language selection in low security level - #285

Open
r1kka6 wants to merge 1 commit into
OWASP-CTF:dc34-ctffrom
r1kka6:fix/xss-dom-low
Open

r1kka6 wants to merge 1 commit into
OWASP-CTF:dc34-ctffrom
r1kka6:fix/xss-dom-low

Conversation

@r1kka6

@r1kka6 r1kka6 commented Aug 9, 2026

Copy link
Copy Markdown

Summary

  • allow only the built-in language values in the low-level DOM XSS handler
  • redirect arbitrary default values before they reach the shared client-side document.write() sink

Verification

  • docker run --rm -v "$PWD":/work -w /work php:8.3-cli php -l vulnerabilities/xss_d/source/low.php
  • vulnerable baseline returns 200 for default=<script>alert(1)</script>
  • patched runtime redirects the payload to ?default=English and still serves default=English normally

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant