Image XSS ATTACK on Exif.tools | Hacking exif.tools via image in
Exif.tools reflected EXIF metadata fields into its rendered HTML view without escaping, so an uploaded image carrying script in its metadata would execute in the viewer's browser. The author also claims an open redirect and a form upload bypass were chained into the same image-based cross-site scripting attack.
Published on medium.com
Exif.tools allows users to upload images and view their metadata. The backend parses EXIF fields and reflects them in a rendered HTML view.
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 application inserted EXIF metadata values into the HTML page without escaping or sanitising them, so markup and script in the metadata were treated as page content.
Impact
Script hidden in image metadata could run in the browser of anyone who views the uploaded image on the site, though the text gives no detail on what that script could then do.
What the attacker needed
Upload an image with crafted metadata; victim views the uploaded image
The fix
Metadata values should be sanitised or escaped before being rendered into the HTML view.
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.
When you upload a photo, the site reads hidden labels stored inside the file (the EXIF metadata, such as camera model or comment) and shows them on the page. If the site puts that text into the page without neutralising it, any code hidden in those labels runs in the browser of whoever views the image. That is cross-site scripting: an attacker's code running as if it came from the trusted site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.