Advantech R-SeeNet telnet_form.php Reflected XSS vulnerability
The telnet_form.php script in Advantech R-SeeNet takes a hostname parameter from the URL and writes it into the page title without sanitising it. An attacker who gets a victim to open a crafted link can run arbitrary JavaScript in that victim's browser.
Cross-site scripting vulnerabilities exist in the telnetform.php script functionality of Advantech R-SeeNet v 2.4.12 (20.10.2020). If a user visits a specially crafted URL, it can lead to arbitrary JavaScript code execution in the context of the targeted user’s browser.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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
Impact
An attacker could run arbitrary JavaScript in a victim's browser session on the R-SeeNet application, and the victim does not need to be logged in.
What the attacker needed
Victim clicks a crafted link; no login needed
How it was found
- Send a request to the telnet_form.php script with a hostname parameter containing markup that closes the title element and adds a script.
- The script places the unsanitised value inside the page title.
- The browser renders the response and executes the injected script.
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 web page can build its HTML from values in the URL. If it drops those values in without cleaning them, an attacker can put code (JavaScript, the language browsers run) into the link. When someone opens the link, their browser runs the attacker's code as if the site had written it.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.