Findings
Missing Content-Type header
Updated: June 19, 2025
Description
Severity:
Low
Content type header is missing.
Example Attack
Injection Attacks: Without the Content-Type
header specifying text/html
or application/json
, browsers or applications can incorrectly interpret response data and Cross-Site Scripting (XSS) can occur. This ambiguity can be exploited by attackers to inject malicious scripts, which execute within the context of other users' sessions, leading to unauthorized actions or data theft.
Remediation
Ensure that the server correctly sets the content-type header for responses.