Exploiting Ike Hosts With Weak Pre Shared Keys
An IKE endpoint with a weak pre-shared key could be fingerprinted and its authentication parameters harvested, allowing an attacker to crack the key offline with a dictionary attack. A successful crack would let the attacker authenticate to the IPsec VPN.
Published on systemweakness.com
IKE (Internet Key Exchange) is a protocol used to establish and manage IPsec VPN connections, handling key exchange and peer authentication.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the IKE endpoint was configured with a weak pre-shared key and legacy algorithms, so the captured handshake could be cracked offline.
Impact
If the pre-shared key is cracked, an attacker could authenticate to the IPsec VPN; the text does not show a successful crack or any further access.
What the attacker needed
Network access to UDP port 500; target uses a weak pre-shared key; a wordlist for cracking
The fix
The endpoint should be configured with modern AEAD ciphers and strong hashes, sufficiently strong Diffie-Hellman groups, and preferably IKEv2 with certificate-based authentication instead of pre-shared keys.
How it was found
- Scan UDP port 500 to confirm the host offers IKE.
- Run ike-scan to fingerprint the endpoint.
- Run an aggressive ike-scan that saves the parameters to a file.
- Crack the saved parameters with psk-crack and a wordlist.
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 write-up has not been written yet. The Original tab links to the source.
IKE is the handshake protocol that sets up an IPsec VPN, and peers prove who they are either with certificates or with a shared password called a pre-shared key. If that password is short or guessable, someone who can reach the VPN port can capture the handshake data and try passwords on their own computer until one matches. This article walks through that process.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.