Cross-Site Scripting via 'autoPlay' parameter
A reflected cross-site scripting vulnerability exists in the 'autoPlay' GET parameter, allowing an attacker to inject and execute malicious scripts. An attacker could steal cookies and hijack user sessions.
Originally disclosed on HackerOne
- Triaged in 6 hours
- Fixed in 28 days
- Disclosed after 8 months
Description: Hi, team! I discovered a Cross-Site Scripting (XSS) vulnerability on █████████ , specifically through the GET method, via 'autoPlay' parameter. This vulnerability allows an attacker to inject malicious scripts that could be executed, potentially leading to cookie theft, session hijacking, and other malicious actions.
PoC: ████
When you open the link, will apear one alert(1) pop-up to you. It's a official website from U.S. Navy:
██████████
References
███████
Impact
Exploitation of this vulnerability can lead to severe consequences, including but not limited: Session Hijacking: Attackers can steal cookies and impersonate legitimate users.
System Host(s)
█████
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
Open the link.
Suggested Mitigation/Remediation Actions
Apply context-dependent encoding and/or validation to user input rendered on a page.
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 'autoPlay' parameter is reflected into the page without context-dependent encoding or validation.
Impact
Exploitation could lead to session hijacking by stealing cookies and impersonating legitimate users.
What the attacker needed
Victim clicks a crafted link
How it was found
- Open the crafted link containing the malicious 'autoPlay' parameter.
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 takes input from a user and puts it into a page without making it safe, so an attacker can make the site run their own JavaScript. Here, the 'autoPlay' value in the web address is reflected back into the page, so a crafted link shows an alert box. This could let an attacker steal login cookies and act as the victim.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.