Skip to content
RCE Write-up Advanced

Exploring CVE-2024–38227 vulnerability in Microsoft SharePoint

A privileged SharePoint user could import a BDC model containing a .NET Assembly and then invoke a WCF service method to execute arbitrary code on the server. The patch removed the ability to execute .NET Assemblies through this path.

medium.com

Published on medium.com

On September 10, Microsoft released another batch of updates addressing 79 vulnerabilities in its products. Among the patches that caught our attention were those for Microsoft SharePoint, an extensive content management system (CMS).

BI.ZONE, on medium.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 BDC remote execution service accepted a .NET Assembly as a data source and executed it without sufficient restriction, allowing a privileged user to run arbitrary code.

Impact

A privileged user could execute arbitrary code on the SharePoint server, as demonstrated by launching the calculator process.

What the attacker needed

Privileged SharePoint user account

The fix

Microsoft removed the ability to execute .NET Assemblies through this BDC path in the September 2024 update.

How it was found

  1. Import a BDC model that uses a .NET Assembly as the data source.
  2. Send a SOAP request to the BdcRemoteExecutionService.svc endpoint invoking ExecuteBdcMethod with parameters set for code execution.

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.

SharePoint lets trusted users connect to external data sources through a feature called BDC. One allowed data source type was a .NET Assembly, which is compiled code. A user with enough rights could upload such an assembly and then trigger a service call that ran it on the server, giving them control of the machine.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.