[Stored XSS] vine.co - profile page
The username field sent in a profile update API request was not properly filtered, so a value containing HTML markup was stored and later rendered on the user's profile page on the website. An attacker could set such a username and have script run in the browser of anyone viewing that profile.
- Triaged in 3 hours
- Fixed in 4 hours
- Paid in 2 days
- Disclosed after 4 months
Stored XSS via API request: While creating new account in Windows mobile app, i noticed this request:
PUT /users/1147563919679037440 HTTP/1.1
avatarUrl=https%3A%2F%2Fvines.s3.amazonaws.com%2Favatars_trellis%2F2014%2F11%2F21%2F0B2EAE2EB81147563929149554688_1.3.4.jpg&username=
it seems that the variable username is not properly filtered, just set username to e.g. <svg/onload=alert()> and see result on your profile in vine web site.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the username value from the profile update request was stored without sanitisation and rendered into the profile page without output encoding.
Impact
Script stored in the username could run in the browser of anyone viewing the affected profile page.
What the attacker needed
An account; victim views the profile page
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 report has not been written yet. The Original tab links to the source.
A website should treat anything a user types as plain text, not as code. Here the username was saved as-is and later placed into the profile page, so the browser treated part of it as a small program (script) and ran it. That lets an attacker run code in the browser of anyone who opens the profile.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.