High, CVSS 8.1PyPIAmendedPublished
Expired tokens can be renewed without validating the account password
GHSA-9wgg-m99q-hhfc
- Affected
- PyPI emailproxy <= 2023.11.18
- Fixed in
- 2023.12.19· Vendor fix available
- Issue
- Impact In versions of the proxy from 2022-09-05 onwards (since 8c874c2ff3d503ac20c7d32f46e08547fcb9e23f), expired OAuth 2.0 client credentials grant (CCG) flow authorisation tokens could be renewed automatically without checking their validity against the original account configuration (i.e., the password that was set up when first creating an account in the proxy). An attacker with knowledge of valid account addresses and careful timing (specifically, attempting to log in during a period from 10 minutes prior to the token expiry time, but before a genuine login request is received) could use this issue to gain access to an account. This issue is only a security concern if you use the proxy with the CCG flow and no additional account secret encryption (see below). If this is the case, it is particularly important to update if you use the proxy in a publicly-accessible setting (i.e., it is available from the internet or across a network). To fix the issue you should switch to version…
Recommended action: Upgrade to 2023.12.19 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.