Exploit database

Vulnerability

CVE-2021-42237

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Description

Sitecore XP 7.5 Initial Release to Sitecore XP 8.2 Update-7 is vulnerable to an insecure deserialization attack where it is possible to achieve remote command execution on the machine. No authentication or special configuration is required to exploit this vulnerability.

CVE Program

Exploit source choices

4 sources
Sitecore Experience Platform (XP) PreAuth Deserialization RCE
MSF-windows--http--sitecore_xp_cve_2021_42237MetasploitWindows / remotePreferred

This module exploits a deserialization vulnerability in the Report.ashx page of Sitecore XP 7.5 to 7.5.2, 8.0 to 8.0.7, 8.1 to 8.1.3, and 8.2 to 8.2.7. Versions 7.2.6 and earlier and 9.0 and later are not affected. The vulnerability occurs due to Report.ashx's handler, located in Sitecore.Xdb.Client.dll under the Sitecore.sitecore.shell.ClientBin.Reporting.Report defintion, having a ProcessRequest() handler that calls ProcessReport() with the context of the attacker's request without properly checking if the attacker is authenticated or not. This request then causes ReportDataSerializer.DeserializeQuery() to be called, which will end up calling the DeserializeParameters() function of Sitecore.Analytics.Reporting.ReportDataSerializer, if a "parameters" XML tag is found in the attacker's request. Then for each subelement named "parameter", the code will check that it has a name and if it does, it will call NetDataContractSerializer().ReadObject on it. NetDataContractSerializer is vulnerable to deserialization attacks and can be trivially exploited by using the TypeConfuseDelegate gadget chain. By exploiting this vulnerability, an attacker can gain arbitrary code execution as the user that IIS is running as, aka NT AUTHORITY\NETWORK SERVICE. Users can then use technique 4 of the "getsystem" command to use RPCSS impersonation and get SYSTEM level code execution.

2021-11-02sitecore_xp_cve_2021_42237.rb
arpsyndicate/kenzer-templates
GH-e5a0867366963da7a3617cf6f32fda4bGitHubUnofficial GitHub source

essential templates for kenzer [DEPRECATED]

2020-09-185,308 files · 118 stars
vesperp/cve-2021-42237-sitecore-xp
GH-73eec0d7694b471d6838374eef1531e7GitHubUnofficial GitHub source

vesperp/cve-2021-42237-sitecore-xp source repository

2022-06-303 files · 1 stars
crankyyash/sitecore-rce-detection
GH-5571aac5725b2bc912299ea31a4f787bGitHubUnofficial GitHub source

For detection of sitecore RCE - CVE-2021-42237

2022-09-222 files · 0 stars