No Actual Daters Harmed in This Exercise
The OkCupid Android app opened a WebView with JavaScript enabled and loaded URLs from a deep link, and the web settings page reflected the 'section' parameter without sanitisation, allowing an attacker to run JavaScript in the victim's authenticated session. A misconfigured CORS policy on the API server also let any origin read responses containing the victim's authentication token and user ID, enabling theft of profile data and messages.
research.checkpoint.com
Published on research.checkpoint.com
With over 50 million registered users since its launch, and the majority aged between 25 and 34, OkCupid is one of the most popular dating platforms globally. Conceived in 2004 when four friends from Harvard created the first free online dating site, it claims that over 91 million connections are made through it…
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 app trusted deep-link parameters and loaded them into a JavaScript-enabled WebView, while the web settings page reflected the 'section' parameter without encoding, and the API server reflected arbitrary origins with credentials allowed.
Impact
An attacker could steal the victim's authentication token, user ID, email address, profile details, preferences and messages, and could perform actions such as sending messages or changing profile data on the victim's behalf; full account takeover was not possible because cookies were HTTPOnly.
What the attacker needed
Victim uses the OkCupid Android app; victim clicks a crafted deep link; victim is logged in
The fix
The vulnerabilities were fixed after responsible disclosure, according to the report.
How it was found
- Reverse engineer the OkCupid Android app and find that it opens a WebView with JavaScript enabled for deep links.
- Craft a deep link containing a malicious value in the 'section' parameter.
- The app opens the WebView and loads the settings page, where the injected JavaScript executes.
- The script calls the API to steal the authentication token and user ID.
- The script uses the token to fetch the victim's profile and messages via GraphQL and API endpoints.
- The script sends the collected data to the attacker's server.
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 WebView is a mini browser inside a mobile app. The app took a link from outside and loaded it in that browser without checking what was in it, and the website put part of the link straight onto the page. So a crafted link could run code that read the user's data. Separately, the API server was configured to let any website read its responses, so a malicious page could fetch the user's token.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.