Mitigating MIME Confusion Attacks in Firefox
blog.mozilla.org
blog.mozilla.org
2) realize people are not using the standard correctly, disregard the specified type and auto-detect the type.
3) realize this creates a security problem, adopt a new standard that adds a stronger MIME type specification.
4) go to 2)
What does 'increases the web experience' even mean? Using a phrase like that is clear evidence of confusion.
Browsers should obey the media type they receive, per the context in which they receive it; content-sniffing is just wrong.
Yeah, it means that the brokenness of broken sites will be made evident to users. Broken sites are broken, news at 11.
And that's the story how we stuck with a giant pile of hacks the modern web is.
Most users do not think that their favorite website is broken; the believe the browser is at fault. Therefore, they find a browser that renders said website correctly and stick with it. The problems are manifold, and it's the browser that supports both the standard and many non-standard ways of describing content that wins out: Chrome today; IE before the "second coming of web browsers".
Because I sort of doubt this. An old browsers become a nuisance quite fast, with "sorry, you need a browser that supports $feature and yours doesn't". Well, I mean, I had to stick with 2 years old browser for some time and this certainly wasn't a good UX.
The only solution I can think of is a cartel-like agreements between all major browser vendors, on issue-per-issue basis, when they decide they want a sane tech and for the sake of it won't compete on certain compatibility points. Which is quite unlikely.
Also maybe it wasn't my place to suggest design solutions, and or my approach wasn't as good as it should have been.
I wonder if they ever evaluate the effectiveness of their work over there at Mozilla.
It's a bad situation, but it's based on bad decisions that were made in the 90s when the web was in its early days ("be liberal what you accept"). Hard to fix in a general way without breaking lots of stuff.
> While MIME sniffing increases the web experience for the majority of users, it also opens up an attack vector known as MIME confusion attack.
The header tells the browser to stop shenanigans and behave.
On the other hand, doing an inventory and then auditing every place where user-controlled content is replayed and then making and testing the requisite code changes is usually very difficult, and sometimes untenable.