gogs.io/gogs
Affected
- introduced
0, fixed0.12.5(semver)
Fixed versions
0.12.5
Fix
- Fixed version
0.12.5go get gogs.io/[email protected]
Advisory
Also known as: CVE-2022-0871, GO-2022-0369
Gogs vulnerable to improper PAM authorization handling
Impact
Expired PAM accounts and accounts with expired passwords are continued to be seen as valid. Installations use PAM as authentication sources are affected.
Patches
Expired PAM accounts and accounts with expired passwords are no longer being seen as valid. Users should upgrade to 0.12.5 or the latest 0.13.0+dev.
Workarounds
In addition to marking PAM accounts as expired, also disable/lock them. Running usermod -L <username> will add an exclamation mark to the password hash and would result in wrong passwords responses when trying to login.
References
https://huntr.dev/bounties/ea82cfc9-b55c-41fe-ae58-0d0e0bd7ab62/
For more information
If you have any questions or comments about this advisory, please post on https://github.com/gogs/gogs/issues/6810.
High Basis: The source's own band: HIGH
0, fixed 0.12.5 (semver)0.12.5
0.12.5go get gogs.io/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0