Hacker News new | ask | show | jobs
by olliej 1422 days ago
If it is a format supported by macOS internally it's likely viewable in Safari - webkit basically passes image decoding to the system image decoders (hand wavey here)
1 comments

Now that sounds like a truly terrifying, terrible idea.
That seems to be how one of the exploits from a year or two ago worked.

https://googleprojectzero.blogspot.com/2021/12/a-deep-dive-i...

It exploited an archaic Xerox format parser to make its own virtual machine, and then went out from there.

So I'd agree, throwing anything on a webpage (or incoming message) into the "Can you parse this weird thing?" pipeline is a bad idea!

JBIG2 is a mandatory part of PDF, not its own weird image format. (Though I think it's also allowed in TIFF files and those might count as weird.)