User images should be served with content sniffing disabled

Bug #1656184 reported by François Marier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Libravatar (obsolete)
Triaged
High
François Marier

Bug Description

Images uploaded by users should be served with "X-Content-Type-Options: nosniff" in order to disable any browser sniffing which could lead to a privilege escalation on chameleon content.

  https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options

In addition, the main service could expose this header on all responses too.

We'll need to ensure that images without an extension are correctly recognized as gif, jpg or png.

Revision history for this message
François Marier (fmarier) wrote :

Bug 1252037 needs to be addressed before we can do this.

information type: Private Security → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.