Skip to content
RCE Write-up Intermediate

EternalBlue (MS17–010/CVE-2017–0144) is a critical vulnerability in the Windows SMBv1 protocol that allows attackers to remotely execute arbitrary code and gain unauthorized access to Windows systems. The exploit was originally developed by the NSA (National Security Agency) and later leaked by a hacker group called “Shadow Brokers” in 2017.

A flaw in the Windows SMBv1 protocol lets an unauthenticated attacker send crafted packets to execute arbitrary code on a vulnerable system. This allows full control of the machine and lateral movement across the network.

Yash Pawar Follow

Published on yashpawar1199.medium.com

EternalBlue (MS17–010/CVE-2017–0144) is a critical vulnerability in the Windows SMBv1 protocol that allows attackers to remotely execute arbitrary code and gain unauthorized access to Windows systems. The exploit was originally developed by the NSA (National Security Agency) and later leaked by a hacker group called…

Yash Pawar @HackersParadise, on yashpawar1199.medium.com

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 corruption bug in how Windows SMBv1 handles specially crafted packets, allowing remote code execution without authentication.

What the attacker needed

Target runs vulnerable SMBv1; network access to port 445; no authentication needed

The fix

Microsoft released a patch in March 2017; systems should be updated and SMBv1 disabled where possible.

How it was found

  1. Scan the target to see if SMB is running on port 445.
  2. Check whether the system is vulnerable to MS17-010 using an Nmap script.
  3. Start Metasploit and search for the EternalBlue module.
  4. Select the exploit module, set the target address, and run 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.

SMB is a Windows file-sharing protocol. A bug in its first version lets someone send malformed network messages that the system mishandles, so they can run their own code without logging in. This is like a stranger slipping instructions into a conversation and the system following them.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Yash Pawar

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.