Vulnerability identifier: #VU36172
Vulnerability risk: Medium
CVSSv4.0: 4.6 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green]
CVE-ID:
CWE-ID:
CWE-200
Exploitation vector: Network
Exploit availability: No
Vulnerable software:
Pagure
Web applications /
Other software
Vendor: Pagure
Description
The vulnerability allows a remote non-authenticated attacker to gain access to sensitive information.
Pagure 5.2 leaks API keys by e-mailing them to users. Few e-mail servers validate TLS certificates, so it is easy for man-in-the-middle attackers to read these e-mails and gain access to Pagure on behalf of other users. This issue is found in the API token expiration reminder cron job in files/api_key_expire_mail.py; disabling that job is also a viable solution. (E-mailing a substring of the API key was an attempted, but rejected, solution.)
Mitigation
Install update from vendor's website.
Vulnerable software versions
Pagure: 5.2
External links
https://pagure.io/pagure/c/9905fb1e64341822366b6ab1d414d2baa230af0a
https://pagure.io/pagure/issue/4230
https://pagure.io/pagure/issue/4252
https://pagure.io/pagure/issue/4253
https://pagure.io/pagure/pull-request/4254
Can this vulnerability be exploited remotely?
Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.
Is there known malware, which exploits this vulnerability?
No. We are not aware of malware exploiting this vulnerability.