Skip to content
Misconfiguration Disclosed report Beginner

Missing X-Content-Type-Options

The web page at the given URL does not send the X-Content-Type-Options header, so browsers may MIME-sniff responses. An attacker could potentially exploit this to have content treated as executable or dynamic HTML, increasing exposure to drive-by download attacks.

shipcod3 Follow

Originally disclosed on HackerOne

  • Paid in 4 days
  • Disclosed after 34 days

https://www.irccloud.com/#?/addNetwork doesn't have a header settings for X-Content-Type Options which means it is vulnerable to MIME sniffing. The only defined value, "nosniff", prevents Internet Explorer and Google Chrome from MIME-sniffing a response away from the declared content-type. This also applies to Google Chrome when downloading extensions. This reduces exposure to drive-by download attacks and sites serving user uploaded content that by clever naming could be treated by MSIE as executable or dynamic HTML files.

Attachments

x-content.PNG
x-content.PNG From the original on HackerOne

The original report as published on HackerOne, by shipcod3. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server does not include the X-Content-Type-Options: nosniff header in its HTTP responses.

Impact

This could increase exposure to drive-by download attacks and allow user-uploaded content to be treated as executable or dynamic HTML by some browsers.

What the attacker needed

Victim uses a browser that MIME-sniffs; attacker can control served content

The fix

Sending X-Content-Type-Options with the value 'nosniff' would prevent MIME-sniffing of responses.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a web server sends a file, it also sends a label saying what type of file it is. Some browsers ignore that label and try to guess the real type by looking at the content, which is called MIME sniffing. If an attacker can upload a file that looks like a harmless image but actually contains code, the browser might guess it is a script and run it. The X-Content-Type-Options header with the value 'nosniff' tells browsers to trust the label and not guess.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More from IRCCloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.