Milesight MilesightVPN requestHandlers.js verifyToken authentication bypass vulnerability
The MilesightVPN web interface uses static cryptographic keys for signing and verifying JSON Web Tokens (JWTs). An attacker can forge a valid JWT and bypass authentication to access the web interface.
Originally disclosed on Cisco Talos
An authentication bypass vulnerability exists in the requestHandlers.js verifyToken functionality of Milesight VPN v2.0.2. A specially-crafted network request can lead to authentication bypass.
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 JWT signing and verification keys are static and shipped with the software, rather than being randomly generated per installation.
Impact
An attacker could bypass authentication and gain access to the VPN management interface, potentially reading or modifying VPN configurations and connected device information.
What the attacker needed
Network access to the VPN web interface
The fix
The software should generate unique cryptographic keys during installation instead of using static ones.
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.
The VPN's web login uses a token (like a digital pass) to check if you are logged in. The secret key used to create these passes is the same for every installation and is stored in the software. Anyone who knows this key can make their own valid pass and get in without a password.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.