| name | cis-apache24-5.17 |
| description | Ensure HTTP Header Referrer-Policy is set appropriately |
| category | cis-apache |
| version | 2.3.0 |
| author | cyberstrike-official |
| tags | ["cis","apache","linux","features","content","options"] |
| cis_id | 5.17 |
| cis_benchmark | CIS Apache HTTP Server 2.4 Benchmark v2.3.0 |
| tech_stack | ["linux","apache"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
Ensure HTTP Header Referrer-Policy is set appropriately (Manual)
Profile Applicability
Level 2
Description
The server now allows for controlling the amount of "referrer" information being sent with requests. Limiting information to only what is needed is security best practice.
Rationale
HTTP/S traffic is vulnerabe to attack - limiting what is sent in a request to only what is needed will limit the threat vector.
Impact
You must only limit the header information to what is needed to support the request. Limiting it to much may disrupt the ability to get a proper/expected response.
Audit Procedure
Perform the following steps to determine if the recommended state is implemented:
If header Referrer-Policy configuration is present and has as a compliant value, then the server is compliant.
Remediation
Perform the following to implement the recommended state:
Add or modify the Header directive for the Referrer-Policy header in the Apache configuration to have the appropriate condition as shown below.
Header set Referrer-Policy "<Directive>"
Default Value
Referrer-Policy Policy is not set by Default
References
- https://httpd.apache.org/docs/2.4/mod/mod_headers.html#header
- https://owasp.org/www-project-cheat-sheets/cheatsheets/Content_Security_Policy_Cheat_Sheet
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
- https://en.wikipedia.org/wiki/Clickjacking
CIS Controls
v8: