Headline
CVE-2022-24755: Add PAM authorization by arogge · Pull Request #1121 · bareos/bareos
Bareos is open source software for backup, archiving, and recovery of data for operating systems. When Bareos Director >= 18.2 >= 18.2 but prior to 21.1.0, 20.0.6, and 19.2.12 is built and configured for PAM authentication, it will skip authorization checks completely. Expired accounts and accounts with expired passwords can still login. This problem will affect users that have PAM enabled. Currently there is no authorization (e.g. check for expired or disabled accounts), but only plain authentication (i.e. check if username and password match). Bareos Director versions 21.1.0, 20.0.6 and 19.2.12 implement the authorization check that was previously missing. The only workaround is to make sure that authentication fails if the user is not authorized.
Conversation
Fixes CVE-2022-24756
(cherry picked from commit e8e7998)
Fixes CVE-2022-24755
Previously, when a user logged in via PAM, Bareos did only check for authentication (i.e. the “auth” section in PAM). No authorization checks were made (the “account” section in PAM). This patch now adds the proper check. This will break existing PAM configuration!
(cherry picked from commit abe4620)
Add an account section to the example and describe what has changed and what users should do to be able to login again.
(cherry picked from commit f4ccb86)