Vulnerabilities > CVE-2020-0796 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in Microsoft Windows 10 and Windows Server 2016
Attack vector
NETWORK Attack complexity
LOW Privileges required
NONE Confidentiality impact
HIGH Integrity impact
HIGH Availability impact
HIGH Summary
A remote code execution vulnerability exists in the way that the Microsoft Server Message Block 3.1.1 (SMBv3) protocol handles certain requests, aka 'Windows SMBv3 Client/Server Remote Code Execution Vulnerability'.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
OS | 4 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Buffer Overflow via Environment Variables This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
- Overflow Buffers Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
- Client-side Injection-induced Buffer Overflow This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
- Filter Failure through Buffer Overflow In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
- MIME Conversion An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
Exploit-Db
id EDB-ID:48267 last seen 2020-03-30 modified 2020-03-30 published 2020-03-30 reporter Exploit-DB source https://www.exploit-db.com/download/48267 title Microsoft Windows 10 (1903/1909) - 'SMBGhost' SMB3.1.1 'SMB2_COMPRESSION_CAPABILITIES' Local Privilege Escalation id EDB-ID:48537 last seen 2020-06-02 modified 2020-06-02 published 2020-06-02 reporter Exploit-DB source https://www.exploit-db.com/download/48537 title Microsoft Windows - 'SMBGhost' Remote Code Execution id EDB-ID:48216 last seen 2020-03-14 modified 2020-03-14 published 2020-03-14 reporter Exploit-DB source https://www.exploit-db.com/download/48216 title Microsoft Windows 10 (1903/1909) - 'SMBGhost' SMB3.1.1 'SMB2_COMPRESSION_CAPABILITIES' Buffer Overflow (PoC)
Metasploit
description | A vulnerability exists within the Microsoft Server Message Block 3.1.1 (SMBv3) protocol that can be leveraged to execute code on a vulnerable server. This local exploit implementation leverages this flaw to elevate itself before injecting a payload into winlogon.exe. |
id | MSF:EXPLOIT/WINDOWS/LOCAL/CVE_2020_0796_SMBGHOST |
last seen | 2020-06-12 |
modified | 2020-04-16 |
published | 2020-04-02 |
references | |
reporter | Rapid7 |
source | https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/local/cve_2020_0796_smbghost.rb |
title | SMBv3 Compression Buffer Overflow |
Nessus
NASL family Windows : Microsoft Bulletins NASL id SMB_NT_MS20_MAR_4551762.NASL description The remote Windows host is missing security update 4551762. It is, therefore, affected by a remote code execution vulnerability. The vulnerability exists in the way that the Microsoft Server Message Block 3.1.1 (SMBv3) protocol handles certain requests. An attacker who successfully exploited the vulnerability could gain the ability to execute code on the target server or client. last seen 2020-04-18 modified 2020-03-12 plugin id 134428 published 2020-03-12 reporter This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/134428 title KB4551762: Windows 10 Version 1903 and Windows 10 Version 1909 OOB Security Update (ADV200005)(CVE-2020-0796) code # # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from the Microsoft Security Updates API. The text # itself is copyright (C) Microsoft Corporation. # include('compat.inc'); if (description) { script_id(134428); script_version("1.7"); script_set_attribute(attribute:"plugin_modification_date", value:"2020/04/17"); script_cve_id("CVE-2020-0796"); script_xref(name:"MSKB", value:"4551762"); script_xref(name:"MSFT", value:"MS20-4551762"); script_name(english:"KB4551762: Windows 10 Version 1903 and Windows 10 Version 1909 OOB Security Update (ADV200005)(CVE-2020-0796)"); script_set_attribute(attribute:"synopsis", value: "The remote Windows host is affected by a remote code execution vulnerability."); script_set_attribute(attribute:"description", value: "The remote Windows host is missing security update 4551762. It is, therefore, affected by a remote code execution vulnerability. The vulnerability exists in the way that the Microsoft Server Message Block 3.1.1 (SMBv3) protocol handles certain requests. An attacker who successfully exploited the vulnerability could gain the ability to execute code on the target server or client."); # https://support.microsoft.com/en-us/help/4551762/windows-10-update-kb4551762 script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?ab6efe1b"); script_set_attribute(attribute:"solution", value: "Apply Cumulative Update KB4551762."); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P"); script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C"); script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"); script_set_cvss3_temporal_vector("CVSS:3.0/E:H/RL:O/RC:C"); script_set_attribute(attribute:"cvss_score_source", value:"CVE-2020-0796"); script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available"); script_set_attribute(attribute:"exploit_available", value:"true"); script_set_attribute(attribute:"exploited_by_malware", value:"true"); script_set_attribute(attribute:"metasploit_name", value:'SMBv3 Compression Buffer Overflow'); script_set_attribute(attribute:"exploit_framework_metasploit", value:"true"); script_set_attribute(attribute:"vuln_publication_date", value:"2020/03/12"); script_set_attribute(attribute:"patch_publication_date", value:"2020/03/12"); script_set_attribute(attribute:"plugin_publication_date", value:"2020/03/12"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"cpe:/o:microsoft:windows"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_family(english:"Windows : Microsoft Bulletins"); script_copyright(english:"This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof."); script_dependencies("smb_check_rollup.nasl", "smb_hotfixes.nasl", "ms_bulletin_checks_possible.nasl"); script_require_keys("SMB/MS_Bulletin_Checks/Possible"); script_require_ports(139, 445, "Host/patch_management_checks"); exit(0); } include("audit.inc"); include("smb_hotfixes_fcheck.inc"); include("smb_hotfixes.inc"); include("smb_func.inc"); include("misc_func.inc"); get_kb_item_or_exit("SMB/MS_Bulletin_Checks/Possible"); bulletin = "MS20-03"; kbs = make_list('4551762'); if (get_kb_item("Host/patch_management_checks")) hotfix_check_3rd_party(bulletin:bulletin, kbs:kbs, severity:SECURITY_HOLE); get_kb_item_or_exit("SMB/Registry/Enumerated"); get_kb_item_or_exit("SMB/WindowsVersion", exit_code:1); if (hotfix_check_sp_range(win10:'0') <= 0) audit(AUDIT_OS_SP_NOT_VULN); share = hotfix_get_systemdrive(as_share:TRUE, exit_on_fail:TRUE); if (!is_accessible_share(share:share)) audit(AUDIT_SHARE_FAIL, share); if ( smb_check_rollup(os:"10", sp:0, os_build:"18362", rollup_date:"04_2020_oob", bulletin:bulletin, rollup_kb_list:[4551762]) || smb_check_rollup(os:"10", sp:0, os_build:"18363", rollup_date:"04_2020_oob", bulletin:bulletin, rollup_kb_list:[4551762]) ) { replace_kb_item(name:'SMB/Missing/'+bulletin, value:TRUE); hotfix_security_hole(); hotfix_check_fversion_end(); exit(0); } else { hotfix_check_fversion_end(); audit(AUDIT_HOST_NOT, hotfix_get_audit_report()); }
NASL family Windows NASL id SMB_MICROSOFT_WINDOWS_ADV200005_REMOTE.NASL description A remote code execution vulnerability exists in Microsoft Server Message Block 3.1.1 (SMBv3) protocol due to how it handles a maliciously crafted compressed data packet. An unauthenticated, remote attacker can exploit this to bypass authentication and execute arbitrary commands. Note, the plugin checks if SMB 3.1.1 with compression is enabled. It does not currently verify the vulnerability itself. last seen 2020-04-07 modified 2020-03-11 plugin id 134421 published 2020-03-11 reporter This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/134421 title Microsoft Windows SMBv3 Compression RCE (ADV200005)(CVE-2020-0796)(Remote) code # # (C) Tenable Network Security, Inc. # include('compat.inc'); if (description) { script_id(134421); script_version("1.6"); script_set_attribute(attribute:"plugin_modification_date", value:"2020/04/06"); script_cve_id("CVE-2020-0796"); script_name(english:"Microsoft Windows SMBv3 Compression RCE (ADV200005)(CVE-2020-0796)(Remote)"); script_summary(english:"Checks the Windows version and mitigative measures."); script_set_attribute(attribute:"synopsis", value: "The remote Windows host is using a vulnerable version of SMB."); script_set_attribute(attribute:"description", value: "A remote code execution vulnerability exists in Microsoft Server Message Block 3.1.1 (SMBv3) protocol due to how it handles a maliciously crafted compressed data packet. An unauthenticated, remote attacker can exploit this to bypass authentication and execute arbitrary commands. Note, the plugin checks if SMB 3.1.1 with compression is enabled. It does not currently verify the vulnerability itself."); # https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/ADV200005 script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?736703d3"); script_set_attribute(attribute:"solution", value: "Microsoft has provided additional details and guidance in the ADV200005 advisory."); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P"); script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C"); script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"); script_set_cvss3_temporal_vector("CVSS:3.0/E:H/RL:O/RC:C"); script_set_attribute(attribute:"cvss_score_source", value:"CVE-2020-0796"); script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available"); script_set_attribute(attribute:"exploit_available", value:"true"); script_set_attribute(attribute:"exploited_by_malware", value:"true"); script_set_attribute(attribute:"metasploit_name", value:'SMBv3 Compression Buffer Overflow'); script_set_attribute(attribute:"exploit_framework_metasploit", value:"true"); script_set_attribute(attribute:"vuln_publication_date", value:"2020/03/12"); script_set_attribute(attribute:"patch_publication_date", value:"2020/03/12"); script_set_attribute(attribute:"plugin_publication_date", value:"2020/03/11"); script_set_attribute(attribute:"potential_vulnerability", value:"true"); script_set_attribute(attribute:"plugin_type", value:"remote"); script_set_attribute(attribute:"cpe", value:"cpe:/o:microsoft:windows"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_family(english:"Windows"); script_copyright(english:"This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof."); script_dependencies("smb_dialects_enabled.nasl"); script_require_keys("SMB/smb_dialect/3.1.1", "Settings/ParanoidReport"); script_require_ports(139, 445); exit(0); } include('audit.inc'); include('global_settings.inc'); include('smb_func.inc'); include('misc_func.inc'); if (report_paranoia < 2) audit(AUDIT_PARANOID); port = kb_smb_transport(); if (get_kb_item('SMB/smb_dialect/3.1.1/compression')) { report = 'Nessus was able to detect SMB 3.1.1 with compression enabled using a specially crafted packet.\n'; security_report_v4(port:port, extra:report, severity:SECURITY_HOLE); } else { audit(AUDIT_HOST_NOT, 'affected'); }
NASL family Windows NASL id MICROSOFT_SMB_CVE-2020-0796.NASL description A remote code execution vulnerability exists in Microsoft Server Message Block 3.1.1 (SMBv3) protocol due to how it handles a maliciously crafted compressed data packet. An unauthenticated, remote attacker can exploit this to bypass authentication and execute arbitrary commands. Note that this plugin works only if it can to connect to the IPC$ share anonymously using SMB dialect 3.1.1. last seen 2020-04-18 modified 2020-04-02 plugin id 135177 published 2020-04-02 reporter This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/135177 title Microsoft Windows SMBv3 Compression RCE (ADV200005)(CVE-2020-0796)(Remote)
Packetstorm
data source https://packetstormsecurity.com/files/download/156732/mswinsmb3-exec.txt id PACKETSTORM:156732 last seen 2020-03-19 published 2020-03-15 reporter nu11secur1ty source https://packetstormsecurity.com/files/156732/Microsoft-Windows-SMB-3.1.1-Remote-Code-Execution.html title Microsoft Windows SMB 3.1.1 Remote Code Execution data source https://packetstormsecurity.com/files/download/157110/cve_2020_0796_smbghost.rb.txt id PACKETSTORM:157110 last seen 2020-04-08 published 2020-04-06 reporter Spencer McIntyre source https://packetstormsecurity.com/files/157110/SMBv3-Compression-Buffer-Overflow.html title SMBv3 Compression Buffer Overflow
The Hacker News
id THN:90048C5D2E69F2E769EE053B3E1555AA last seen 2020-03-12 modified 2020-03-12 published 2020-03-12 reporter The Hacker News source https://thehackernews.com/2020/03/patch-wormable-smb-vulnerability.html title Critical Patch Released for 'Wormable' SMBv3 Vulnerability — Install It ASAP! id THN:17F11846886656062FA1EA84D1C74534 last seen 2020-06-10 modified 2020-06-10 published 2020-06-09 reporter The Hacker News source https://thehackernews.com/2020/06/SMBleed-smb-vulnerability.html title SMBleed: A New Critical Vulnerability Affects Windows SMB Protocol id THN:F1DFBF3E8E6E5F3CD1282E08B3C3E35D last seen 2020-03-11 modified 2020-03-11 published 2020-03-11 reporter The Hacker News source https://thehackernews.com/2020/03/smbv3-wormable-vulnerability.html title Warning — Unpatched Critical 'Wormable' Windows SMBv3 Flaw Disclosed id THN:882595A940E5AB15E8B9C472154ACA45 last seen 2020-06-10 modified 2020-06-10 published 2020-06-09 reporter The Hacker News source https://thehackernews.com/2020/06/windows-update-june.html title Microsoft Releases June 2020 Security Patches For 129 Vulnerabilities
Related news
- PoC RCE exploit for SMBGhost Windows flaw released (source)
- SMBGhost Vulnerability Allows Privilege Escalation on Windows Systems (source)
- Microsoft releases patch for leaked SMBv3 RCE flaw (source)
- Critical Patch Released for 'Wormable' SMBv3 Vulnerability — Install It ASAP! (source)
- Microsoft Releases Patch for Wormable Bug That Threatens Corporate LANs (source)
- Wormable Windows SMBv3 RCE flaw leaked, but not patched (source)
- Microsoft’s SMBGhost Flaw Still Haunts 108K Windows Systems (source)
References
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-0796
- http://packetstormsecurity.com/files/156731/CoronaBlue-SMBGhost-Microsoft-Windows-10-SMB-3.1.1-Proof-Of-Concept.html
- http://packetstormsecurity.com/files/156732/Microsoft-Windows-SMB-3.1.1-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/156980/Microsoft-Windows-10-SMB-3.1.1-Local-Privilege-Escalation.html
- http://packetstormsecurity.com/files/157110/SMBv3-Compression-Buffer-Overflow.html
- http://packetstormsecurity.com/files/157901/Microsoft-Windows-SMBGhost-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/158054/SMBleed-SMBGhost-Pre-Authentication-Remote-Code-Execution-Proof-Of-Concept.html