Skip to content
Access control Disclosed report Beginner

Unauthenticated Disclosure of Unpublished / Embargoed

A custom WordPress REST API endpoint on NASA's website returned a list of unpublished content IDs and timestamps without requiring authentication. An attacker could use this to learn about embargoed press releases and internal editorial activity.

National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program

Originally disclosed on Bugcrowd

Informational View original
  • Accepted in 7 hours
  • Fixed in 46 days
  • Disclosed after 45 days

Summary by 0xPewPew

The /wp-json/nasa-external-content/v1/unpublished-posts endpoint on www.nasa.gov is a custom WordPress REST route that returns the full inventory of unpublished/draft content on the site with no authentication and no parameters required. This is a Broken Access Control / IDOR issue: the route was registered without a permission_callback, so WordPress serves data intended only for authenticated editorial staff to any anonymous visitor.

A single unauthenticated GET request returns a JSON object listing every currently unpublished item, grouped by content type, each with its internal post ID and last-modified timestamp. At the time of testing, the response contained 3,939 unpublished/non-public IDs across 27 content types, including press-release, mission, feature, page, people, event, and podcast.

I confirmed these IDs are genuinely non-public (not just already-live content) by checking them against the standard WordPress REST API and the public site: sampled IDs return 401 Unauthorized from /wp-json/wp/v2/posts/{id} (the object exists but access is forbidden) or 404 Not Found from the public site. I also found one ID from the leaked list that has since been published — it now 301-redirects to its live URL — which confirms the endpoint tracks NASA's real draft-to-publish pipeline rather than returning stale data.

I did not open, read, or harvest the contents of any individual draft. Per NASA's VDP rule to stop testing immediately upon encountering non-public/sensitive data, I halted after confirming the exposure was real.

Business Impact

This exposes NASA's internal editorial pipeline to anyone on the internet. Even without full body text, disclosing the existence, internal ID, content type, and last-edit timestamp of embargoed press releases and mission/feature announcements is sensitive — it signals that an announcement is in preparation and lets an attacker monitor edit activity or detect the moment an embargoed item goes live. It also hands out precise internal IDs for thousands of non-public objects, removing the guesswork for any future attempt to reach draft content through another endpoint that doesn't enforce authorization correctly.

The original report as published on Bugcrowd, by 0xPewPew. Images and videos are our own copies; raw HTML is shown as text. View it on Bugcrowd.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

Context

NASA runs its public site on WordPress, and the site exposes a custom REST route under the /wp-json/ namespace. The route in question is /wp-json/nasa-external-content/v1/unpublished-posts on www.nasa.gov. Judging by the name and the data it returns, it lists content that has not yet been published.: drafts, embargoed press releases, mission and feature announcements still in preparation, and so on.

WordPress REST routes are registered in code with an arguments array that can include a permission_callback. When that callback is present, WordPress calls it before running the route handler and refuses the request if it returns false or an error. When it is absent, the route is effectively open to anyone who can reach the site. That is the mechanism at the centre of this report.

The issue class is Broken Access Control, specifically the IDOR flavour: an object listing that should only be visible to authenticated editorial staff is served to anonymous visitors.

Setup

No account, role, token or special tooling was needed. The endpoint requires no authentication and no parameters. The researcher tested as an anonymous visitor against the production host www.nasa.gov, and the only precondition was network access to the site.

Finding it

The route stood out because of what its name promises: an inventory of unpublished posts, served from a public host, with no visible authorisation gate. A route that returns draft metadata should normally be reachable only by logged-in editorial users, so the natural question was whether the permission_callback had been omitted at registration time.

Exploitation

Step 1: request the route anonymously

A single unauthenticated GET request was enough:

No cookies, no nonce, no query string. The response was a JSON object listing every currently unpublished item, grouped by content type. Each entry carried its internal post ID and last-modified timestamp.

At the time of testing the response contained 3,939 unpublished or otherwise non-public IDs spread across 27 content types. Those types included press-release, mission, feature, page, people, event and podcast.

Step 2: confirm the IDs are genuinely non-public

The obvious objection to a leak like this is that the IDs might simply point at content that is already live, in which case the exposure would be worthless. The researcher checked sampled IDs against two independent references: the standard WordPress REST API and the public site itself.

Sampled IDs returned 401 Unauthorized from the core posts route:

A 401 here means the object exists but access is forbidden to the anonymous caller, which is exactly the behaviour expected for a draft. Other sampled IDs returned 404 Not Found from the public site, consistent with content that has no public URL yet.

Step 3: confirm the data tracks the live pipeline

