SV-256955r1043180_rule
V-256955
SRG-APP-000223-WSR-000011
APWS-AT-000480
CAT II
10
As a System Administrator for each Automation Controller NGINX web server host, remove any local variable changes related to cookie properties:
sudo grep -r -E '(CSRF|SESSION)_COOKIE_(HTTPONLY|SECURE|SAMESITE)' /etc/tower/settings.py /etc/tower/conf.d/
For each result, edit the relevant file. For example, if a variable is found in /etc/tower/settings.py, edit the file with the following command:
sudo -e /etc/tower.settings.py
Remove any line where the following variables are defined:
SESSION_COOKIE_HTTPONLY
SESSION_COOKIE_SECURE
SESSION_COOKIE_SAMESITE
CSRF_COOKIE_HTTPONLY
CSRF_COOKIE_SECURE
CSRF_COOKIE_SAMESITE
Execute the following command to restart the Automation Controller service:
sudo automation-controller-service restart
The Automation Controller application configures cookie properties appropriately by default. Any local modifications to cookie-related settings must be located and removed.
As a System Administrator for each Automation Controller NGINX web server host, search for modified cookie variables in the Automation Controller configuration:
sudo grep -r -E '(CSRF|SESSION)_COOKIE_(HTTPONLY|SECURE|SAMESITE)' /etc/tower/settings.py /etc/tower/conf.d/
If any output is shown, this is a finding.
V-256955
False
APWS-AT-000480
The Automation Controller application configures cookie properties appropriately by default. Any local modifications to cookie-related settings must be located and removed.
As a System Administrator for each Automation Controller NGINX web server host, search for modified cookie variables in the Automation Controller configuration:
sudo grep -r -E '(CSRF|SESSION)_COOKIE_(HTTPONLY|SECURE|SAMESITE)' /etc/tower/settings.py /etc/tower/conf.d/
If any output is shown, this is a finding.
M
5535