UBTU-22-232140 - Ubuntu 22.04 LTS must be configured so that the 'journalctl' command is not accessible by unauthorized users.

Information

Any operating system providing too much information in error messages risks compromising the data and security of the structure, and content of error messages needs to 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.

Solution

Configure 'journalctl' to have a permission set of '740':

$ sudo chmod 740 /usr/bin/journalctl

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_CAN_Ubuntu_22-04_LTS_V2R2_STIG.zip

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-11a., CAT|II, CCI|CCI-001312, Rule-ID|SV-260512r958564_rule, STIG-ID|UBTU-22-232140, Vuln-ID|V-260512

Plugin: Unix

Control ID: 3c81b47587e1bf0ba50df594a769b33733d11d49c6a62613148df8cab20ea32a