Tiny Twitter Thumbnail Tweaked To Transport Different File Types (theregister.co.uk)
Security researcher David Buchanan has found that Twitter image uploads can be polyglot files, meaning they can be valid simultaneously in multiple formats, such as a .jpg, a .rar archive and a .zip archive. From a report: Using some Python code he wrote, he created a thumbnail image of William Shakespeare overlaid with the words, "Unzip Me" and posted it to Twitter. The .jpg image is also a valid .zip file, so if you download it, you can unzip it and extract the contents, a multipart .rar archive of the text of Shakespeare's plays. [...] Twitter performs some processing on uploaded images, which has the potential to mess with the data. But Buchanan found that his multi-format file survived this process. It may be that image itself (excluding the rather bulky metadata) is light enough not to trigger any compression or post-upload processing.
I am not sure if anyone has told this WIlliam Shakespeare fellow about this, but he should sue for copyright violation.
Wtf is this guy doing?
Is cat not good enough to concatenate a jpg and a rar if he is on linux?
Or maybe just the copy command on windows?
4channers have been doing this for over a decade.
What an invention.
A while back I tried posting an image with a hidden steganographic message in it to Twitter and to my surprise the hidden message was preserved and not lost due to recompression. Also, the recent Banksy-style shreded image I posted to climagic that was basically a corrupted jpg file was preserved pretty well. In other words the corrupted part looks identical to what I see with the original on my own computer. However posting it to Mastodon.social resulted in a reprocessed image with compression artifacts
I remember when people would do this on 4Chan to transfer music files as tiffs and transfer zips of books as a jpg of the cover with the rest of the zip embedded into the jpg. Not really new, but that shit was shut down after people started transferring viruses and other bad shit.
Malware been downloading crap to your computer disguised as JPG and ZIP for years, and now we've gone full circle and become the malware
Aww lawd is dat some CP?
This is the same "trick" (not trick, design) that makes self-extracting zips possible. Big deal?
PoC||GTFO was the first time I saw a polygot file. Issue 0x14 is a valid pdf, zip and Nintendo ROM
0.01 BTC says Twitter uses the image resolution to determine if they mangle it. Which means you can likely embed a significant amount of data before it hits their max upload size.
https://www.nbc.com/saturday-n...
This is nothing new. You can do exactly this with PixelKnot.
So David Buchanan, I know you think you're clever, but you're not.
I wonder what format these files will be detected as on systems that use mime types instead of file extensions
The summary seems to be saying it is a zip of a rar of text.
I guess it is possible the polygot method only works with storage zips and does not work with compression.
For whatever reason, I am inclined to believe the summery got it right as zips of rars, rars of rars, and zips of zips are fairly common to find in downloading files for whatever reason.
Troll is not a replacement for I disagree.