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.
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
- Enumerate subdomains using Subfinder and Httpx.
- Run a Nuclei CVE scan against the collected subdomains.
- Identify CVE-2019-9670 from the scan results.
- Find a proof-of-concept exploit for the CVE on GitHub.
- 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.