How to avoid the aCropalypse
The aCropalypse vulnerability (CVE-2023-21036) in Google Pixel's Markup tool and Windows Snipping Tool leaves original image data in cropped screenshots because the tool overwrites the file only up to the new image's end, leaving trailing bytes intact. An attacker could recover parts of the original image from a cropped or redacted screenshot.
Published on blog.trailofbits.com
Last week, news about CVE-2023-21036, nicknamed the “aCropalypse,” spread across Twitter and other media, and I quickly realized that the underlying flaw could be detected by our tool, PolyTracker. I’ll explain how PolyTracker can detect files affected by the vulnerability even without specific file format knowledge…
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 image editing tool overwrites the original file in place but only writes the new image data up to its length, leaving the remainder of the original file intact.
What the attacker needed
Victim uses vulnerable screenshot tool; attacker obtains the cropped image
How it was found
- Use the vulnerable screenshot editing tool to crop or resize an image, which overwrites the original file.
- The tool writes the new image but leaves data beyond the new image's end intact.
- Use a recovery tool like acropalypse.app to extract the leftover original image data.
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 crop an image, the software should remove the parts you cut out. But in this bug, the software only overwrote the beginning of the file and left the rest of the original image data at the end. Someone with the right tool could read that leftover data and see what you tried to hide.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.