Security Scan Test Page

This page contains a mix of secure and insecure elements for testing security scanners.

Expected Scan Results

CheckExpectedWhy
X-Content-Type-OptionsPASSHeader set to nosniff
Referrer-PolicyPASSHeader set to strict-origin-when-cross-origin
Permissions-PolicyPASSRestrictive policy set
Subresource IntegrityPASSSRI hash on normalize.css
HTTPS (page itself)PASSServed over HTTPS by Cloudflare
Content-Security-PolicyFAILNo CSP header set
Strict-Transport-SecurityFAILNo HSTS header set
X-Frame-OptionsFAILNo clickjacking protection
Mixed ContentFAILjQuery loaded over HTTP
Inline ScriptsFAILInline <script> block present
CSRF ProtectionFAILLogin form has no CSRF token
Secure CookiesFAILsession_prefs cookie missing Secure/HttpOnly
Open RedirectFAIL/redirect?url= accepts arbitrary URLs
Information DisclosureFAIL/api/info exposes server details
Autocomplete on PasswordFAILPassword field has autocomplete="on"

Login Form FAIL

No CSRF token. Password field allows autocomplete.


Mixed Content Image FAIL

Image loaded over plain HTTP:

Insecure image

Secure Image PASS

Image loaded over HTTPS:

Secure image

Open Redirect FAIL

The /redirect?url= endpoint redirects to any URL without validation:

/redirect?url=https://evil.example.com

Information Disclosure FAIL

The /api/info endpoint exposes internal server details:

/api/info