How I Found a HIGH-Severity AI Security Issue on Khan Academy’s VDP
The web app's feature flag initialisation payload exposed all flags, including an unreleased AI tutor flag and its target cohort. An attacker could learn which AI features were live and potentially self-select into experimental cohorts to bypass safety reviews.
Published on medium.com
My first HackerOne report landed as a HIGH-severity information disclosure on a major education platform. Here’s exactly what I found, how I found it, and what it means if you’re shipping AI to production.
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 feature flag initialisation payload was sent to all clients without filtering out flags that should have been server-side or admin-only.
Impact
An attacker could learn about unreleased AI features and potentially opt into A/B cohorts to bypass safety reviews, though the text does not show a working exploit.
What the attacker needed
None
The fix
Feature flag payloads should be filtered so that only client-safe flags are sent to the browser, keeping sensitive flags server-side or admin-only.
How it was found
- Enumerate subdomains passively using public data sources.
- Probe which subdomains serve HTTP and detect technologies.
- Inspect JavaScript bundles for feature flag initialisation tables.
- Identify a flag for an unreleased AI tutor set to true for an internal beta cohort.
- Find the cohort identifier in a separate subdomain's analytics payload.
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.
Feature flags are switches that turn parts of a website on or off for testing. Here, the website sent the full list of switches to every visitor's browser, including ones for secret, unreleased features. That let anyone see what was coming and possibly join a test group they were not meant to join.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.