Check: GEN001300 M6
MACOSX 10.6:
GEN001300 M6
(in version v1 r3)
Title
Library files must have mode 0755 or less permissive. (Cat II impact)
Discussion
Unauthorized access could destroy the integrity of the library files.
Check Content
Open a terminal session and enter the following command to verify the permissions on library and framework files, all on one line. find /System/Library/Frameworks /Library/Frameworks /usr/lib /usr/local/lib -type f -perm +022 -exec stat -f %Lp:%N {} \; If any of the library files have a mode more permissive than 0755, this is a finding.
Fix Text
Open a terminal session and enter the following command to change the mode of library files to 0755 or less permissive. chmod 0755 <path/to/library-file> NOTE: Library files should have an extension of ".a" or ".so", possibly followed by a version number. Frameworks are directories that may already contain files with more restrictive permissions than 755 and thus should not have their modes changed to 755 recursively.
Additional Identifiers
Rule ID: SV-37911r1_rule
Vulnerability ID: V-793
Group Title:
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-001499 |
The organization limits privileges to change software resident within software libraries. |
Controls
Number | Title |
---|---|
CM-5 (6) |
Limit Library Privileges |