Rule ID
Category
Level
Compatible Versions
Description
- The
server and x-powered-by headers can specify the underlying technology used by the application. Without explicit instructions, NGINX reverse proxy may pass these headers. To remove them, appropriate configurations should be made.
Scan Frequency
Theoretical Basis
- Attackers can use these response headers to perform reconnaissance on websites and then target attacks based on specific known vulnerabilities related to the underlying technology. Removing these headers will reduce the likelihood of targeted attacks.
Risk Items
Audit Method
- Execute the following command to verify:
grep proxy_hide_header /etc/nginx/nginx.conf
# It should display:
proxy_hide_header X-Powered-By;
# If not present, it is recommended to add it.
- Edit the file
/etc/nginx/nginx.conf and add the header information as shown below:
location /docs {
....
proxy_hide_header X-Powered-By;
proxy_hide_header Server;
....
}
Impact
Default Value
- By default, this configuration does not exist.
References
CIS Controls