One ID from the leaked list had since been published. Requesting it now produced a 301 redirect to its live URL. That detail matters: it shows the endpoint reflects NASA's real draft-to-publish workflow rather than returning stale or orphaned records.

Step 4: stop

NASA's VDP rules require testing to stop immediately upon encountering non-public or sensitive data. The researcher halted after confirming the exposure was real and did not open, read or harvest the contents of any individual draft. The finding is therefore about the listing and its metadata, not about the body text of any embargoed item.

Root cause

The route was registered without a permission_callback. In WordPress, that omission means the route handler runs for any caller, authenticated or not. Without the callback, the framework does not enforce any restriction on who may call it.

Why did nothing else stop it? The core posts route returned 401 for the sampled drafts, while the custom route returned the listing. The route was registered without a permission_callback, so WordPress served the data to anonymous visitors.

Impact

The endpoint hands NASA's internal editorial pipeline to anyone on the internet. Even without body text, the disclosure of existence, internal ID, content type and last-edit timestamp for embargoed press releases and mission or feature announcements is sensitive. It signals that an announcement is in preparation, lets an attacker monitor edit activity, and lets them detect the moment an embargoed item goes live.

It also supplies precise internal IDs for thousands of non-public objects. That removes the guesswork from any future attempt to reach draft content through another endpoint that fails to enforce authorisation correctly.

The report does not claim that draft contents were read or could be read through this route; the impact is confined to the metadata inventory described above.

Fix

The report does not describe a remediation or state what was changed. Whether NASA applied that, removed the route, or took another approach is not recorded here.

Variants to test

  1. Other custom namespaces. Enumerate /wp-json/ and look for non-core namespaces, then request each route without credentials. A positive result is a JSON body returned to an anonymous caller where the route name implies privileged data, such as drafts, users, orders or internal configuration.
  2. Routes with methods but no permission_callback. For each discovered route, try the HTTP methods it advertises. A positive result is a successful response to a method that should require a capability, for example a POST that mutates state.
  3. ID-based sub-routes. Where a listing route leaks IDs, try fetching individual objects by ID through the same namespace. A positive result is a 200 with object data for an ID that the core API returns 401 or 404 for.
  4. Parameter-driven expansion. Some handlers accept fields, context or per-page parameters. Try context=edit or similar where the route accepts parameters. A positive result is richer data than the default response, such as raw content or author details.
  5. Cross-check against the public site. For any leaked ID, request the corresponding public URL. A 404 or a redirect chain that does not resolve to live content supports the claim that the object is non-public.

Hunting notes

Custom WordPress REST namespaces are a productive place to look because they are written by site teams rather than the core project, and the permission_callback is easy to forget. During recon, enumerate /wp-json/ and note any namespace that is not wp/v2 or another well-known plugin namespace. Route names containing words like unpublished, draft, internal, admin, export or inventory are strong signals.

A quick check is to request each candidate route with no cookies and see whether the response is a JSON payload rather than an authentication error. If it returns data, compare a sample of the identifiers against the core API and the public site to show that the objects are genuinely non-public; a 401 from /wp-json/wp/v2/posts/{id} or a 404 from the public URL is the evidence that turns a suspicious response into a finding.

On impact, the researcher made the case without touching draft contents: the volume of IDs, the range of content types, and the fact that one leaked ID had since been published and now redirects to its live URL. That last point demonstrates the data is live and tied to the real publishing pipeline, which is what makes the metadata disclosure meaningful rather than a stale artefact. Stopping at that point also respected the program's rule on non-public data, which is worth doing deliberately: confirm the exposure, document it, and do not read the drafts.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 15 min read.

What happened, in plain words

NASA's public website runs on WordPress, a very common system for building and managing websites. WordPress can be extended with extra pieces of software, and one of those pieces added a special web address (a "route") to the NASA site. Judging by its name and the data it returned, that address listed content that is not published yet.: drafts, press releases held back until a set date, and announcements still being written.

The problem was that this address did not check who was asking. Anyone on the internet could open it in a browser and receive the list. The list did not contain the text of the articles, but it did contain internal numbers (IDs) for each unpublished item, what kind of content it is, and when it was last changed.

This kind of mistake is called Broken Access Control. In simple terms: the door was there, the room behind it was meant to be staff-only, but nobody put a lock on the door. A more specific name for this flavour is IDOR, which stands for Insecure Direct Object Reference: a system hands out references (here, internal IDs) to objects that the person asking should not be able to see.

