Skip to content
XSS Disclosed report Intermediate

XSS in https://promo.acronis.com/

A page on the promo subdomain writes a script tag using the value of document.referrer, so an attacker who hosts a page that frames it can make the victim's browser load a script from the attacker's own domain. That lets the attacker run JavaScript in the context of the promo site, for example to show an alert or redirect the victim to a phishing page.

yash_ Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 9 months
  • Paid in 21 days
  • Disclosed after 3.9 years

Hello,

I found DOM XSS in https://promo.acronis.com/
Open this URL https://promo.acronis.com/GL-Trial-MassTransit.html and view source. Search for document.write and there will be 4 statements inside try/catch block.

0.png
0.png From the original on HackerOne

The last statement loads script from using document.referrer. So we can host a page that loads https://promo.acronis.com/GL-Trial-MassTransit.html in iframe. So it will load the script /marketo/common.js from our domain.

Steps To Reproduce

  1. To create server I am using Node.js you can use static files also.. If you are using static files server make sure to create /marketo/common.js file.
  2. Create a director and copy this file F988371 in it.
  3. Run npm init -y
  4. and then npm i express to install exprss.
  5. Now run node index.js this will start server on 'localhost:5000'
  6. Open http://localhost:5000 and you will see alert.
1.png
1.png From the original on HackerOne

Impact

Anyone who opens this page, attacker can execute JavaScript code on their device or redirect victims to phishing websites.

The original report as published on HackerOne, by yash_. 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 page passes document.referrer into a document.write call that builds a script tag, without validating or escaping the value.

Impact

Anyone who opens the attacker's page could have JavaScript executed on their device in the promo site's context, or be redirected to a phishing site.

What the attacker needed

Victim opens attacker's page; attacker hosts a script at a fixed path

How it was found

  1. Set up a server that serves a page framing the promo trial page and also serves a script at the path the page expects.
  2. Start the server locally.
  3. Open the attacker page in a browser.
  4. Observe the script from the attacker's server running and an alert appearing.

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.

Some pages build parts of themselves on the fly using information the browser sends along, such as the address of the page that linked here (the referrer). If that value is trusted without checking, an attacker can arrange for their own address to be used, and the victim's browser then fetches and runs code the attacker controls. This is called cross-site scripting, or XSS: running someone else's JavaScript as if it belonged to the trusted 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 yash_

View all

1 more disclosed report, best first.

More from Acronis

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.