Skip to content
RCE Advisory Advanced CVE-2023-21778

Microsoft Dynamics Unified Service Desk Remote Code Execution Vulnerability (CVE-2023-21778)

A remote code execution flaw existed in Microsoft Dynamics Unified Service Desk, where a specially crafted file opened by a user could let an authenticated attacker run Windows commands outside the Dynamics application. The attacker could also reach the victim's local files in the Resources directory.

Erik Donker Follow

Originally disclosed on Microsoft

High 8.0 View original

FAQ

According to the CVSS metric, a successful exploitation could lead to a scope change (S:C). What does this mean for this vulnerability? In this case, the attack is carried over the webpage but it compromises the web server running the page. In addition, the attacker might be able to call victim's local files in the Resources directory and execute Windows commands that are outside of the Dynamics application.

FAQ

According to the CVSS metric, privileges required is low (PR:L). What does that mean for this vulnerability? The attacker must be authenticated to be able to exploit this vulnerability.

FAQ

According to the CVSS metric, the attack complexity is high (AC:H). What does that mean for this vulnerability? Successful exploitation of this vulnerability requires an attacker to take additional actions prior to exploitation to prepare the target environment.

FAQ

According to the CVSS metric, user interaction is required (UI:R). What interaction would the user have to do? Exploitation of the vulnerability requires that a user open a specially crafted file. In an email attack scenario, an attacker could exploit the vulnerability by sending the specially crafted file to the user and convincing the user to open the file. In a web-based attack scenario, an attacker could host a website (or leverage a compromised website that accepts or hosts user-provided content) containing a specially crafted file designed to exploit the vulnerability. An attacker would have no way to force users to visit the website. Instead, an attacker would have to convince users to click a link, typically by way of an enticement in an email or instant message, and then convince them to open the specially crafted file.

Microsoft Dynamics

Microsoft Dynamics

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Erik Donker with Vattenfall | On Twitter. 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 application loaded or executed content from a crafted file without properly restricting it to the Dynamics sandbox, allowing code to run outside the application.

Impact

An authenticated attacker who prepared the environment and convinced a user to open a crafted file could execute Windows commands outside the Dynamics application and access local files in the Resources directory.

What the attacker needed

Attacker is authenticated; attacker prepares the target environment; victim opens a crafted file

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.

Unified Service Desk is a Microsoft tool that sits on top of Dynamics and shows web pages inside a desktop window. A flaw meant that a file crafted by an attacker, once opened by a user, could run commands on that user's computer rather than staying inside the application. The attacker still needed a valid login and had to prepare the target environment first.

What is RCE?

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

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.