Remote Code Execution Vulnerability in Application Inspector (CVE-2020-0872)
Application Inspector reflected example code snippets from third-party source files into its HTML report without encoding, allowing a malicious component to inject JavaScript. An attacker could convince a user to scan malicious source code, causing the report to send data to an external server.
Originally disclosed on Microsoft
Description
A remote code execution vulnerability exists in Application Inspector version v1.0.23 or earlier when the tool reflects example code snippets from third-party source files into its HTML output. An attacker who exploited it could send sections of the report containing code snippets to an external server. To exploit the vulnerability, an attacker needs to convince a user to run Application Inspector on source code that includes a malicious third-party component. The update addresses the vulnerability by adding output encoding to the HTML report blocking an attacker’s ability to initiate a JavaScript action. Additional details can be found in the Application Inspector project on GitHub .
Open Source Software
Open Source Software
Issuing CNA
Microsoft
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
The HTML report did not encode example code snippets taken from scanned source files, so attacker-controlled content was rendered as active markup and script.
Impact
An attacker could cause sections of the generated report to be sent to an external server, but only if a user scans malicious source code.
What the attacker needed
Victim runs Application Inspector v1.0.23 or earlier; scanned source contains a malicious component; attacker convinces victim to scan that source
The fix
The vulnerability was fixed by adding output encoding to the HTML report, which blocks JavaScript actions.
How it was found
- Create or obtain source code containing a malicious third-party component.
- Convince a user to run Application Inspector on that source code.
- The tool reflects the malicious snippet into the HTML report, which then initiates a JavaScript action and can send report sections to an external server.
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.
Application Inspector is a tool that scans source code and produces an HTML report. If a scanned file contains code that looks like HTML or JavaScript, the report included it without neutralising it, so the report itself could run that code. An attacker could then make the report send information to a server they control.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.