XXE in OAuth2 Applications gallery profile App logo
An OAuth2 application gallery accepted an SVG (XML-based) uploaded as an app logo, and the server executed the XML payload, indicating XML injection.
- Disclosed after 5 days
upload svg photo (XML based) as App logo contain XML payload renamed to .jpg server start execute this XML payload or just watch this video "https://www.dropbox.com/s/wkba6f0wrax0wr8/xxe.mp4?dl=0"
the same vulnerability was in https://www.coinbase.com/careers and reported by https://hackerone.com/mohaab007 one year ago "https://www.youtube.com/watch?v=qzbafFSFhtU"
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
Impact
The server executes the uploaded XML payload, which may have security consequences.
What the attacker needed
Ability to upload an app logo; server parses SVG as XML
How it was found
- Create an SVG file containing an XML external entity payload.
- Rename the SVG file to have a .jpg extension.
- Upload it as the app logo in the OAuth2 application gallery profile.
- The server processes the XML payload.
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 instructions called entities. If a server processes an uploaded XML file without disabling external entities, an attacker can make the server fetch local files or internal resources. Here, an SVG image (which is XML) was accepted as an app logo and processed insecurely.
What is XXE?
An XML parser resolves entities the attacker defines, reading local files or making the server send requests.