Skip to main content
Mallory
CriticalCISA KEVExploited in the wildPublic exploit

Microsoft SharePoint Server JWT Spoofing Privilege Escalation

IdentifiersCVE-2023-29357CWE-287

CVE-2023-29357 is a critical elevation-of-privilege vulnerability in Microsoft SharePoint Server, including SharePoint Server 2019, caused by improper handling and validation of authentication tokens. Available reporting indicates a remote, unauthenticated attacker can send a spoofed JSON Web Token (JWT) to a vulnerable SharePoint server and obtain the privileges of an authenticated user. The issue has also been described as improper handling of authentication tokens in the SharePoint API. Public research further shows this flaw can be chained with CVE-2023-24955 to achieve unauthenticated remote code execution, although CVE-2023-29357 by itself is the authentication bypass / privilege-escalation component of that chain.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows an unauthenticated remote attacker to bypass normal authentication controls and act with the privileges of an authenticated SharePoint user. This can enable unauthorized access to SharePoint content and API functionality, exposure or theft of sensitive data, and unauthorized changes within the SharePoint environment. In exploit chains, this vulnerability can serve as the initial access or privilege-escalation step leading to broader compromise, including unauthenticated remote code execution when paired with another flaw such as CVE-2023-24955. CISA has added this CVE to the Known Exploited Vulnerabilities catalog based on evidence of active exploitation.

Mitigation

If you can’t patch tonight, do this now.

Microsoft stated that SharePoint Server farms using Microsoft Defender with AMSI enabled are not affected by CVE-2023-29357. Where immediate patching is not possible, enable and verify AMSI integration with Microsoft Defender across the SharePoint farm if supported, reduce external exposure to SharePoint, restrict access to trusted networks or administrative paths where feasible, and increase monitoring for suspicious requests to SharePoint API endpoints and anomalous authentication-token usage. These measures are compensating controls and not substitutes for patching.

Remediation

Patch, then assume compromise.

Apply Microsoft's June 2023 security updates for SharePoint Server that address CVE-2023-29357. Organizations should prioritize patching internet-exposed and business-critical SharePoint deployments and verify that all SharePoint servers in the farm are updated consistently. Because public proof-of-concept material and exploit-chain research exist, remediation should be treated as urgent.
PUBLIC EXPLOITS

Exploits

3 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (3 hidden).

VALID 3 / 6 TOTALView more in app
CVE-2023-29357MaturityPoCVerified exploit

Single-file Python exploit targeting Microsoft SharePoint CVE-2023-29357. The repository contains one operational script, exploit.py, which supports both single-target exploitation and multi-target scanning. The script uses requests sessions, optional threading via ThreadPoolExecutor, progress display via alive_progress, rich console output, and optional LeakIX discovery through leakpy. Core logic is implemented in a SharePoint class: it normalizes the target URL, extracts the hostname, requests /_api/web/siteusers with an empty Bearer token to force a 401 response, parses the WWW-Authenticate header to recover the SharePoint realm, and constructs an audience value using the fixed SharePoint client ID 00000003-0000-0ff1-ce00-000000000000. It then forges unsigned JWT-like tokens using alg:none and claims consistent with the CVE-2023-29357 proof-token bypass technique. These tokens are sent in both Authorization and X-PROOF_TOKEN headers to /_api/web/currentuser to verify impersonation. The visible code shows explicit support for spoofing admin users by iterating over discovered user records and attempting authenticated requests as each one. The script is more than a detector because it actively crafts bypass tokens and attempts authenticated API access; however, it is not heavily weaponized beyond hardcoded token structure and basic scanning workflow. Notable observables include the local proxy http://127.0.0.1:8080, SharePoint REST paths /_api/web/siteusers and /_api/web/currentuser, and output file output.txt. Overall purpose: identify and exploit vulnerable SharePoint instances at scale for authentication bypass and user impersonation.

DonVorrinDisclosed Apr 13, 2026pythonwebnetwork
CVE-2023-29357MaturityPoCVerified exploit

This repository contains a Python proof-of-concept exploit for CVE-2023-29357, a privilege escalation vulnerability in Microsoft SharePoint Server. The main file, 'exploit.py', allows an attacker to impersonate admin users by exploiting an authentication bypass. The script works by first retrieving the SharePoint realm from the '/_api/web/siteusers' endpoint, then crafting a JWT token with 'alg':'none' to spoof admin users and access the '/_api/web/currentuser' endpoint as those users. The script outputs details of admin users with elevated privileges. It supports single-target and mass exploitation modes, including integration with LeakIX for bulk testing (requiring a Pro API key). The repository also includes a 'requirements.txt' for dependencies and a detailed 'README.md' with usage instructions. No RCE or post-exploitation payloads are included; the exploit is focused on privilege escalation and user impersonation. The attack vector is network-based, targeting accessible SharePoint web interfaces.

ChocapikkDisclosed Sep 26, 2023pythonnetwork
CVE-2023-29357MaturityPoCVerified exploit

This repository is a C# proof-of-concept exploit for CVE-2023-29357, a pre-authentication privilege escalation vulnerability in Microsoft SharePoint. The main exploit logic is implemented in 'CVE-2023-29357/Program.cs', which is a console application targeting .NET Framework 4.7.2. The exploit works by first making an unauthenticated request to the SharePoint REST API endpoint '/_api/web/siteusers' to extract the authentication 'realm' from the response headers. It then forges JWT tokens with 'alg':'none' and custom claims, allowing the attacker to impersonate any user, including site administrators. These tokens are used in subsequent requests to endpoints such as '/_api/web/currentuser' to verify successful impersonation. The repository includes project and configuration files for building the exploit, as well as a README with usage instructions and references. No hardcoded IPs or domains are present; the target SharePoint URL is provided as a command-line argument. The exploit is a functional PoC and does not include weaponized payloads beyond authentication bypass and user impersonation.

LuemmelSecDisclosed Sep 30, 2023csharpxmlnetwork
EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Microsoft CorporationSharepoint Serverapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware1

Malware families riding this exploit, with evidence and IOCs.

Detection signatures2

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity2

Community discussion across Reddit, Mastodon, and other social sources.