XSS

Posts tagged "XSS"

4 posts found

6 min read

BITSCTF 2026 — SafePaste Writeup

A paste site sanitizes with DOMPurify and then feeds the result to String.prototype.replace: the $& and $` replacement patterns smuggle a live iframe past the sanitizer, and a /hidden-scoped flag cookie is read through a same-origin 404 frame.

#CTF#Cybersecurity#Web

6 min read

TraceBash 2026 — Trusted Rules Writeup

Trusted Types and a regex sanitizer bypassed in a Flask notes app: an HTML-entity-encoded iframe srcdoc runs inline script under CSP, reads the admin-only /admin/flag, and exfiltrates it via top-level navigation.

#CTF#Cybersecurity#Web

4 min read

UofTCTF 2026 — Pasteboard Writeup

DOMPurify is fine — the bug is a raw server-side sink plus DOM clobbering: I hijack window.renderConfig to force a throw, then use window.errorReporter.path.value to load an arbitrary script under strict-dynamic and exfiltrate the bot's cookie.

#CTF#Cybersecurity#XSS