Skip to content
XSS Advisory Intermediate CVE-2023-24497CVE-2023-24496

Milesight MilesightVPN requestHandlers.js detail_device cross-site scripting (XSS) vulnerabilities

The MilesightVPN web interface stores device names and subnets from the /Device_Auth API without sanitisation, leading to stored cross-site scripting. An attacker who knows the server's authorisation code can inject JavaScript that executes when an admin views the device table.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

Medium 4.7 View original

Cross-site scripting (xss) vulnerabilities exist in the requestHandlers.js detaildevice functionality of Milesight VPN v2.0.2. A specially-crafted HTTP request can lead to arbitrary Javascript code injection.

Francesco Benvenuto, 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

Likely the application fails to sanitise or encode the device_name and subnet values before storing them and rendering them in the device table.

Impact

An attacker could execute arbitrary JavaScript in an administrator's browser, potentially leading to limited confidentiality and integrity impact, though the attack requires knowledge of the authorisation code and user interaction.

What the attacker needed

Knowledge of the server's authorisation code; admin views the device table

The fix

The application should sanitise or encode user-supplied data before storing and displaying it, but no patch was released within the 90-day window.

How it was found

  1. Obtain the server's authorisation code (possible via TALOS-2023-1702).
  2. Send a request to the /Device_Auth API with a malicious device_name or subnet value.
  3. The device is registered and its data stored in the device table.
  4. An administrator logs in and views the device table, executing the injected JavaScript.

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.

This report describes a stored cross-site scripting (XSS) flaw. XSS happens when a website saves user-supplied text and later displays it as code in a visitor's browser. Here, the device name and subnet fields are saved without cleaning, so malicious JavaScript runs when an administrator opens the device list.

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 Francesco Benvenuto

View all

152 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.