Skip to content

Ultimate Hardening 2.5.1

Choose a tag to compare

@Kal1010101 Kal1010101 released this 11 Nov 07:24
· 93 commits to main since this release

Security release. The SUID/SGID revert in 2.5.0 and earlier could be made to set the SUID bit on files the hardening never touched, a path to root on hosts where untrusted users have local accounts. Update to 2.5.1. Module 9 now leaves SUID files on paths someone other than root could change, and lists them for review; see Changed below.

Security

  • The SUID/SGID revert (--revert-suid, and the SUID step of a full revert)
    could be made, on versions up to 2.5.0, to set the SUID bit on files the
    hardening never touched. On a host where untrusted users have local accounts,
    that is a path to root. Update to 2.5.1. The revert now puts back only a SUID
    bit module 9 removed, on a root-owned file whose path only root can change.
  • Module 9 writes its SUID inventory in a new format, one entry per file. Files
    whose name contains a line break are not recorded or stripped, and are
    reported instead.
  • An inventory written by 2.5.0 or earlier is never restored unattended
    (--auto-mode). Interactively, the files are listed and restored only after
    typing "yes". Re-running module 9 writes an inventory in the new format.

Changed

  • Module 9 no longer strips SUID from files on a path someone other than root
    could change: a symlink, a file not owned by root, or a directory owned by
    another account or writable by its group or everyone. It lists each one as
    "not stripped, path is not under root's sole control (review by hand)". The
    menu's module 9 state (UH_SUID_SCAN=1) ignores those files too.