How I Accidentally Got My First CVE (While Looking for Something Else Entirely)
The upload endpoint of a private Dart package hosting service lacked authentication and trusted a client-supplied author ID, so anyone could upload packages while impersonating any user, including an administrator. This enabled supply chain attacks by publishing malicious packages under trusted identities.
My original target was amdax.com - a cryptocurrency company in Amsterdam. Standard reconnaissance: checking domains/subdomains, looking for interesting attack surfaces, the usual process.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The upload endpoint had no authentication check and trusted a client-provided author ID without verifying that the requester was that author.
Impact
An unauthenticated attacker could upload packages as any user, including an administrator, enabling identity spoofing and supply chain attacks; the service owner initially dismissed the issue, and the instance remained vulnerable for at least 10 days after the report.
What the attacker needed
Internet access to the service; no account needed
The fix
The maintainer fixed it by moving the author ID into a signed URL that is validated before processing, so the author ID can be trusted.
How it was found
- Find the private package hosting service and its open-source code repository.
- Review the upload controller and notice it lacks authentication and trusts a form field for author ID.
- Create a minimal test package archive.
- Send an unauthenticated upload request with the test package and an author ID of 1.
- Observe a successful response confirming the package was uploaded as the administrator.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The service that hosts software packages had an upload feature that did not check who was sending the package. It also believed whatever user ID the sender claimed, so a stranger could pretend to be the company's administrator and publish a package under that name. People who later downloaded that package might trust it because it appeared to come from a known author.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.