Skip to content
XSS Disclosed report Intermediate

Reflected XSS

The comment area on the New Discussion page lacked sanitisation, so a crafted message could execute script when rendered in the preview. An attacker could use GET variables for reflected XSS and save a payload as a draft to achieve stored XSS.

aidantwoods Follow

Originally disclosed on HackerOne

High 8.1 View original
  • Triaged in 4 days
  • Fixed in 8 months
  • Paid in 5 days
  • Disclosed after 8 months

Summary by the program

Due to the lack of sanitisation in the commend area, with a especially crafted message, is possible to execute a XSS with the "preview" function. If a draft is save, is possible to exploit this bug using as and stored-XSS.

Summary by the researcher

The "New Discussion" page on the Spanish and Portuguese forums have a feature in which a user may leave a HTML comment. The post itself will not yield XSS, but the comment prior to sanitisation would be rendered on the page before posting. An attacker may exploit this via GET variables to yield a reflected XSS. They may escalate this to a stored XSS with their scripting privileges by saving a payload as a draft. This attack may be initiated directly by linking a logged in user to one of these pages, or indirectly by abusing the domain trust from a validated redirect, e.g. a post-login redirect elsewhere on the *.ubnt.com origin.

The original report as published on HackerOne, by aidantwoods. 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 comment preview rendered user input without sanitisation, and the same unsanitised input could be saved as a draft.

Impact

An attacker could run script in a logged-in user's browser, either by linking them to a crafted page or by saving a draft that runs when viewed, and could use a trusted redirect on the same domain to make the link look legitimate.

What the attacker needed

Victim is logged in; victim clicks a crafted link; attacker can save a draft

How it was found

  1. Open the New Discussion page on the Spanish or Portuguese forum.
  2. Enter a crafted message in the comment area that includes script.
  3. Use the preview function to render the comment before posting.
  4. Use GET variables to deliver the payload to a logged-in user.
  5. Save the payload as a draft to turn it into stored XSS.

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.

If the bad comment was saved as a draft, it could run for a viewer, though the text ties this to scripting privileges.

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 aidantwoods

View all

1 more disclosed report, 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.