X-Content-Type-Options header missing at Auth Login
The authentication login page was served without the X-Content-Type-Options header, so browsers could MIME-sniff responses instead of trusting the declared content type. An attacker could potentially exploit this to have content treated as executable or dynamic HTML, increasing exposure to drive-by download attacks.
Originally disclosed on HackerOne
- Triaged in 43 hours
- Fixed in 3 days
- Disclosed after 33 days
Hello Again,
The 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.
URL :- http://arbaz:8153/go/auth/login
Thanks!
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 web server or application framework was not configured to send the X-Content-Type-Options: nosniff response header on the authentication login page.
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, though the report does not demonstrate a working exploit.
What the attacker needed
None
The fix
The login page should be configured to send the X-Content-Type-Options header with the value nosniff.
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.
Browsers sometimes guess what type a file is by looking at its contents, rather than trusting what the server says it is. This guessing is called MIME sniffing. If a site does not tell the browser to stop guessing, a file that looks like a script or a web page might be treated as one, which can help an attacker get code to run.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.