Ghost Posts via IDOR: How I Read Unpublished NASA Blog Content Us
The WordPress blog's ?p=ID endpoint returned draft posts to unauthenticated users because it did not check post status. An attacker could read unpublished blog content by guessing sequential post IDs.
You need to understand Deserialization gadgets. You need to bypass Cloudflare WAFs.
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 ?p=ID endpoint resolved the post by its numeric ID without verifying that the post was published and the user was authorised.
Impact
An unauthenticated user could read unpublished draft blog posts, but NASA rated this informational because the content was a public blog post due to be published shortly.
What the attacker needed
None
How it was found
- Browse a public blog post and note its pretty URL.
- Request the same post using the ?p=ID form to confirm it redirects to the public post.
- Loop over a range of nearby IDs and record the HTTP status codes.
- Find an ID that returns 200 OK instead of a redirect or 404.
- Open that ID in a browser and see the draft content.
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.
Websites often give each post a number, and the page that shows a post by number did not check whether the post was published. By trying numbers one after another, the researcher found a draft post that anyone could read.
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.