A researcher found the address, requested it once without logging in, and got the list back. They then checked a few of the leaked IDs to prove the items really were not public, noticed that one of them had since been published, and stopped there, because NASA's vulnerability disclosure programme (VDP) rules say to stop as soon as you encounter non-public data. A VDP is a set of rules a company publishes so that people who find security problems can report them safely instead of being treated as attackers.

Context

What WordPress and its REST API are

WordPress is a content management system: software that stores articles, pages and media and lets people edit them through a web interface. It also has a feature called the REST API. An API (Application Programming Interface) is a way for one piece of software to ask another for data or to tell it to do something, without a human clicking buttons. A useful comparison is a restaurant: the menu and the waiter are the API. You do not walk into the kitchen yourself; you ask the waiter for a dish by name, and the kitchen sends it back. On the web, the "waiter" is a URL you request, and the "dish" is the data that comes back, usually in a format called JSON (a plain-text way of writing structured data, with curly braces, names and values).

A REST route is simply one of those named requests. WordPress routes live under a common prefix, /wp-json/. The core routes that ship with WordPress live under /wp-json/wp/v2/. Plugins and site teams can add their own routes under their own namespace, which is just a name that groups routes together, like a folder. NASA's site had a custom namespace called nasa-external-content/v1, and inside it a route called unpublished-posts.

So the full address in question was:

Text
/wp-json/nasa-external-content/v1/unpublished-posts

on the host www.nasa.gov. Judging by the name and by the data it returned, its purpose was to give NASA's editorial tools an inventory of content that has not been published yet: drafts, embargoed press releases (a press release under embargo is one that is written and ready but must not be shown publicly before a set date), and mission or feature announcements still in preparation.

The mechanism: permission_callback

When a developer registers a route in WordPress, they pass along a set of options. One of those options is called permission_callback. It is a small piece of code that WordPress runs before it runs the route itself. Think of it as the bouncer at the door: before the kitchen cooks anything, the bouncer checks your name is on the list. If the callback says no (it returns false or an error), WordPress refuses the request. If the callback is missing entirely, there is no bouncer, and the route runs for anyone who can reach the site.

That missing callback is the mechanism at the centre of this report. The issue class is Broken Access Control, specifically the IDOR flavour: an object listing that should only be visible to logged-in editorial staff is served to anonymous visitors. "Anonymous" here means a visitor with no account and no login.

Setup

Nothing special was needed to test this. No account, no role, no token, no special tooling. A token, in web terms, is a short piece of text that proves who you are, a bit like a wristband at an event: you show it and you are let in. Here, no wristband was required.

The endpoint needs no authentication (no proof of identity) and no parameters (no extra values added to the address, such as ?id=5). The researcher tested as an anonymous visitor against the production host www.nasa.gov, meaning the real live site rather than a test copy. The only precondition was network access to the site, in other words, being able to load it at all.

Finding it

The route stood out because of what its name promises: an inventory of unpublished posts, served from a public host, with no visible authorisation gate. Authorisation is the process of deciding whether an identified person is allowed to do a particular thing; authentication is proving who they are, and authorisation is what they may then do. A route that returns draft information should normally be reachable only by logged-in editorial users, so the natural question was whether the permission_callback had been left out when the route was registered.

Exploitation

Step 1: request the route anonymously

A single unauthenticated GET request was enough. GET is one of the basic methods of the web protocol HTTP: it means "give me this thing", as opposed to methods that change something. HTTP is the language browsers and servers use to talk to each other.

Line by line:

  1. GET /wp-json/nasa-external-content/v1/unpublished-posts HTTP/1.1 is the request line. GET is the action being asked for. The path after it is the route being requested. HTTP/1.1 is the version of the protocol being spoken.
  2. Host: www.nasa.gov tells the server which website name the request is for. One server can host many names, so this line says which one is meant.

No cookies, no nonce, no query string. A cookie is a small piece of data a site stores in your browser so it can recognise you on later requests, which is how most logins stay logged in. A nonce is a one-time code a site adds to a request to prove the request came from its own pages and not from somewhere else. A query string is the part of a URL after a question mark, carrying extra values. None of these were sent, and the request still worked.

The response was a JSON object listing every currently unpublished item, grouped by content type. Each entry carried its internal post ID and last-modified timestamp. A timestamp is simply a date and time.

At the time of testing the response contained 3,939 unpublished or otherwise non-public IDs spread across 27 content types. Those types included press-release, mission, feature, page, people, event and podcast.

Step 2: confirm the IDs are genuinely non-public

