Check: UBTU-24-700030
Canonical Ubuntu 24.04 LTS STIG:
UBTU-24-700030
(in version v1 r1)
Title
Ubuntu 24.04 LTS must be configured so that the "journalctl" command is not accessible by unauthorized users. (Cat II impact)
Discussion
Any operating system providing too much information in error messages risks compromising the data and security of the structure, and content of error messages must be carefully considered by the organization. Organizations carefully consider the structure/content of error messages. The extent to which information systems are able to identify and handle error conditions is guided by organizational policy and operational requirements. Information that could be exploited by adversaries includes, for example, erroneous logon attempts with passwords entered by mistake as the username, mission/business information that can be derived from (if not stated explicitly by) information recorded, and personal information, such as account numbers, social security numbers, and credit card numbers.
Check Content
Verify the journalctl command has a permission set of "740" with the following command: $ sudo find /usr/bin/journalctl -exec stat -c "%n %a" {} \; /usr/bin/journalctl 740 If journalctl is not set to "740", this is a finding
Fix Text
Configure journalctl to have a permission set of "740": $ sudo chmod 740 /usr/bin/journalctl
Additional Identifiers
Rule ID: SV-270758r1066763_rule
Vulnerability ID: V-270758
Group Title: SRG-OS-000205-GPOS-00083
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-001312 |
Generate error messages that provide information necessary for corrective actions without revealing information that could be exploited. |
Controls
Number | Title |
---|---|
SI-11 |
Error Handling |