Indonesia Healthcare Corporation IHC ICT Cybersecurity emblem
Theme
Language
Advisory BSSN

Security Header: Lapisan Kecil, Perlindungan Besar

20 August 2026

Summary

Security headers are components of HTTP responses designed to enhance web application security by issuing instructions to browsers on how to safely process and display content. Based on the OWASP Secure Headers Project standards, proper header configurations establish an effective defense-in-depth layer on the browser side, mitigating common web application vectors without requiring changes to underlying application code.

Affected Products

  • Web Servers and Public Web Applications (e.g., Nginx, Apache, and other web server software)
  • Web Browsers handling HTTP/HTTPS response traffic

Technical Details

Security headers operate by automatically enforcing security policies on the client browser. Core security headers include:

  • Content-Security-Policy (CSP): Restricts allowed content sources (scripts, images, stylesheets, frames) to mitigate XSS attacks. Example: default-src 'self'; script-src 'self'; object-src 'none'; frame-ancestors 'none'; base-uri 'self'.
  • Strict-Transport-Security (HSTS): Forces browsers to interact with the domain exclusively over HTTPS for a specified timeframe. Example: max-age=63072000; includeSubDomains; preload.
  • X-Content-Type-Options: Prevents MIME-type guessing/sniffing using the value nosniff.
  • Referrer-Policy: Manages referrer metadata transmitted across requests (e.g., strict-origin-when-cross-origin).
  • Permissions-Policy: Restricts browser features and hardware APIs such as camera, microphone, and geolocation (e.g., geolocation=(), camera=(), microphone=()).
  • X-Frame-Options: Prevents page framing to mitigate clickjacking attacks (DENY).

Security headers should be delivered across all HTTP responses, including error and redirection responses (e.g., configuring the always directive in Nginx).

Impact

Missing or misconfigured security headers may lead to:

  • Cross-Site Scripting (XSS) and content injection vulnerabilities.
  • Clickjacking attacks.
  • Protocol downgrade attacks (HTTP fallback).
  • Cookie hijacking and session token exposure via Referer headers.
  • MIME confusion attacks resulting in unauthorized script execution.
  • Infrastructure disclosure via Server and X-Powered-By headers.

Mitigation

  • Deploy baseline headers: HSTS, CSP (initially in Report-Only mode), X-Content-Type-Options, and Referrer-Policy.
  • Progressively implement Permissions-Policy to disable unused browser APIs.
  • Favor CSP's frame-ancestors directive over X-Frame-Options due to broader flexibility.
  • Ensure headers are sent across all HTTP response codes, including error and redirect pages.
  • Strip sensitive information headers such as Server and X-Powered-By.
  • Conduct regular audits of header configurations using security scanning tools aligned with updated OWASP guidelines.

References

Advisory ini disajikan tim ICT Cybersecurity PT Pertamina Bina Medika IHC sebagai informasi kesadaran keamanan. Verifikasi pada sumber resmi sebelum tindakan.

Advisory Lain