| ▲ | SpaceNoodled a day ago | |||||||||||||||||||||||||||||||
Assuming file type by name rather than by contents opens a whole 'nother can of worms. | ||||||||||||||||||||||||||||||||
| ▲ | Sprocklem 20 hours ago | parent | next [-] | |||||||||||||||||||||||||||||||
I can't figure out why anyone would need to detect the file type at all. Surely there should be some way for that to be passed into cups (and forwarded on, as necessary) out of band, by the program that created or opened the file and knows what its type is. | ||||||||||||||||||||||||||||||||
| ▲ | merb a day ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||
Tbf magic bytes are also not that helpful here | ||||||||||||||||||||||||||||||||
| ▲ | yrjrjjrjjtjjr a day ago | parent | prev [-] | |||||||||||||||||||||||||||||||
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. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||