Skip to content

Disable JavaScript's Moving Or Resizing Windows Capability

An XCCDF Rule

Description

JavaScript can configure and make changes to the web browser's appearance by specifically moving and resizing browser windows. This can be disabled by setting dom.disable_window_move_resize to true in the policy file.

Rationale

JavaScript can make changes to the browser’s appearance. This activity can help disguise an attack taking place in a minimized background window.

ID
xccdf_org.ssgproject.content_rule_firefox_policy-javascript_window_resizing
Severity
Medium
References
Updated



Remediation - Shell Script


firefox_cfg="policies.json"
# Default to /etc/firefox/policies to use for remediations.
firefox_dirs="/etc/firefox/policies"
permissions=644