Auth bypass in Bareos
CVE-2022-24755
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.
Vulnerability class: Broken Access Control
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.020, 81.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Bareos — versions >= 18.2, < 19.2.12, >= 20.0.0, < 20.0.6, >= 21.0.0, < 21.1.0
Weakness classification (CWE)
References
- github.com/bareos/bareos/security/advisories/GHSA-4979-8ffj-4q26 (Third Party Advisory)
- github.com/bareos/bareos/pull/1115 (Patch, Third Party Advisory)
- github.com/bareos/bareos/pull/1119 (Patch, Third Party Advisory)
- github.com/bareos/bareos/pull/1121 (Patch, Third Party Advisory)
- huntr.dev/bounties/480121f2-bc3c-427e-986e-5acffb1606c5/ (Exploit, Patch, Third Party Advisory)