Check: WG270 A24
Apache Server 2.4 Unix:
WG270 A24
(in version v1 r1)
Title
The web server’s htpasswd files (if present) must reflect proper ownership and permissions. (Cat II impact)
Discussion
In addition to OS restrictions, access rights to files and directories can be set on a web site using the web server software. That is, in addition to allowing or denying all access rights, a rule can be specified that allows or denies partial access rights. For example, users can be given read-only access rights to files, to view the information but not change the files. This check verifies that the htpasswd file is only accessible by system administrators or web managers, with the account running the web service having group permissions of read and execute. htpasswd is a utility used by Netscape and Apache to provide for password access to designated web sites.
Check Content
To locate the htpasswd file enter the following command: find / -name htpasswd -print -exec ls -l {} \; Permissions should be r-xr-x--- (mode 550) If permissions on htpasswd are greater than 550, this is a finding. Ownser should be the SA or Web Manager account. If another account has access to this file, this is a finding.
Fix Text
The SA or Web Manager account should own the htpasswd file and permissions should be set to 550.
Additional Identifiers
Rule ID:
Vulnerability ID: V-2255
Group Title:
Expert Comments
CCIs
Number | Definition |
---|---|
No CCIs are assigned to this check |
Controls
Number | Title |
---|---|
No controls are assigned to this check |