owncloud.com: Content Sniffing not disabled
The owncloud.com website did not send the X-Content-Type-Options: nosniff header. This could let some browsers treat a response as HTML even when it is declared as plain text, potentially enabling cross-site scripting.
Originally disclosed on HackerOne
- Triaged in 3 hours
- Fixed in 56 days
- Disclosed after 3 months
URL :- https://owncloud.com
Issue description :- There was no "X-Content-Type-Options" HTTP header with the value nosniff set in the response. The lack of this header causes that certain browsers, try to determine the content type and encoding of the response even when these properties are defined correctly. This can make the web application vulnerable against Cross-Site Scripting (XSS) attacks. E.g. the Internet Explorer and Safari treat responses with the content type text/plain as HTML, if they contain HTML tags.
Issue remediation :- Set the following HTTP header at least in all responses which contain user input: X-Content-Type-Options: nosniff
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
The server did not include the X-Content-Type-Options: nosniff response header, so browsers may perform content-type sniffing.
Impact
The missing header could make the web application vulnerable to cross-site scripting in browsers that sniff content, such as Internet Explorer and Safari.
What the attacker needed
None
The fix
The header X-Content-Type-Options: nosniff should be set at least on all responses that contain user input.
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 says what type it is, such as plain text or an image. Some browsers ignore that label and guess the type themselves, which can turn harmless text into active HTML. The nosniff header tells the browser to trust the label and not guess, so this report is about a missing safety instruction.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.