Skip to content

Instantly share code, notes, and snippets.

View Sampaguitas's full-sized avatar

Timothee Desurmont Sampaguitas

  • Van Leeuwen Pipe and Tube Group
  • Dubai, United Arab Emirates
View GitHub Profile
@Sampaguitas
Sampaguitas / lodash_prototype_pollutution.md
Last active November 30, 2023 12:42
Prototype Pollution in lodash/lodash.set, lodash/lodash.setwith and lodash/lodash.zipobjectdeep

Prototype Pollution in lodash/lodash.set, lodash/lodash.setwith and lodash/lodash.zipobjectdeep

Reported on Jan 2nd 2022 | Timothee Desurmont

Description

Vulnerability type: CWE-1321

The npm packages lodash.set (<=v4.3.2), lodash.setwith(<=v4.3.2), lodash.zipobjectdeep (v4.4.2) are all vulnerable to prototype pollution;

@Sampaguitas
Sampaguitas / Prototype Pollution in nuysoft-mock.md
Last active November 30, 2023 14:31
Prototype Pollution in nuysoft/mock

Description

Vulnerability type: CWE-1321

Version 1.1.0 of mockjs is vulnerable to prototype pollution; Util.extend do not check if the attribute resolves to the object prototype.

By adding or modifying attributes of an object prototype, it is possible to create attributes that exist on every object, or replace critical attributes with malicious ones. This can be problematic if the software depends on existence or non-existence of certain attributes, or uses pre-defined attributes of object prototype (such as hasOwnProperty, toString or valueOf).

Sinks