Prototype Pollution in fullpage.js
The deepExtend utility in fullpage.js is vulnerable to prototype pollution, allowing an attacker to overwrite or create properties on the Object prototype. If a developer uses that polluted property anywhere in their code, it could have a severe effect on the application.
alvarotrigo/fullPage.js
Originally disclosed on huntr
fullPage utils are available to developers using window.fp_utils. They can use these utils for their own use-case (other than fullPage) as well. However, one of the utils deepExtend is vulnerable to Prototype Pollution vulnerability.
Javascript is "prototype" language which means when a new "object" is created, it carries the predefined properties and methods of an "object" with itself like toString, constructor etc. By using prototype-pollution vulnerability, an attacker can overwrite/create the property of that "object" type. If the victim developer has used that property anywhere in the code, then it will have severe effect on the application.
From the GitHub Advisory Database (GHSA-vpgw-ffh3-648h, CC BY 4.0).
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 could pollute the Object prototype, and if the victim developer uses the affected property anywhere in the code, it may have a severe effect on the application.
What the attacker needed
Attacker can supply input to deepExtend; developer uses the polluted property
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.
JavaScript objects inherit shared properties from a base 'prototype' object. Prototype pollution lets an attacker add or change those shared properties, so any code that later reads them may behave unexpectedly. Here the library's deepExtend helper, which merges objects, does not guard against special property names.
What is Prototype pollution?
Input changes JavaScript's shared object prototype, altering behaviour across the application, sometimes to XSS or code execution.