Skip to content
XSS Advisory Intermediate CVE-2020-16873

Xamarin.Forms Spoofing Vulnerability (CVE-2020-16873)

A spoofing vulnerability in Microsoft Xamarin.Forms arises from default settings on Android WebView versions before 83.0.4103.106. An attacker could execute arbitrary JavaScript on a target system if the user browses to a malicious website through Xamarin.Forms.

Alesandro Ortiz Follow

Originally disclosed on Microsoft

High 4.7 View original

Description

A spoofing vulnerability manifests in Microsoft Xamarin.Forms due to the default settings on Android WebView version prior to 83.0.4103.106. This vulnerability could allow an attacker to execute arbitrary Javascript code on a target system. For the attack to be successful, the targeted user would need to browse to a malicious website or a website serving the malicious code through Xamarin.Forms. The security update addresses this vulnerability by preventing the malicious Javascript from running in the WebView.

Open Source Software

Open Source Software

Microsoft

Microsoft

The original report as published on the Microsoft Security Response Center, by Alesandro Ortiz. 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 default WebView settings in Xamarin.Forms on older Android WebView versions allowed JavaScript execution from untrusted content.

Impact

An attacker could execute arbitrary JavaScript code on a target system if the user browses to a malicious website through Xamarin.Forms.

What the attacker needed

User browses to a malicious website; Android WebView before 83.0.4103.106

The fix

The security update addresses the vulnerability by preventing malicious JavaScript from running in the WebView.

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.

Xamarin.Forms is a tool for building mobile apps. The app uses a built-in browser component called WebView to show web content. Because of default settings, that browser component could run harmful JavaScript code from a malicious website, which could let an attacker do things on the user's device. The update stops that JavaScript from running.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by Alesandro Ortiz

View all

33 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.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.