Http Missing Script Src Attribute
Description
Detects when a web application's Content Security Policy (CSP) header is missing or has an insufficient script-src directive. A missing or weak script-src directive in CSP allows execution of JavaScript from unauthorized sources, potentially enabling Cross-Site Scripting (XSS) attacks.
Weakness:
043 - Insecure or unset HTTP headers - Content-Security-Policy
Category: Protocol Manipulation
Detection Strategy
• Examines HTTP response headers for Content-Security-Policy header presence
• Analyzes the Content-Security-Policy header value to check if script-src directive exists and is properly configured
• Reports a vulnerability if the CSP header is missing script-src directive or uses unsafe configurations like 'unsafe-inline' or 'unsafe-eval'
Search for vulnerabilities in your apps for free with Fluid Attacks' automated security testing! Start your 21-day free trial and discover the benefits of the Continuous Hacking Essential plan. If you prefer the Advanced plan, which includes the expertise of Fluid Attacks' hacking team, fill out this contact form.