Microsoft PowerShell Remote Code Execution Vulnerability (CVE-2018-8256)
PowerShell did not properly handle specially crafted files, allowing an attacker to execute malicious code on a vulnerable system. An attacker could exploit this by sending a crafted file to the target.
Snyk Security Research Team Follow
Originally disclosed on Microsoft
Description
A remote code execution vulnerability exists when PowerShell improperly handles specially crafted files. An attacker who successfully exploited this vulnerability could execute malicious code on a vulnerable system. To exploit the vulnerability, an attacker must send a specially crafted file to a vulnerable system. The security update fixes the vulnerability by ensuring PowerShell properly handles files.
Microsoft PowerShell
Microsoft PowerShell
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, PowerShell failed to properly validate or handle specially crafted files, leading to code execution.
Impact
An attacker could execute malicious code on a vulnerable system, but the exploit requires sending a specially crafted file to the target.
What the attacker needed
Send a specially crafted file; victim opens the file
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.
PowerShell is a tool for running commands and scripts on Windows. This bug meant that if someone sent you a specially made file and it was opened, harmful code could run on your computer. The fix makes PowerShell check files properly.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.