Skip to content
XSS Advisory Beginner CVE-2021-21800

Advantech R-SeeNet ssh_form.php Reflected XSS vulnerability

The ssh_form.php script in Advantech R-SeeNet reflects the unsanitised 'hostname' parameter into the HTML page, allowing an attacker to inject JavaScript. An attacker can craft a URL that, when visited by a victim, executes arbitrary JavaScript in the victim's browser.

Member Follow

Originally disclosed on Cisco Talos

Critical 9.6 View original

Cross-site scripting vulnerabilities exist in the sshform.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.

Member, on Cisco Talos

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

Root cause

The 'hostname' parameter is not sanitised before being embedded into HTML, allowing script injection.

Impact

An attacker could execute arbitrary JavaScript in the victim's browser, potentially leading to data theft or other actions, though the victim must visit the crafted URL.

What the attacker needed

Victim clicks a link; no login required

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 directly into a page without cleaning it. Here, the 'hostname' value from the URL is placed into the page's title and a parameter, so an attacker can include a script that runs when someone opens the link. The victim does not need to be logged in.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by Member

View all

4 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.