Skip to content
OpenAdvisories

Weakness (CWE)

CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes

Base Incomplete

The product receives input from an upstream component that specifies multiple attributes, properties, or fields that are to be initialized or updated in an object, but it does not properly control which attributes can be modified.

How to prevent it (4 mitigations)
  1. Implementation

    If available, use features of the language or framework that allow specification of allowlists of attributes or fields that are allowed to be modified. If possible, prefer allowlists over denylists.

    For applications written with Ruby on Rails, use the attr_accessible (allowlist) or attr_protected (denylist) macros in each class that may be used in mass assignment.

  2. Architecture and Design, Implementation

    If available, use the signing/sealing features of the programming language to assure that deserialized data has not been tainted. For example, a hash-based message authentication code (HMAC) could be used to ensure that data has not been modified.

  3. Implementation

    For any externally-influenced input, check the input against an allowlist of internal object attributes or fields that are allowed to be modified.

  4. Implementation, Architecture and Design

    Refactor the code so that object attributes or fields do not need to be dynamically identified, and only expose getter/setter functionality for the intended attributes.

Source: MITRE CWE-915

278 results · Feed

  • High 7.3

    Prototype Pollution

    All versions of package merge are vulnerable to Prototype Pollution via _recursiveMerge .

  • High 7.2

    Prototype Pollution in Dynamoose

    Dynamoose is an open-source modeling tool for Amazon's DynamoDB. In Dynamoose from version 2.0.0 and before version 2.7.0 there was a prototype pollution vulnerability in the internal utility method "lib/utils/object/set.ts". This method is used throughout th…

  • High 7.3
    CVE-2020-7774 EPSS 70%

    Prototype Pollution

    The package y18n before 3.2.2, 4.0.1 and 5.0.5, is vulnerable to Prototype Pollution.

  • Critical 9.8

    Prototype Pollution in deephas

    Prototype pollution vulnerability in 'deephas' versions 1.0.0 through 1.0.5 allows attacker to cause a denial of service and may lead to remote code execution.

  • Critical 9.8

    Prototype pollution in object-hierarchy-access

    Prototype pollution vulnerability in 'object-hierarchy-access' versions 0.2.0 through 0.32.0 allows attacker to cause a denial of service and may lead to remote code execution.

  • Critical 9.8

    Prototype Pollution in field

    Prototype pollution vulnerability in 'field' versions 0.0.1 through 1.0.1 allows attacker to cause a denial of service and may lead to remote code execution.

  • High 7.5

    Prototype Pollution

    The package grpc before 1.24.4; the package @grpc/grpc-js before 1.1.8 are vulnerable to Prototype Pollution via loadPackageDefinition.

  • High 7.5

    Prototype Pollution

    This affects the package chart.js before 2.9.4. The options parameter is not properly sanitized when it is processed. When the options are processed, the existing options (or the defaults options) are deeply merged with provided options. However, during this …

  • Medium 5.6

    Prototype Pollution

    This affects the package @tsed/core before 5.65.7. This vulnerability relates to the deepExtend function which is used as part of the utils directory. Depending on if user input is provided, an attacker can overwrite and pollute the object prototype of a prog…

  • High 7.3

    Prototype Pollution

    The package mathjs before 7.5.1 are vulnerable to Prototype Pollution via the deepExtend function that runs upon configuration updates.

  • Critical 9.8
    CVE-2019-0230 Public exploit Scanner template EPSS 97%

    Improperly Controlled Modification of Dynamically-Determined Object Attributes in Apache Struts

    Apache Struts 2.0.0 to 2.5.20 forced double OGNL evaluation, when evaluated on raw user input in tag attributes, may lead to remote code execution.

  • Critical 9.8

    Prototype Pollution

    The package node-forge before 0.10.0 is vulnerable to Prototype Pollution via the util.setPath function. Note: Version 0.10.0 is a breaking change removing the vulnerable functions.

  • Critical 9.8

    Prototype Pollution

    Versions of package locutus before 2.0.12 are vulnerable to prototype Pollution via the php.strings.parse_str function.

  • Critical 9.8

    Prototype Pollution

    The package irrelon-path before 4.7.0; the package @irrelon/path before 4.7.0 are vulnerable to Prototype Pollution via the set, unSet, pushVal and pullVal functions.

  • Critical 9.8

    Prototype Pollution

    The package property-expr before 2.0.3 are vulnerable to Prototype Pollution via the setter function.

  • Critical 9.8

    Prototype Pollution

    The package connie-lang before 0.1.1 are vulnerable to Prototype Pollution in the configuration language library used by connie.

  • Critical 9.8

    Prototype Pollution

    All versions of package nis-utils are vulnerable to Prototype Pollution via the setValue function.

  • Critical 9.8

    Prototype Pollution

    All versions of package templ8 are vulnerable to Prototype Pollution via the parse function.

  • Critical 9.8

    Prototype Pollution

    madlib-object-utils before 0.1.7 is vulnerable to Prototype Pollution via setValue.

  • High 7.5
    CVE-2020-7699 Public exploit

    Prototype Pollution

    This affects the package express-fileupload before 1.1.8. If the parseNested option is enabled, sending a corrupt HTTP request can lead to denial of service or arbitrary code execution.

  • Medium 5.6

    Prototype Pollution in Ajv

    An issue was discovered in ajv.validate() in Ajv (aka Another JSON Schema Validator) 6.12.2. A carefully crafted JSON schema could be provided that allows execution of other code by prototype pollution. (While untrusted schemas are recommended against, the wo…

  • High 7.3

    Prototype Pollution

    In all versions of package casperjs, the mergeObjects utility function is susceptible to Prototype Pollution.

  • High 8.7

    Improperly Controlled Modification of Dynamically-Determined Object Attributes in TYPO3 CMS

    In TYPO3 CMS greater than or equal to 9.0.0 and less than 9.5.17 and greater than or equal to 10.0.0 and less than 10.4.2, calling unserialize() on malicious user-submitted content can lead to modification of dynamically-determined object attributes and resul…

  • High 8.1

    Uncontrolled Resource Consumption in fun-map

    fun-map through 3.3.1 is vulnerable to Prototype Pollution. The function assocInM could be tricked into adding or modifying properties of 'Object.prototype' using a '__proto__' payload.

  • Medium 5.3

    Prototype Pollution in sds

    sds through 3.2.0 is vulnerable to Prototype Pollution.The library could be tricked into adding or modifying properties of the 'Object.prototype' by abusing the 'set' function located in 'js/set.js'.

  • Medium 5.3

    Improperly Controlled Modification of Dynamically-Determined Object Attributes in express-mock-middleware

    express-mock-middleware through 0.0.6 is vulnerable to Prototype Pollution. Exported functions by the package can be tricked into adding or modifying properties of the `Object.prototype`. Exploitation of this vulnerability requires creation of a new directory…

  • Medium 5.3

    eivindfjeldstad-dot contains prototype pollution vulnerability

    eivindfjeldstad-dot below 1.0.3 is vulnerable to Prototype Pollution.The function 'set' could be tricked into adding or modifying properties of 'Object.prototype' using a '__proto__' payload.

  • Medium 5.3

    confinit vulnerable to prototype pollution

    confinit through 0.3.0 is vulnerable to Prototype Pollution.The 'setDeepProperty' function could be tricked into adding or modifying properties of 'Object.prototype' using a '__proto__' payload.

  • Medium 5.3

    Prototype pollution in class-transformer

    class-transformer before 0.3.1 allow attackers to perform Prototype Pollution. The classToPlainFromExist function could be tricked into adding or modifying properties of Object.prototype using a __proto__ payload.

  • Medium 4.4

    Prototype Pollution

    ini-parser through 0.0.2 is vulnerable to Prototype Pollution.The library could be tricked into adding or modifying properties of Object.prototype using a '__proto__' payload.

  • Medium 5.3

    yargs-parser Vulnerable to Prototype Pollution

    yargs-parser could be tricked into adding or modifying properties of Object.prototype using a "__proto__" payload.

  • Medium 5.3

    Improperly Controlled Modification of Dynamically-Determined Object Attributes in querymen

    querymen prior to 2.1.4 allows modification of object properties. The parameters of exported function handler(type, name, fn) can be controlled by users without any sanitization. This could be abused for Prototype Pollution attacks.

  • High 8.8

    Improperly Controlled Modification of Dynamically-Determined Object Attributes in utilitify

    utilitify prior to 1.0.3 allows modification of object properties. The merge method could be tricked into adding or modifying properties of the Object.prototype.

  • Medium 4.3

    Improperly Controlled Modification of Dynamically-Determined Object Attributes in vega-util

    vega-util prior to 1.13.1 allows manipulation of object prototype. The 'vega.mergeConfig' method within vega-util could be tricked into adding or modifying properties of the Object.prototype.

  • High 7.5

    angular Prototype Pollution vulnerability

    In AngularJS before 1.7.9 the function `merge()` could be tricked into adding or modifying properties of `Object.prototype` using a `__proto__` payload.

  • High 7.5

    assign-deep Vulnerable to Prototype Pollution

    assign-deep is vulnerable to Prototype Pollution in versions before 0.4.8 and version 1.0.0. The function assign-deep could be tricked into adding or modifying properties of Object.prototype using either a constructor or a _proto_ payload.

  • Critical 9.8

    Deserialization of untrusted data in FasterXML jackson-databind

    SubTypeValidator.java in FasterXML jackson-databind before 2.9.9.2 mishandles default typing when ehcache is used (because of net.sf.ehcache.transaction.manager.DefaultTransactionManagerLookup), leading to remote code execution.

  • High 8.8

    Phar object injection in PHPMailer

    PHPMailer before 5.2.27 and 6.x before 6.0.6 is vulnerable to an object injection attack.