Blogs / How a Username and Any API Key Became Admin Access

How a Username and Any API Key Became Admin Access

What the Python Security Response Team says was reported, what supplying an admin username with any key did and how quickly the fix was confirmed.

  • Learning
  • 1 min read

For: Learners new to API security.

What the bypass did

By supplying an admin username with an arbitrary API key the request was processed with admin privileges.[1]

Requestadmin username and anarbitrary API keyProcessed with adminprivileges
What happened to a request that supplied an admin username with an arbitrary key?

How quickly it was fixed

PSRT confirmed the vulnerability on a local instance of python.org.[1]

Less than 48 hours after the initial report the PSRT and the reporter confirmed that the proof-of-concept provided by the reporter no longer worked locally or on the production deployment.[1]

What the report says could and could not change

While it would not enable existing release files to be modified in-place, it would enable an attacker to modify the URLs that are provided on python.org for each release file, including verification material URLs.[1]

There is no evidence this vulnerability was exploited after auditing logs and database backups.[1]

Sources

  1. Mitigated API authentication bypass for python.org download metadata (blog.python.org · checked )

More articles