Skip to content
XSS Disclosed report Beginner

Stored XSS in dev-ucrm-billing-demo.ubnt.com In Client Custom Attribute

A client custom attribute field in a billing demo application stored user-supplied HTML without sanitisation, so a crafted value executed script when the client page was viewed. An attacker with an admin account could store a payload that runs in another admin's or user's browser when they expand the attribute, potentially taking over their account.

khizer47 Follow

Originally disclosed on HackerOne

  • Triaged in 5 days
  • Fixed in 8 days
  • Paid in 5 days
  • Disclosed after 3 months

Hey,

Was Testing the subdomins when I came Accross the subdomain https://dev-ucrm-billing-demo.ubnt.com/ I logged in as an Administrator and while testing i added a User and In Client Custom Attribute 1 i added the Payload: "><IMG src=x onerror=prompt(1);>"">><marquee><img src=x onerror=confirm(3)></marquee>"/ and Save the Client and Then on client page i.e: https://dev-ucrm-billing-demo.ubnt.com/client/24 When User click on Show more (under Custom Attribute 1) The XSS payload executes :)

0111.JPG
0111.JPG From the original on HackerOne
dev_ucrm-Billing-demo_XSS.JPG
dev_ucrm-Billing-demo_XSS.JPG

If another Admin or A user will perform the steps to see the custo atributes his/her account can be takenover By Such Pentest XSS By using tools like https://xsshunter.com/app etc :)

The original report as published on HackerOne, by khizer47. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 custom attribute value was rendered into the page as raw HTML without output encoding or sanitisation.

Impact

Another admin or user viewing the stored attribute could have their session or account taken over via the executed script.

What the attacker needed

An administrator account; victim views the client page and clicks Show more

How it was found

  1. Log in to the billing demo application as an administrator.
  2. Create a user and put an HTML/script payload into Client Custom Attribute 1.
  3. Save the client.
  4. Open the client page and click 'Show more' under Custom Attribute 1.
  5. The script runs in the browser.

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 web page sometimes shows text that a user typed in earlier. If the page treats that text as code instead of plain text, the browser will run it. Here, a value saved in a custom attribute field ran as script when someone clicked 'Show more', which lets an attacker act as the victim in their browser.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by khizer47

View all

13 more disclosed reports, best first.

More from Ubiquiti Inc.

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.