CVE-2026-27886: Unauthenticated Boolean-Oracle Exfiltration of Administrator Secrets in Strapi
Strapi's Content API query sanitizer only handled a fixed list of documented keys and passed any other top-level key straight through to the database query builder, so an unauthenticated attacker could inject a relation filter on the admin user table. By testing prefixes of the admin's password-reset token and watching the pagination total, the attacker could recover the token character by character and then use the normal reset endpoint to obtain a Super Admin session.
bishopfox.com
Published on bishopfox.com
Strapi versions 4.0.0 through 5.36.1 contain an unauthenticated parameter sanitization bypass in the Content API that lets a remote attacker extract administrator secrets one character at a time and pivot to full account takeover. The framework's query sanitizer at nodemodules/@strapi/utils/dist/sanitize/index.js:78…
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 query sanitizer and validator only processed a hardcoded set of documented keys and never enforced an allowlist, so an undocumented `where` key survived into the database query builder as an attacker-controlled filter.
Impact
An unauthenticated attacker could take over the most privileged administrator account and gain full control of the instance, though the bug is only reachable when an administrator has granted the Public role a find action on at least one collection and a row carries a creator relation.
What the attacker needed
Public role granted find on a collection; A row with a creator relation set; No authentication needed
The fix
Strapi 5.37.0 was fixed by adding an explicit allowlist of permitted query keys that is enforced at both the validate and sanitize layers, with the Content API controllers opting in.
How it was found
- Trigger the forgot-password endpoint for an administrator so a reset token is generated.
- Send requests to a public Content API collection that filter on the admin reset token by prefix.
- Read the pagination total to learn whether each guessed prefix is correct, and repeat to recover the whole token.
- Submit the recovered token to the reset-password endpoint with a chosen password.
- Receive a Super Admin session token in the response.
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.
Strapi is a content management system that serves website content through an API. Its code checked only the query options it knew about and let anything else reach the database, so a crafted request could ask questions about hidden administrator data. Because the reply only said whether a guess was right or wrong, an attacker could guess the secret one character at a time and then reset the administrator's password.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.