Shop - Reflected XSS With Clickjacking Leads to Steal User's Cookie In Two Domain
The search parameter on two shop pages is vulnerable to reflected cross-site scripting, and the pages lack clickjacking protection. An attacker could combine these to force a victim to execute the script and steal their cookies.
- Fixed in 5 days
- Disclosed after 15 months
Hii Security Team ,
I am S Rahul MCEH(Metaxone Certified Ethical Hacker) and a Security Researcher I just checked your website and found Reflected XSS to Good XSS Clickjacking In Two Domain
Description:- As the search parameter is vulnerable to XSS and but the plus point is there is no X-Frame-Header or Click-jacking Protection.So by combing this two methods the Attack Easier And Converted it to Well Working XSS on Other User’s .
Vulnerable Urls:- https://marthastewart.com/shop/all.html?s= https://bhg.com/shop/all.html?s=
Steps to reproduce :-
- Navigate to Vulnerable URLS and As we know that ?s= parameter is vulnerable to XSS
2.As Reflected XSS Occurs on :- Example1 :- https://bhg.com/shop/all.html?s=%E2%80%98);%3C/script%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E Example2 :- https://marthastewart.com/shop/all.html?s=%E2%80%98);%3C/script%3E%3Cscript%3Ealert(document.cookie)%3C/script%3E
3.The attacker can use different Payloads like document.domain etc
4.Now as we know there is no X-Frame-Header or Click-jacking Protection that can leads to successful attack
5.Now we will create POC.html to send the victim and steal the cookies of the other users { POC.html is attached below }
6.Now as the victim opens the POC.html the attacker will get the cookies of the users or victim
Refernces:- https://arbazhussain.medium.com/self-xss-to-good-xss-clickjacking-6db43b44777e https://hackerone.com/reports/470206 https://hackerone.com/reports/892289
Impact
Impact By exploiting this Vulnerability 1.An attacker can force the customer to execute XSS and Steal user's cookie. 2.Launch advanced phishing attacks by rendering arbitrary HTML forms. 3.Force users to download malware/viruses. 4.Execute browser-based attacks etc.
Attachments
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 search parameter is not properly sanitised before being reflected into the page, and the sites lack an X-Frame-Options header or frame-busting script.
Impact
An attacker could force a customer to execute XSS and steal their cookie, and could also launch phishing attacks, force malware downloads, or run other browser-based attacks.
How it was found
- Navigate to the vulnerable URL with the search parameter.
- The search parameter reflects a script that executes in the browser.
- The attacker can use different payloads such as document.domain.
- Because there is no X-Frame-Header or clickjacking protection, the attack can be combined with clickjacking.
- Create a POC.html page to send to the victim.
- When the victim opens POC.html, the attacker receives the victim's cookies.
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 reflected XSS flaw lets an attacker inject a script into a page that runs in the victim's browser. The search parameter on two shop pages is vulnerable, so a crafted link can run code. The sites also lack clickjacking protection, so the attacker can trick the victim into running the script, which steals their cookies.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.