How Misconfigured S3 Buckets and IDOR Exposed Premium Books
Two S3 bucket subdomains exposed a public XML directory listing of book extract files, and predictable numeric IDs allowed access to premium book content without authentication. An attacker could bypass the subscription and scrape paid books.
medium.com
Published on medium.com
At first, I ignored them because they were out of scope. However, after reviewing them, I noticed the root endpoint exposed a public XML directory listing:
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 S3 bucket was misconfigured to allow public listing and the application used predictable sequential IDs for book files without checking authentication.
Impact
Premium book content could be accessed without a subscription, leading to subscription bypass and mass scraping risk.
What the attacker needed
None
The fix
The team removed the exposed content and disabled access to the affected subdomains, which the text says fully eliminated external exposure.
How it was found
- During recon, find the subdomains book-extracts and book-extracts-staging.
- Visit the root endpoint and see a public XML directory listing of files.
- Open a listed file URL in Incognito mode and see premium book content without logging in.
- Change the numeric ID in the URL to other numbers and see more premium books.
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 cloud storage bucket (like Amazon S3) was set up to allow anyone to list its files, so the directory of book previews was public. The file names used simple numbers, so changing the number in the address showed other books that should have been behind a paywall. No login was needed to read them.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.