Skip to content
Prototype pollution Advisory Advanced CVE-2022-39396

Parse Server transformUpdate Prototype Pollution Remote Code Execution Vulnerability

The transformUpdate function in Parse Server does not properly control modifications to object prototype attributes, allowing prototype pollution. An unauthenticated remote attacker could exploit this to execute arbitrary code in the context of the service account.

Mikhail Shcherbakov 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 Parse Server. Authentication is not required to exploit this vulnerability.

Mikhail Shcherbakov (KTH), Cristian-Alexandru Staicu (CISPA) and Musard Balliu (KTH), 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

Root cause

Likely, the transformUpdate function merges user-supplied input into objects without filtering keys such as __proto__, allowing attackers to modify Object.prototype.

Impact

An unauthenticated remote attacker could execute arbitrary code with the privileges of the service account.

What the attacker needed

No authentication required; Network access to the Parse Server

The fix

The vulnerability was fixed by the vendor in an update.

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.

Prototype pollution is a flaw where an attacker can add or change properties on a basic JavaScript object that many other objects inherit from. This can alter how the program behaves, and in some cases let the attacker run their own code on the server. Here, the server did not stop such changes in one of its functions, so an attacker could take over the server without logging in.

What is Prototype pollution?

Input changes JavaScript's shared object prototype, altering behaviour across the application, sometimes to XSS or code execution.

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.

Prototype pollution

The lesson behind this report.

Input changes JavaScript's shared object prototype, altering behaviour across the application, sometimes to XSS or code execution.