Skip to content
XXE Write-up Beginner

750$ in 5 Minutes - XXE to LFI

A subdomain was vulnerable to CVE-2019-9670, an XML External Entity (XXE) flaw that allowed local file inclusion. An attacker could read local files on the server.

medium.com

Published on medium.com

Hello everyone! Welcome back to my blog.

Ramthu, on medium.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

Root cause

Likely the server ran a vulnerable version of software affected by CVE-2019-9670, which mishandles XML external entities.

Impact

An attacker could read local files on the server, potentially exposing sensitive information.

What the attacker needed

Wildcard scope in program; access to the vulnerable subdomain

How it was found

  1. Enumerate subdomains using Subfinder and Httpx.
  2. Run a Nuclei CVE scan against the collected subdomains.
  3. Identify CVE-2019-9670 from the scan results.
  4. Find a proof-of-concept exploit for the CVE on GitHub.
  5. Test the exploit against the affected domain and confirm local file inclusion.

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.

This report describes finding a known security hole (CVE-2019-9670) on a subdomain. That hole lets an attacker trick the server into reading files stored on the same machine, which is called local file inclusion. The hunter used automated tools to find it quickly.

What is XXE?

An XML parser resolves entities the attacker defines, reading local files or making the server send requests.

Similar reports

View all

Same bug class and techniques, clearest first.

XML external entities (XXE)

The lesson behind this report.

An XML parser resolves entities the attacker defines, reading local files or making the server send requests.