Property
Languagepython
Severitylow
CWECWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes
OWASPA08:2021 - Software and Data Integrity Failures
Confidence LevelLow
Impact LevelMedium
Likelihood LevelLow

Description#

The code assigns all fields from user input directly to a model using constructs like ‘**request.data’, which can unintentionally update sensitive or restricted fields. This allows attackers to modify fields that should not be user-editable by sending extra data in their requests.

Impact#

If exploited, an attacker could change critical fields such as user roles, permissions, or account status, potentially leading to privilege escalation, data corruption, or unauthorized access. This can compromise application integrity and expose sensitive data or functionalities.