Planet Python
Follow
Python Software Foundation: Mitigated API authentication bypass for python.org download metadata
A significant authentication bypass vulnerability in the python.org release management API was reported by Splitline Ng of DEVCORE Research Team. This flaw, present since 2014, allowed an attacker to use an admin username with an arbitrary API key to gain admin privileges. Exploitation could have enabled modification of Python release and file metadata, specifically the download URLs presented to users. However, no evidence of exploitation was found after extensive log and database backup audits. The Python Security Response Team (PSRT) confirmed and patched the vulnerability within 48 hours of the report. Seth Larson and Hugo van Kemenade developed and deployed the patch with assistance from Jacob Coffee. The vulnerability's age and the robust verification processes used by redistributors made unnoticed exploitation highly unlikely. Verification of Sigstore and PGP materials confirmed that all python.org artifacts remained unmodified. Following the immediate patch, a thorough manual audit of the codebase was conducted, along with LLM auditing tools. A third-party audit by Trail of Bits was also completed to ensure comprehensive security. Remediation efforts included patching the authentication mechanism, requiring HTTPS URLs for newer releases, adding negative authentication test cases, and rejecting non-https URLs. Logging retention was also increased for better audit capabilities.