XXE on https://duckduckgo.com
An XML External Entity injection flaw existed in the x.js endpoint on duckduckgo.com, reached through the u parameter, because external XML entities were not properly sanitised. An attacker could use it to read certain world-readable files on the system.
- Triaged in under an hour
- Fixed in 13 hours
- Disclosed after 9 days
Summary by the program
An XML External Entity (XXE) injection vulnerability was discovered in the x.js endpoint on https://duckduckgo.com via u parameter. This was due to improper sanitation of external XML entities. The results was a leak of certain world readable files on the system.
This issue was patched. Additionally, we intend to retire the endpoint in the very near future.
Big thanks to @mik317 for reporting this issue!
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the XML parser was configured to resolve external entities and the u parameter's XML input was not sanitised.
Impact
The flaw could leak certain world-readable files on the system; the report does not claim access to sensitive or privileged files.
What the attacker needed
Access to the x.js endpoint; ability to supply the u parameter
The fix
The issue was patched, and the endpoint is also planned for retirement.
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 report has not been written yet. The Original tab links to the source.
XML is a data format that can include special references called entities, which pull in content from elsewhere. If a website parses XML without restricting those references, an attacker can point one at a file on the server and make the site return its contents. Here that let someone read files that were already readable by any user on the machine.
What is XXE?
An XML parser resolves entities the attacker defines, reading local files or making the server send requests.