The obvious objection to a leak like this is that the IDs might simply point at content that is already live, in which case the exposure would be worthless. An ID is just a number the site uses internally to tell one item from another, like a ticket number. If those numbers only referred to pages anyone could already read, there would be nothing to report.

So the researcher checked sampled IDs against two independent references: the standard WordPress REST API and the public site itself. "Sampled" means a few picked out of the list rather than all of them.

Sampled IDs returned 401 Unauthorized from the core posts route:

Line by line:

  1. GET /wp-json/wp/v2/posts/{id} HTTP/1.1 asks for a single post by its number. {id} is a placeholder standing for the actual number taken from the leaked list; it is not sent literally.
  2. Host: www.nasa.gov again names the site being asked.

A 401 here means the object exists but access is forbidden to the anonymous caller, which is exactly the behaviour expected for a draft. HTTP status codes are the server's short answer: 200 means fine, 401 means "you are not allowed in", 404 means "no such thing here", and 301 means "this has moved permanently, go to this other address". The point of this step is comparison: the core route behaved correctly and refused, while the custom route had handed over the list.

Other sampled IDs returned 404 Not Found from the public site, consistent with content that has no public URL yet. In other words, the public site had nothing at that address, which fits an item that has never been published.

Step 3: confirm the data tracks the live pipeline

One ID from the leaked list had since been published. Requesting it now produced a 301 redirect to its live URL. A redirect is the server telling the browser "not here, look over there", and 301 specifically means the move is permanent.

That detail matters: it shows the endpoint reflects NASA's real draft-to-publish workflow rather than returning stale or orphaned records. "Stale" means old data left behind; "orphaned" means records that no longer belong to anything real. If a leaked number later turns into a live page, the list is clearly connected to what the editorial team is actually doing.

Step 4: stop

NASA's VDP rules require testing to stop immediately upon encountering non-public or sensitive data. The researcher halted after confirming the exposure was real and did not open, read or harvest the contents of any individual draft. "Harvest" means collecting data in bulk. The finding is therefore about the listing and its metadata, not about the body text of any embargoed item. Metadata is data about data: here, the ID, the content type and the last-edited time, rather than the article itself.

Root cause

The route was registered without a permission_callback. In WordPress, that omission means the route handler runs for any caller, authenticated or not. The handler is the code that actually produces the response. Without the callback, the framework does not enforce any restriction on who may call it. A framework is the underlying software a site is built on; it only does what it is told, and it was never told to check.

Why did nothing else stop it? The core posts route returned 401 for the sampled drafts, while the custom route returned the listing. A capability check is a test of whether the logged-in user has a particular permission, such as "can edit posts". The route was registered without a permission_callback, so WordPress served the data to anonymous visitors.

Impact

The endpoint hands NASA's internal editorial pipeline to anyone on the internet. Even without body text, the disclosure of existence, internal ID, content type and last-edit timestamp for embargoed press releases and mission or feature announcements is sensitive. It signals that an announcement is in preparation, lets an attacker monitor edit activity, and lets them detect the moment an embargoed item goes live. Being able to watch when something changes is useful to someone who wants to act at exactly the right moment.

It also supplies precise internal IDs for thousands of non-public objects. That removes the guesswork from any future attempt to reach draft content through another endpoint that fails to enforce authorisation correctly. Guessing numbers at random is slow and noisy; a ready-made list makes it quick.

The report does not claim that draft contents were read or could be read through this route; the impact is confined to the metadata inventory described above.

Fix

The report does not describe a remediation or state what was changed. A 403 means "I know who you are, and you still may not do this". Whether NASA applied that, removed the route, or took another approach is not recorded here.

Variants to test

These are the same kinds of checks applied to other sites, written for someone who is new to this.

  1. Other custom namespaces. Enumerate /wp-json/ and look for non-core namespaces, then request each route without credentials. To enumerate means to list what is there. A positive result is a JSON body returned to an anonymous caller where the route name implies privileged data, such as drafts, users, orders or internal configuration.
  2. Routes with methods but no permission_callback. For each discovered route, try the HTTP methods it advertises. Methods are the verbs of the web: GET reads, POST usually creates or submits. A positive result is a successful response to a method that should require a capability, for example a POST that mutates state. Mutating state means changing data on the server.
  3. ID-based sub-routes. Where a listing route leaks IDs, try fetching individual objects by ID through the same namespace. A positive result is a 200 with object data for an ID that the core API returns 401 or 404 for.
  4. Parameter-driven expansion. Some handlers accept fields, context or per-page parameters. Try context=edit or similar where the route accepts parameters. A positive result is richer data than the default response, such as raw content or author details.
  5. Cross-check against the public site. For any leaked ID, request the corresponding public URL. A 404 or a redirect chain that does not resolve to live content supports the claim that the object is non-public. A redirect chain is a series of redirects, one leading to the next.

