logoalt Hacker News

SpaceNoodled • yesterday at 7:25 PM • 2 replies • view on HN

Assuming file type by name rather than by contents opens a whole 'nother can of worms.


Replies

yrjrjjrjjtjjr • yesterday at 8:34 PM

Content injection vulnerability is bad, and that's the core of what sniffing does. Failing randomly like in this case is mild in comparison.

Like I get that sometimes you have to do what you have to do, but sniffing should be a last resort.

➕ show 1 reply
merb • yesterday at 7:27 PM

Tbf magic bytes are also not that helpful here