---
title: "Blind XSS Tool - XSS Hunter"
description: "XSS Hunter Express is a self-hosted blind-XSS reporting platform. When its generated probe executes in an unseen HTB browser, the platform can record the…"
category: web
tags: ["web", "xss"]
tools: []
difficulty: intermediate
updated: "2026-08-10"
source: "vault:Web/Blind XSS Tool - XSS Hunter.md"
---
# Blind XSS Tool — XSS Hunter `fas:ClipboardList`
## Summary
[XSS Hunter Express](https://github.com/mandatoryprogrammer/xsshunter-express) is a self-hosted blind-XSS reporting platform. When its generated probe executes in an unseen HTB browser, the platform can record the vulnerable URI, origin, referrer, user agent, non-`HttpOnly` cookies, page DOM, screenshots, and request metadata. Use it when a simple DNS or HTTP callback is insufficient and the lab requires evidence from an administrator-facing or asynchronous rendering path.
> [!danger]+ HTB-Only Boundary
> `fas:TriangleExclamation`
> 1. Deploy probes only into Hack The Box labs or systems you own and are explicitly authorised to test.
> 2. The collector may receive session data, DOM content, screenshots, and internal URLs. Treat its database and image directory as sensitive.
> 3. Use a dedicated hostname, strong credentials, minimal exposure, and short retention.
> 4. See Cross-Site Scripting (XSS) - HTB Cheat Sheet for payload selection and evidence rules.
---
## Conceptual Information
### When to Use XSS Hunter
| Requirement | Fit |
|---|---|
| Confirm a single DNS or HTTP interaction | Use Blind XSS Tool - Interactsh instead |
| Capture screenshots and DOM context | **Strong fit** |
| Correlate many stored fields | **Strong fit** with unique probe paths |
| Avoid operating internet-facing infrastructure | Use a hosted OAST service or a local listener where routing permits |
| Fine-grained payload/report controls | Compare with Blind XSS Tool - ezXSS |
### Data Flow
1. An HTB field stores the generated `
```
For a quoted attribute context, break out only after confirming the quote type:
```html
">
```
> [!warning]+ Probe Placement
> `fas:TriangleExclamation`
> 1. Use a distinct probe or path label for every HTB field.
> 2. Record the request, field name, account, and timestamp before submission.
> 3. Begin with one field to avoid ambiguous callbacks.
> 4. Do not guess the generated endpoint; copy it from your own dashboard.
### 7. Interpret a Callback
| Field | What it establishes | Limitation |
|---|---|---|
| Vulnerable URI | Page that rendered the probe | Redirects or SPA routes may alter it |
| Origin | Browser security origin | Does not by itself identify the user |
| Referrer | Navigation or embedding context | May be reduced by referrer policy |
| User agent | Browser/automation fingerprint | Can be generic or spoofed |
| Cookies | JavaScript-readable cookies | `HttpOnly` cookies are absent |
| DOM | Rendered page structure | May contain sensitive lab content |
| Screenshot | Visual evidence of affected view | Treat as sensitive and minimise retention |
| Responsible request | Injection request when supported | Requires compatible tooling or metadata |
> [!success]+ Evidence Standard
> 1. Correlate the callback to the unique field and timestamp.
> 2. Save only the evidence needed to prove the lab objective.
> 3. Report the affected role and page separately from the injecting account.
> 4. Delete reports, screenshots, and stored probes after completing the lab.
---
## Operations and Lifecycle
### Logs and Health
```bash
docker compose ps
docker compose logs --tail=200 xsshunterexpress
docker compose logs --tail=100 postgresdb
docker stats --no-stream
```
> [!info]+ Operational Checks
> 1. Application logs expose TLS, configuration, callback, and startup errors.
> 2. Database logs expose storage and authentication failures.
> 3. Resource checks are important on the project's minimum-size VPS.
### Backup
Stop the stack briefly and archive the repository's persistent data paths and configured Compose file.
```bash
docker compose stop
cd ..
tar -czf "xsshunter-backup-$(date +%F).tar.gz" \
xsshunter-express/docker-compose.yml \
xsshunter-express/postgres-db-data \
xsshunter-express/payload-fire-images \
xsshunter-express/ssldata
cd xsshunter-express
docker compose start
```
> [!warning]+ Backup Handling
> `fas:TriangleExclamation`
> 1. Confirm the actual bind-mount paths with `docker compose config` before archiving.
> 2. The archive can contain credentials, cookies, DOM captures, and screenshots.
> 3. Encrypt the archive and keep it only as long as the HTB exercise requires.
### Update
```bash
git status --short
git pull --ff-only
docker compose pull
docker compose up -d --build
docker compose ps
```
> [!info]+ Update Breakdown
> 1. Back up first and review upstream release notes or repository changes.
> 2. **`--ff-only`** refuses an unexpected merge.
> 3. **`--build`** rebuilds the application image from the updated source.
> 4. Re-run a self-test probe after the update.
### Stop and Cleanup
Preserve evidence volumes while stopping services:
```bash
docker compose down
```
Remove Compose-managed volumes only after exporting required HTB evidence:
```bash
docker compose down --volumes
```
> [!danger]+ Destructive Cleanup
> `fas:TriangleExclamation`
> 1. `--volumes` can permanently remove the Compose-managed database volume.
> 2. Bind-mounted directories may remain and must be reviewed separately.
> 3. Keep the encrypted backup until you verify that the lab report contains everything required, then dispose of it securely.
---
## Troubleshooting
> [!failure]+ Certificate Issuance Fails
> `fas:CircleXmark`
> 1. Confirm `HOSTNAME` resolves publicly to the VPS.
> 2. Confirm inbound TCP `80` and `443` are permitted and not occupied.
> 3. Verify the certificate contact address and inspect application logs.
> 4. Avoid placing a proxy or CDN in front until initial issuance succeeds unless the repository documents that topology.
> [!failure]+ Admin Password Is Not Visible
> `fas:CircleXmark`
> 1. Run `docker compose up xsshunterexpress` in the foreground and inspect the initial logs.
> 2. Confirm whether an existing database caused initialisation to be skipped.
> 3. Preserve the data directory before any reset; deleting it destroys reports and credentials.
> [!failure]+ Probe Loads but No Report Appears
> `fas:CircleXmark`
> 1. Check browser Console and Network for CSP, TLS, mixed-content, or blocked-request errors.
> 2. Confirm the callback endpoint is reachable from the HTB browser.
> 3. Inspect both application and database logs.
> 4. Test the generated probe on an isolated page you control before changing the HTB payload.
> [!failure]+ Dashboard Is Reachable Publicly
> `fas:CircleXmark`
> 1. Restrict the admin path by source IP or VPN at the firewall/reverse proxy.
> 2. Rotate the administrator password if exposure was unintended.
> 3. Review logs for unknown access and rotate any notification secrets stored in configuration.
---
## Lessons Learned `fas:Lightbulb`
1. XSS Hunter is most valuable when the lab requires context beyond a single callback.
2. Unique probes make stored-field attribution reliable and prevent duplicate callback confusion.
3. The evidence store is sensitive infrastructure and needs the same lifecycle discipline as any other assessment database.
4. A successful probe proves browser-side execution; every additional impact claim requires separate evidence.
---
## References `fas:BookOpen`
1. [XSS Hunter Express Repository](https://github.com/mandatoryprogrammer/xsshunter-express)
2. [Truffle Security XSS Hunter Fork](https://github.com/trufflesecurity/xsshunter)
3. [Docker Engine Installation](https://docs.docker.com/engine/install/)
4. [Docker Compose Documentation](https://docs.docker.com/compose/)
5. [Let's Encrypt Documentation](https://letsencrypt.org/docs/)
6. Cross-Site Scripting (XSS) - HTB Cheat Sheet
7. Blind XSS Tool - ezXSS
8. Blind XSS Tool - Interactsh
#HTB #WebSecurity #XSS #BlindXSS #XSSHunter