Hunting notes

Custom WordPress REST namespaces are a productive place to look because they are written by site teams rather than the core project, and the permission_callback is easy to forget. During recon, enumerate /wp-json/ and note any namespace that is not wp/v2 or another well-known plugin namespace. Recon, short for reconnaissance, means looking around a site to see what it is made of before testing anything. Route names containing words like unpublished, draft, internal, admin, export or inventory are strong signals.

A quick check is to request each candidate route with no cookies and see whether the response is a JSON payload rather than an authentication error. If it returns data, compare a sample of the identifiers against the core API and the public site to show that the objects are genuinely non-public; a 401 from /wp-json/wp/v2/posts/{id} or a 404 from the public URL is the evidence that turns a suspicious response into a finding. A finding is a confirmed problem worth reporting, as opposed to a hunch.

On impact, the researcher made the case without touching draft contents: the volume of IDs, the range of content types, and the fact that one leaked ID had since been published and now redirects to its live URL. That last point demonstrates the data is live and tied to the real publishing pipeline, which is what makes the metadata disclosure meaningful rather than a stale artefact. Stopping at that point also respected the program's rule on non-public data, which is worth doing deliberately: confirm the exposure, document it, and do not read the drafts.

Glossary

  • API (Application Programming Interface): a way for one piece of software to ask another for data or to perform an action, without a human clicking through a screen.
  • Authentication: proving who you are, usually by logging in.
  • Authorisation: deciding what an identified person is allowed to do.
  • Anonymous: a visitor with no account and no login.
  • Broken Access Control: a class of bug where the system does not properly check whether the person asking is allowed to see or do something.
  • Capability check: a test of whether a logged-in user holds a particular permission, such as the right to edit posts.
  • Cookie: a small piece of data a site stores in your browser so it can recognise you on later requests.
  • Core routes: the routes that ship with WordPress itself, under /wp-json/wp/v2/.
  • Custom namespace: a name a site or plugin uses to group its own routes, separate from the core ones.
  • Endpoint: a specific address on a server that accepts requests and returns data or performs an action.
  • Enumerate: to list what exists, for example all the routes a site exposes.
  • Framework: the underlying software a site is built on, which provides ready-made behaviour.
  • GET: the HTTP method meaning "give me this thing", used for reading.
  • Handler: the code that runs to produce the response for a route.
  • Harvest: to collect data in bulk.
  • Host: the website name a request is addressed to, such as www.nasa.gov.
  • HTTP: the protocol browsers and servers use to exchange requests and responses.
  • HTTP status code: the server's short numeric answer, such as 200 (fine), 301 (moved permanently), 401 (not allowed), 403 (forbidden), 404 (not found).
  • ID: an internal number a site uses to tell one item from another.
  • IDOR (Insecure Direct Object Reference): a bug where a system hands out references to objects, such as internal IDs, that the person asking should not be able to see.
  • JSON: a plain-text format for structured data, written with curly braces, names and values.
  • Metadata: data about data, such as an item's ID, type and last-edited time, rather than its content.
  • Method: the verb of an HTTP request, such as GET (read) or POST (usually create or submit).
  • Mutate state: to change data stored on the server.
  • Nonce: a one-time code a site adds to a request to prove it came from its own pages.
  • Orphaned record: a record that no longer belongs to anything real.
  • Parameter: an extra value attached to a request, often after a question mark in the URL.
  • permission_callback: a WordPress option that runs a check before a route's handler, refusing the request if the check fails.
  • Production host: the real live site, as opposed to a test copy.
  • Query string: the part of a URL after a question mark that carries extra values.
  • Recon (reconnaissance): looking around a site to understand what it is made of before testing.
  • Redirect: the server telling the browser to go to a different address instead.
  • Redirect chain: a series of redirects, one leading to the next.
  • REST route: a named address under a common prefix that accepts requests and returns data.
  • Sampled: a few items picked out of a larger list rather than all of them.
  • Stale data: old data left behind that no longer reflects reality.
  • Timestamp: a date and time recorded for an event, here the last modification of an item.
  • Token: a short piece of text that proves who you are, presented with a request.
  • VDP (Vulnerability Disclosure Programme): published rules letting people report security problems safely, including when to stop testing.
  • WordPress: a widely used content management system for building and running websites.

More from National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.