Skip to content
Crypto Advisory Intermediate CVE-2023-22844

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.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

High 7.3 View original

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.

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

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.

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.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.