vuln
All 15 checks in vuln
Public configuration gaps, with why they matter and how to fix them.
Headers
-
HTTPS / HSTS
Serve the site over HTTPS and send Strict-Transport-Security so browsers refuse plain HTTP on later visits.
-
CSP present
Send a Content-Security-Policy that limits where scripts, styles, and frames can come from, instead of allowing everything.
-
CSP weaknesses
Send a Content-Security-Policy that limits where scripts, styles, and frames can come from, instead of allowing everything.
-
Clickjacking
Stop other sites from embedding your pages in a frame, with frame-ancestors or X-Frame-Options.
-
Other security headers
Set X-Content-Type-Options, Referrer-Policy, Permissions-Policy, and COOP/CORP to close the small gaps browsers leave open by default.
-
CORS (reference)
Do not combine Access-Control-Allow-Origin: * with credentials, and allow only the origins you trust.
Cookies
-
Cookie attributes
Mark session cookies Secure and HttpOnly, and set SameSite so other sites cannot send them by accident.
-
Caching (reference)
Do not mark pages that depend on a cookie as publicly cacheable.
Content
-
Mixed content
Load every script, style, image, and frame over https:// on an HTTPS page.
-
SRI
Add an integrity hash to scripts and styles loaded from a CDN, so a changed file is refused.
Exposure
-
Source map exposure
Do not publish source maps that contain your original source code.
-
.env exposure
Make sure .env and other secret files cannot be downloaded from the public site.
-
.git/config exposure
Block access to /.git/ so the repository history is not downloadable.
-
Secrets in client JavaScript
Keep API keys and tokens out of the JavaScript that browsers download.
Transport
-
HTTP to HTTPS
Redirect http:// requests to the same URL on https:// with a 301.
Check your site
Public configuration gaps, with why they matter and how to fix them.
Run vuln