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.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Parse Server. Authentication is required to exploit this vulnerability.
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.