Milesight MilesightVPN server.js start directory traversal vulnerability
The MilesightVPN server.js start function fails to validate the requested path, allowing an unauthenticated attacker to read arbitrary files via directory traversal. An attacker can send a crafted request to retrieve sensitive files such as /etc/passwd.
Originally disclosed on Cisco Talos
A directory traversal vulnerability exists in the server.js start functionality of Milesight VPN v2.0.2. A specially-crafted network request can lead to arbitrary file read.
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 server constructs a file path by joining a base directory with user-supplied input without validating or sanitising the path, allowing traversal sequences to escape the intended directory.
Impact
An unauthenticated attacker could read arbitrary files on the server, potentially exposing sensitive information such as system credentials.
What the attacker needed
Network access to the VPN server
The fix
The software should be fixed by validating and sanitising the requested path to prevent directory traversal, but no patch was released by the vendor.
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.
Directory traversal is a flaw where an attacker can use special sequences like '../' in a web request to escape the intended folder and access other files on the server. Here, the VPN software did not check the requested file path, so anyone could ask for files outside the web directory, like the system's password file, without logging in.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.