Reflected cross-site scripting (XSS) vulnerability in scores.ubnt.com allows attackers to inject arbitrary web script via p parameter.
The scores.ubnt.com page reflects the p parameter into a style attribute without adequate filtering, so an earlier fix did not cover style-based injection in some browsers. An attacker could run script in a victim's browser, alter the page, and steal credentials or cookies.
Originally disclosed on HackerOne
- Triaged in 11 days
- Fixed in 12 days
- Paid in 12 days
- Disclosed after 42 days
Dear Ubiquiti Networks bug bounty team,
Short Description
scores.ubnt.com is still vulnerable to reflected XSS, a form of client-side code injection wherein one can execute malicious scripts into a page. The fix to https://hackerone.com/reports/158484 does not suffice for some browsers (mainly older versions) since there are style attribute XSS vectors.
Why does this vulnerability exist?
Cross-site scripting exists whenever input can be interpreted as code. Scripts can be injected into the style attribute via the p parameter as follows:
Here are a list of payloads:
);xss:expression(alert(1));border-image:url(foobar
);border-image: url(javascript:alert(1));content:url(foobar
What are the exploits?
A cross-site scripting vulnerability allows an attacker to modify the page. This means he/she can inject forms to steal usernames, passwords, cookies (no HttpOnly flag present) and so forth. In short, XSS opens the doors to plenty of phishing techniques.
A very good list of malicious payloads can be found here: http://www.xss-payloads.com/payloads.html
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 p parameter is written into a style attribute without filtering that blocks style-based script execution in older browsers.
Impact
An attacker could modify the page, inject forms to steal usernames, passwords and cookies (no HttpOnly flag present), and run phishing attacks; the text notes the issue mainly affects older browsers.
What the attacker needed
Victim opens a crafted link; older browser versions
The fix
The p parameter should be filtered or encoded so it cannot break out of the style attribute or introduce script-capable style values.
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 puts text from the address bar straight into the page. Here the site placed that text inside a style rule, which controls how things look, and some browsers still treat certain style values as code. That let an attacker make the page run their own script when a victim opened a crafted link.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.