Skip to content

SEC: Missing Security Headers (CSP, X-Frame-Options, HSTS, etc.) #190

Closed

Description

@vybe

Pentest Finding 3.4.2 — Informational

Location: All HTTP responses

Impact

No security headers are set, enabling potential XSS, clickjacking, and information disclosure. Additionally, the Server: uvicorn header reveals the web server technology.

Missing Headers

  • X-Frame-Options
  • X-Content-Type-Options
  • Strict-Transport-Security
  • Content-Security-Policy
  • Referrer-Policy
  • Permissions-Policy
  • Cross-Origin-Embedder-Policy
  • Cross-Origin-Resource-Policy
  • Cross-Origin-Opener-Policy

Steps to Reproduce

python3 shcheck.py http://localhost
# [-] There are not 9 security headers

curl -si http://localhost/api/version | grep "server:"
# server: uvicorn

Remediation

  • Add all standard security headers via middleware (FastAPI middleware or nginx config)
  • Strip the Server: uvicorn header from responses
  • Implement Content-Security-Policy appropriate for the frontend

References

Source: UnderDefense Web Pentest Report, March 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pentestpriority-p3securityseverity-info

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions