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

Parse Server buildUpdatedObject Prototype Pollution Remote Code Execution Vulnerability

The buildUpdatedObject function in Parse Server did not properly control modifications to object prototype attributes, allowing prototype pollution. An authenticated attacker could leverage this to execute arbitrary code in the context of the service account.

Mikhail Shcherbakov Follow

Originally disclosed on Zero Day Initiative

High 7.2 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Parse Server. Authentication is required to exploit this vulnerability.

Mikhail Shcherbakov, Cristian-Alexandru Staicu and Musard Balliu, 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 buildUpdatedObject function merged user-supplied keys into objects without blocking special property names such as __proto__, allowing prototype pollution.

Impact

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

What the attacker needed

Authentication required

The fix

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

Prototype pollution is a flaw where an attacker can add or change properties on a shared object that many parts of a program rely on. Here, a logged-in user could abuse this to run their own code on the server, not just see data.

What is Prototype pollution?

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

More by Mikhail Shcherbakov

View all

1 more disclosed report, 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.

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.