Microsoft SharePoint Server Remote Code Execution Vulnerability (CVE-2022-30158)
An authenticated user with page-creation permissions could exploit a flaw in SharePoint's Sandboxed Code Service to run code as the web service account. The text does not describe the technical mechanism, only the privilege requirement and the outcome.
FAQ
According to the CVSS metric, privileges required is low (PR:L). What does that mean for this vulnerability? The attacker must be authenticated and possess the permissions for page creation to be able to exploit this vulnerability.
FAQ
I am running SharePoint Enterprise Server 2013 Service Pack 1. Do I need to install both updates that are listed for SharePoint Enterprise Server 2013 Service Pack 1? No. The Cumulative update for SharePoint Server 2013 includes the update for Foundation Server 2013. Customers running SharePoint Server 2013 Service Pack 1 can install the cumulative update or the security update, which is the same update as for Foundation Server 2013. Please note that this is a clarification of the existing servicing model for SharePoint Server 2013 and applies for all previous updates.
FAQ
How can an attacker exploit this vulnerability via the Network? An authenticated attacker with access to a server that has Sandboxed Code Service enabled could execute code in the context of the web service account.
Microsoft Office SharePoint
Microsoft Office SharePoint
Microsoft
Microsoft
Customer Action Required
Yes
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely insufficient isolation in the Sandboxed Code Service, allowing code submitted through it to run with the web service account's privileges.
Impact
An authenticated user with page-creation rights could run code as the web service account, but only on servers where the Sandboxed Code Service is enabled.
What the attacker needed
Authenticated account; permission to create pages; Sandboxed Code Service enabled
The fix
Microsoft shipped security and cumulative updates for the affected SharePoint versions, and customers were told to install them.
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 report has not been written yet. The Original tab links to the source.
SharePoint is Microsoft's tool for building internal websites and document portals. A 'sandbox' is meant to run untrusted code in a sealed box so it cannot harm the rest of the system; here the box could be escaped. Someone who could already create pages could therefore run their own code on the server with the website's own account rights.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.