Reflected cross site scripting (XSS) attacks Reflected XSS attacks,
A reflected cross-site scripting flaw exists in the error message parameter of a web application, allowing an attacker to inject and execute arbitrary script in a victim's browser. An attacker could perform actions, view or modify data, and interact with other users as the victim.
Originally disclosed on HackerOne
- Triaged in 47 days
- Fixed in 3 months
- Disclosed after 21 months
Summary:
[Reflected XSS attacks, also known as non-persistent attacks, occur when a malicious script is reflected off of a web application to the victim’s browser.
The script is activated through a link, which sends a request to a website with a vulnerability that enables execution of malicious scripts. The vulnerability is typically a result of incoming requests not being sufficiently sanitized, which allows for the manipulation of a web application’s functions and the activation of malicious scripts.
To distribute the malicious link, a perpetrator typically embeds it into an email or third-party website (e.g., in a comment section or in social media). The link is embedded inside an anchor text that provokes the user to click on it, which initiates the XSS request to an exploited website, reflecting the attack back to the user.]
Steps To Reproduce:
[add details for how we can reproduce the issue]
- open the url [https://102.176.160.119:10443/remote/error?errmsg=]
- in this pramiter inject the xss pyload in ?errmsg = [https://102.176.160.119:10443/remote/error?errmsg=ABABAB--%3E%3Cscript%3Ealert(1337)%3C/script%3E]
- final url === https://102.176.160.119:10443/remote/error?errmsg=--%3E%3Cscript%3Ealert(document.domain)%3C/script%3E
Supporting Material/References:
https://medium.com/@Steiner254/reflected-cross-site-scripting-xss-7aae0f4343c3 https://portswigger.net/web-security/cross-site-scripting https://www.imperva.com/learn/application-security/reflected-xss-attacks/
Impact
~ When attackers can control scripts that are executed in the victims’ browsers, then they stand at chances of typically compromising those users. These attackers can do the following: a. Perform any kinds of actions within the applications that the users can perform.
b. View all kinds of data that the users have abilities to view.
c. Modify data that the users have abilities to modify.
d. Initiation of interactions with other application’ users.
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 application reflects the errmsg parameter into the error page without sanitising or encoding it, so injected script tags are executed.
Impact
An attacker could potentially execute scripts in a victim's browser and perform actions, view or modify data, and interact with other users as the victim.
What the attacker needed
Victim clicks a crafted link
How it was found
- Open the error page URL with an empty errmsg parameter.
- Inject a script payload into the errmsg parameter.
- Load the final crafted URL to trigger script execution.
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.
Reflected cross-site scripting (XSS) happens when a website takes something a user typed or clicked and sends it back to the page without cleaning it first. If that something contains code, the browser runs it as if the website itself had written it. An attacker can trick someone into clicking a prepared link so that the code runs in that person's browser.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.