Cropping images should be easy
Let's begin with an AI written feature description of a modern image cropping function:
Nothing mind-blowing, just want to highlight one part:
If you asked me last week, hey man, how to implement cropping. My simple answer would be, just take the selected part of the image, create a new image with the size of the selected area, insert that selected area to the new image and finally replace the new image with the old one.
But then I learned about Acropalypse. TLDR: Google Pixel bug lets you “uncrop” the last four years of screenshots. My first thought, when reading the technical details was: WTF. How can any developer be so ... creative ....
But when you think, it cannot get worse. You realize that also Microsoft devs have smoked the best stuff.
holy FUCK.
— David Buchanan (@David3141593) March 21, 2023
Windows Snipping Tool is vulnerable to Acropalypse too.
An entirely unrelated codebase.
The same exploit script works with minor changes (the pixel format is RGBA not RGB)
Tested myself on Windows 11 https://t.co/5q2vb6jWOn pic.twitter.com/ovJKPr0x5Y
Eh voila, we got a new Windows 11 0-day.