Skip to content
XSS Write-up Intermediate

Three (And A Half) Vulns For The Price of One!

The RSS feed validation and rendering feature did not sanitise feed content, allowing stored cross-site scripting. The same feature also allowed server-side request forgery for internal network discovery and XML external entity injection to read local files and capture SMB credential hashes.

tactifail.wordpress.com

Published on tactifail.wordpress.com

On a recent engagement, I achieved possibly the highest vulnerability:functionality ratio I’ve ever seen personally. Three separate vulnerabilities, in one function, in one web app.

The author, on tactifail.wordpress.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could execute scripts in the context of the application, discover internal network services, read local files, and capture SMB credential hashes; however, RCE via XXE was not achieved and the SMB hash was not cracked.

What the attacker needed

Access to the RSS feed management feature; ability to host a malicious RSS feed; victim loads the home page after feed is saved

How it was found

  1. Create a valid RSS document containing a script payload and host it on a public URL.
  2. Enter the URL into the RSS feed validator and click Validate Feed.
  3. Save the feed and reload the home page to trigger the script.
  4. For SSRF, submit internal IP addresses and ports to the validator and measure response times.
  5. For XXE, submit an XML payload that references an external entity pointing to a local file.
  6. For SMB credential capture, submit a file:// URL pointing to an attacker-controlled SMB listener.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

The application let an admin add an RSS feed, which is a way to subscribe to news updates. The app fetched the feed and displayed its content without cleaning it, so malicious code in the feed ran in the browser. The same fetching feature could be tricked into contacting internal servers or reading files on the server.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.