Windows Layer 2 Tunneling Protocol (L2TP) Remote Code Execution Vulnerability (CVE-2023-21555)
A flaw in Windows' Layer 2 Tunneling Protocol handling on Routing and Remote Access Service servers allowed an unauthenticated attacker to send a crafted protocol message that could lead to remote code execution. Exploitation was difficult because the attacker had to win a race condition.
FAQ
How could an attacker exploit this vulnerability? An unauthenticated attacker could send a specially crafted protocol message to a Routing and Remote Access Service (RRAS) server, which could lead to remote code execution (RCE) on the RAS server machine.
FAQ
According to the CVSS metric, the attack complexity is high (AC:H). What does that mean for this vulnerability? Successful exploitation of this vulnerability requires an attacker to win a race condition.
Windows Layer 2 Tunneling Protocol
Windows Layer 2 Tunneling Protocol
Microsoft
Microsoft
Customer Action Required
Yes
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
Likely a memory-safety flaw in how the L2TP message handling code processes crafted input, with a timing-dependent window needed to exploit it.
Impact
An unauthenticated attacker could achieve remote code execution on the RRAS server, though only if they could win a race condition.
What the attacker needed
Target runs RRAS with L2TP; no authentication needed; attacker must win a race condition
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.
Layer 2 Tunneling Protocol is a way of carrying network traffic inside another connection, and Windows servers can accept these connections through a service called Routing and Remote Access Service. This bug meant a stranger who had not logged in could send a malformed message to such a server and potentially run their own code on it. The catch is that the attacker had to get the timing exactly right, which is called winning a race condition.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.