Skip to content
XSS Disclosed report Beginner

Reflected XSS due to vulnerable version of sockjs

A reflected cross-site scripting flaw exists on simperium.com because it uses an outdated version of the sockjs library. An attacker could craft a URL that executes JavaScript in a victim's browser, potentially stealing their session.

chip_sec Follow

Originally disclosed on HackerOne

Medium 5.4 View original
  • Triaged in 10 hours
  • Fixed in 21 days
  • Paid in 21 days
  • Disclosed after 15 months

Summary:

There is reflected XSS on *.simperium.com. The bug exists due to a vulnerable version of sockjs library.

Platform(s) Affected:

simperium.com js.simperium.com

Steps To Reproduce:

  1. Visit https://simperium.com/sock/1/0/0/0/htmlfile?c=alert('XSS')//
  2. You will see an alert message because of executed JS

Impact

XSS may be used by an attacker to perform a lot of things, for example, to steal user session

Attachments

XSS.PNG
XSS.PNG From the original on HackerOne

The original report as published on HackerOne, by chip_sec. 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 site uses an outdated version of the sockjs library that fails to properly sanitise user input in the URL, allowing script injection.

Impact

An attacker could use this XSS to perform various actions, such as stealing a user's session.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Visit the crafted URL on simperium.com that includes a script payload in the query string.
  2. Observe that the JavaScript executes and an alert box appears.

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.

Cross-site scripting (XSS) is when a website lets an attacker sneak their own JavaScript code into a page that other people view. Here, a specific web address causes the site to run code supplied in the address itself, so anyone who clicks a crafted link could have their browser run that code. This could let an attacker read or steal information from the victim's session on that site.

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 chip_sec

View all

3 more disclosed reports, best first.

More from Automattic

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.