Test IKEv1 auth bypass with Vendor ID payload
To test for an IKEv1 authentication bypass, send a Vendor ID payload with a specific magic value and trailing bytes that set the authentication flags. The magic value is 3c f1 87 b2 47 40 29 ea 46 ac 7f d0 ea f2 89 f5. Set the four bytes after the magic to 0x00000004 to disable signature verification. If the server accepts the payload and logs a vendorid = 0 message, but still establishes a connection, it may be vulnerable to authentication bypass. Look for a successful connection establishment despite sending a random HASH_I value in the encrypted message 5.
IKEv1 Main Mode packet with Vendor ID payload:
Magic: `3c f1 87 b2 47 40 29 ea 46 ac 7f d0 ea f2 89 f5`
Trailing bytes: `0x00000004`
Encrypted message 5 with random HASH_I:
`HASH_I: <random_value>`Follow #authentication-bypass, #ikev1 or #vpn for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.
Comments
No comments yet.