In June 2023, Microsoft released a critical security patch addressing an elevation of privilege vulnerability in SharePoint, identified as CVE-2023-29357. This advisory provides crucial information regarding the vulnerability (which becomes relevant due to its recently uploaded publicly available Proof of Concept), its exploitation, and recommended defensive measures to protect your SharePoint Server environment.
CVE-2023-29357 is a critical elevation of privilege vulnerability in Microsoft SharePoint Server. If exploited, an attacker can gain administrator-level privileges without requiring any prior authentication. The vulnerability allows attackers to spoof JWT authentication tokens, enabling them to execute network attacks, bypass authentication processes, and access privileges of authenticated users without user interaction.
Exploitation Details: A researcher, Nguyễn Tiến Giang, presented an in-depth analysis of a compound exploit chain targeting SharePoint during the Pwn2Own Vancouver 2023 event. The exploit chain consists of two key vulnerabilities:
The primary challenge in this exploit chain is leveraging the Authentication Bypass flaw to access the SharePoint API and identifying a post-auth RCE chain.
A public exploit script for CVE-2023-29357 has been released on GitHub, allowing attackers to elevate privileges on affected SharePoint Server installations. This script could potentially be chained with other RCE vulnerabilities to compromise system confidentiality, integrity, and availability. Features of the script include user impersonation and detailed output, but it is intended for educational and ethical use only.
This vulnerability directly affects SharePoint Server 2019. Successful exploitation was confirmed on SharePoint 2019 (version 16.0.10396.20000) with the March 2023 patches (KB5002358 and KB5002357) applied.
Organizations running SharePoint Server, especially version 2019, are urged to take immediate action to protect their systems:
With the public availability of the exploit script, the risk of malicious exploitation has significantly increased. Immediate patching and implementation of recommended mitigations are essential to mitigate potential security breaches and data compromises.
The SOC teams of OBRELA remain vigilant and are closely monitoring clients’ infrastructure regarding potential exploitation attempts.