Property
Languageruby
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#

Allowing mass assignment of sensitive attributes like ‘admin’ or ‘account_id’ using permit can let users modify critical fields they shouldn’t have access to. This exposes your application to unauthorized privilege changes or account takeovers.

Impact#

If exploited, attackers could escalate their privileges, gain admin access, or manipulate account ownership by changing protected attributes. This can lead to data breaches, unauthorized actions, and a loss of control over user accounts and permissions.