How I Turned an AI Search Endpoint into an Internal Org Intel Leak
An AI search endpoint returned different hit counts for valid and invalid codes, letting an attacker enumerate valid six-digit prefixes. The server also exposed presigned S3 URLs containing internal organisation IDs, valid AI codes, and eligibility flags without authentication.
Instead of brute-forcing 10¹² combinations, I only needed to scan 10⁰⁶ prefixes.
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
Likely the endpoint acted as an oracle by returning different hit counts for valid and invalid codes, and presigned S3 URLs were exposed to clients without authentication or rate limiting.
Impact
An attacker could enumerate valid AI codes and access internal organisation data, including eligibility logic and operational flags, which could enable further attacks.
What the attacker needed
A normal student account; no special tools
The fix
The endpoint should be fixed by adding strict rate limiting, revoking existing presigned URLs, proxying S3 access through the backend, and returning only necessary fields.
How it was found
- Send a request to the AI search endpoint with a six-digit prefix followed by placeholder characters.
- Observe the hits.total value: zero means invalid, greater than zero means valid.
- Loop through all six-digit prefixes to find valid ones.
- Open the presigned S3 URL returned by the server to view the JSON file.
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.
A search feature answered differently depending on whether a code was real, so an attacker could use it like a guessing game to find valid codes. The server also handed out temporary links to files that held internal organisation details, and anyone with the link could open them.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.