BlueKeep (CVE-2019–0708) Exploit With MSF
Several user machines exposed Remote Desktop on port 3389 and were vulnerable to BlueKeep, a pre-authentication flaw in Windows RDP. The team used Metasploit to confirm the vulnerability and then ran the RCE module, which could give remote code execution on unpatched hosts.
medium.com
Published on medium.com
During the year when the COVID-19 pandemic broke out, our organization adopted a work-from-home (WFH) policy for most employees. This led to the widespread use of Remote Desktop to conveniently access their office computers from home.
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 a memory handling flaw in the Windows Remote Desktop service that can be triggered before authentication, as implied by the pre-auth RCE module used.
Impact
An unpatched, internet-reachable RDP host could be taken over remotely without credentials, though the text only claims a connection was established in the test.
What the attacker needed
Target exposes RDP on port 3389; target is unpatched; attacker can reach the host over the network
The fix
The text recommends patching Windows, disabling RDP where unused, restricting access with firewalls or a VPN, and enabling Network Level Authentication.
How it was found
- Scan for hosts with port 3389 open using nmap.
- Start Metasploit and search for the BlueKeep module.
- Load the BlueKeep scanner module and set the target address.
- Run the scan to check whether the host is vulnerable.
- Switch to the RCE exploit module, set the target, payload and listener details, then launch it.
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.
Remote Desktop lets someone control a Windows computer over the network. BlueKeep is a bug in that service that lets an attacker run their own code on the machine without logging in first. The team scanned for machines with the service exposed and used a ready-made tool to check and then try the attack.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.