Skip to content
Subdomain takeover Advisory Intermediate

Microsoft WinJS winjsdevelop Uncontrolled Search Path Element Remote Code Execution Vulnerability

The WinJS package, when installed from the official Microsoft NPM repository, tried to load a cloud resource that did not exist and could be taken over by someone else. An attacker who claimed that resource could run code on systems that depended on it.

Nitesh Surana Follow

Originally disclosed on Zero Day Initiative

Critical 9.8 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Microsoft WinJS. Authentication is not required to exploit this vulnerability.

Nitesh Surana (@_niteshsurana) of Trend Micro Research, on the Zero Day Initiative

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 report has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker who took over the cloud resource could execute arbitrary code on systems that depend on it; the text does not say whether any defence limited this.

What the attacker needed

Install WinJS from the official NPM repository; attacker claims the unregistered cloud resource

The fix

Microsoft issued an update to correct the vulnerability.

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.

When you install a software package, it sometimes fetches extra files from the internet. Here the package looked for a file at a cloud address that nobody had registered, so anyone could register it and put their own file there. That file would then run on the computers of people who installed the package.

What is Subdomain takeover?

A company's DNS still points at a cloud service it no longer uses, so anyone can claim it and serve content on the company's domain.

More by Nitesh Surana

View all

51 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Subdomain takeover

The lesson behind this report.

A company's DNS still points at a cloud service it no longer uses, so anyone can claim it and serve content on the company's domain.