This module exploits two vulnerabilities in Sharepoint 2019, an auth bypass CVE-2023-29357 which was patched in June of 2023 and CVE-2023-24955, an RCE which was patched in May of 2023. The auth bypass allows attackers to impersonate the Sharepoint Admin user. This vulnerability stems from the signature validation check used to verify JSON Web Tokens (JWTs) used for OAuth authentication. If the signing algorithm of the user-provided JWT is set to none, SharePoint skips the signature validation step due to a logic flaw in the ReadTokenCore() method. After impersonating the administrator user, the attacker has access to the Sharepoint API and is able to exploit CVE-2023-24955. This authenticated RCE vulnerability leverages the impersonated privileged account to replace the "/BusinessDataMetadataCatalog/BDCMetadata.bdcm" file in the webroot directory with a payload. The payload is then compiled and executed by Sharepoint allowing attackers to remotely execute commands via the API.
Exploit database
Vulnerability
CVE-2023-24955
Microsoft SharePoint Server Remote Code Execution Vulnerability
Vulnerability details
- Score
- 7.2
- Severity
- high
CVSS 3.1 · microsoft
Vector string
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:CDescription
Microsoft SharePoint Server Remote Code Execution Vulnerability
CVE ProgramExploit source choices
5 sourcesSharepoint Dynamic Proxy Generator Unauth RCE
2023-05-01sharepoint_dynamic_proxy_generator_auth_bypass_rce.rb
chocapikk/cve-2023-29357
Microsoft SharePoint Server Elevation of Privilege Vulnerability
2023-09-263 files · 236 stars
luemmelsec/cve-2023-29357
luemmelsec/cve-2023-29357 source repository
2023-09-307 files · 55 stars
former-farmer/cve-2023-24955-poc
Exploit for Microsoft SharePoint 2019
2023-12-282 files · 13 stars
chalkingcode/exploitedducks
A super simple Cisa KEV lookup CLI tool leveraging DuckDB
2024-07-024 files · 1 stars