Описание
Improper Authorization in cobbler
Impact
If PAM is correctly configured and a user account is set to expired, the expired user-account is still able to successfully log into Cobbler in all places (Web UI, CLI & XMLRPC-API).
The same applies to user accounts with passwords set to be expired.
Patches
There is a patch for the latest Cobbler 3.3.2 available, however a backport will be done for 3.2.x.
Workarounds
- Delete expired accounts which are able to access Cobbler via PAM.
- Use
chage -l <username>to lock the account. If the account has SSH-Keys attached then remove them completely.
References
- Originally discovered by @ysf at https://www.huntr.dev/bounties/c458b868-63df-414e-af10-47e3745caa1d/
How to test if my Cobbler instance is affected?
The following pytest test assumes that your PAM setup is correct. In case the added user is not able to login, this test does not make sense to be executed.
For more information
If you have any questions or comments about this advisory:
- Open an issue in the Cobbler repository
- Ask in the Gitter/Matrix Chat
- Email us at cobbler.project@gmail.com
Ссылки
- https://github.com/cobbler/cobbler/security/advisories/GHSA-mcg6-h362-cmq5
- https://nvd.nist.gov/vuln/detail/CVE-2022-0860
- https://github.com/cobbler/cobbler/commit/9044aa990a94752fa5bd5a24051adde099280bfa
- https://github.com/advisories/GHSA-mcg6-h362-cmq5
- https://github.com/pypa/advisory-database/tree/main/vulns/cobbler/PYSEC-2022-177.yaml
- https://huntr.dev/bounties/c458b868-63df-414e-af10-47e3745caa1d
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/D4KCNZYBQC2FM5SEEDRQZO4LRZ4ZECMG
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DYWYHWVVRUSPCV5SWBOSAMQJQLTSBTKY
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IYSHMF6MEIITFAG7EJ3IQKVUN7MDV2XM
Пакеты
cobbler
< 3.3.2
3.3.2
EPSS
6.7 Medium
CVSS4
8.2 High
CVSS3
CVE ID
Дефекты
Связанные уязвимости
Improper Authorization in GitHub repository cobbler/cobbler prior to 3.3.2.
Improper Authorization in GitHub repository cobbler/cobbler prior to 3.3.2.
Improper Authorization in GitHub repository cobbler/cobbler prior to 3 ...
EPSS
6.7 Medium
CVSS4
8.2 High
CVSS3