SV-278402r1171958_rule
V-278402
SRG-APP-000419
NGNX-APP-001840
CAT II
10
Determine the path to NGINX config file(s):
nginx -qT | grep "# configuration"
# configuration file /etc/nginx/nginx.conf:
Note: The default NGINX configuration is "/etc/nginx/nginx.conf", though various files may also be included.
Include the "proxy_pass" service as well as the "proxy_set_header" values as required:
proxy_pass http://backend_service;
proxy_set_header X-Security-Classification "Confidential";
proxy_set_header X-Data-Origin "Internal-System";
proxy_set_header X-Access-Permissions "Read,Write";
After saving the configuration, reload NGINX:
# nginx -s reload
Determine the path to NGINX config file(s):
nginx -qT | grep "# configuration"
# configuration file /etc/nginx/nginx.conf:
Note: The default NGINX configuration is "/etc/nginx/nginx.conf", though various files may also be included.
Verify the embedded security attributes are present as HTTP Headers:
server {
listen 443 ssl;
server_name secure-api.example.com;
location /data {
proxy_pass http://backend_service;
proxy_set_header X-Security-Classification "Confidential";
proxy_set_header X-Data-Origin "Internal-System";
proxy_set_header X-Access-Permissions "Read,Write";
}
}
If the "proxy_pass" variable is not set nor the "proxy_set_header" is not set for the required headers, this is a finding.
V-278402
False
NGNX-APP-001840
Determine the path to NGINX config file(s):
nginx -qT | grep "# configuration"
# configuration file /etc/nginx/nginx.conf:
Note: The default NGINX configuration is "/etc/nginx/nginx.conf", though various files may also be included.
Verify the embedded security attributes are present as HTTP Headers:
server {
listen 443 ssl;
server_name secure-api.example.com;
location /data {
proxy_pass http://backend_service;
proxy_set_header X-Security-Classification "Confidential";
proxy_set_header X-Data-Origin "Internal-System";
proxy_set_header X-Access-Permissions "Read,Write";
}
}
If the "proxy_pass" variable is not set nor the "proxy_set_header" is not set for the required headers, this is a finding.
M
5720