Runkeeper stored XSS
A stored cross-site scripting flaw existed in the RunKeeper user profile name field, allowing an attacker to inject a script that executed when other users viewed the public profile. The report also found a site-wide cross-site request forgery issue that let an attacker make users follow other accounts via a GET request.
Published on seekurity.com
RunKeeper is a GPS fitness-tracking app for iOS and Android with over 40 million users. First launched in 2008 by CEO Jason Jacobs with the help of “moonlighting engineers”.
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 application stored user-supplied profile names without proper validation or encoding, and state-changing actions like following were performed via GET requests without anti-CSRF tokens.
Impact
An attacker could execute arbitrary scripts in the browsers of users viewing a profile, potentially performing actions like following other users and spreading worm-like, and could also force logged-in users to follow accounts via CSRF.
What the attacker needed
A RunKeeper account; victim views the malicious profile; victim is logged in (for CSRF)
How it was found
- Inject a script into the RunKeeper user profile name field.
- Visit the public user profile page to trigger the stored script.
- Use the script to send a follow request to the profile owner, creating a worm-like effect.
- Shorten the payload to bypass a length limit and ensure execution.
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.
Cross-site scripting (XSS) is when a website lets an attacker sneak a small program (script) into a page that other people view. Here, the profile name field saved whatever was typed without cleaning it, so a malicious name could run code in the browser of anyone who looked at that profile. The report also found that a simple link could make a logged-in user follow someone without their consent, which is called cross-site request forgery (CSRF).
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.