Skip to content
RCE Advisory Advanced CVE-2020-16862

Microsoft Dynamics 365 (on-premises) Remote Code Execution Vulnerability (CVE-2020-16862)

Microsoft Dynamics 365 (on-premises) failed to properly sanitise web requests, allowing an authenticated attacker to send a crafted request that could run arbitrary code as the SQL service account. The security update corrects how the server validates and sanitises user input.

Fabian Schmidt Follow

Originally disclosed on Microsoft

Critical 7.1 View original

Description

A remote code execution vulnerability exists in Microsoft Dynamics 365 (on-premises) when the server fails to properly sanitize web requests to an affected Dynamics server. An attacker who successfully exploited the vulnerability could run arbitrary code in the context of the SQL service account. An authenticated attacker could exploit this vulnerability by sending a specially crafted request to a vulnerable Dynamics server. The security update addresses the vulnerability by correcting how Microsoft Dynamics 365 (on-premises) validates and sanitizes user input.

Microsoft Dynamics

Microsoft Dynamics

Microsoft

Microsoft

The original report as published on the Microsoft Security Response Center, by Fabian Schmidt. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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 the server did not properly validate and sanitise user-supplied web requests before using them.

Impact

An authenticated attacker could run arbitrary code in the context of the SQL service account.

What the attacker needed

Authenticated access to Dynamics server

The fix

The vulnerability was fixed by correcting how Microsoft Dynamics 365 (on-premises) validates and sanitises user input.

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.

This is a flaw in a business software server that did not clean up the data people sent to it. A logged-in user could send a specially made request that let them run their own commands on the server, with the same permissions as the database service. The vendor fixed it by making the server check and clean incoming data properly.

What is RCE?

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

More by Fabian Schmidt

View all

3 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

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.