Skip to content
Access control Write-up Intermediate

Understanding CVE-2023–29357: A Deep Dive into SharePoint Server Vulnerability

The SharePoint Server vulnerability CVE-2023-29357 allowed unauthenticated attackers to gain the privileges of an authenticated user by sending a spoofed JWT authentication token, bypassing security mechanisms without user interaction. This could lead to remote code execution when chained with another vulnerability (CVE-2023-24955).

elniak Follow

Published on systemweakness.com

Free version of this article

ElNiak, on systemweakness.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server accepted JWT tokens with the algorithm set to 'none' without verifying the signature, allowing attackers to forge tokens.

Impact

An attacker could gain admin privileges and potentially execute arbitrary code, leading to full compromise of the SharePoint server, though the PoC was released with limitations to prevent immediate RCE.

What the attacker needed

Network access to the SharePoint server; No authentication required

The fix

Microsoft released patches to address the vulnerability, and organizations are urged to apply them without delay.

How it was found

  1. The attacker sends a request to the SharePoint server to obtain the realm value from the authentication response.
  2. The attacker constructs a JWT token with the algorithm set to 'none' and includes the realm and other fields.
  3. The attacker sends the forged token to the SharePoint API endpoint to authenticate as an admin user.
  4. The attacker uses the authenticated session to perform actions with elevated privileges.

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 write-up has not been written yet. The Original tab links to the source.

This bug let someone pretend to be a logged-in user on a SharePoint server without knowing any passwords. They did this by crafting a fake digital ID card (a token) that the server trusted because it didn't check the card's signature properly. Once they were in, they could do things only an admin should be able to do, and possibly even run malicious code on the server.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by elniak

View all

28 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.