High severityRubyOther Security ChecksHIGH confidence
Mass Assignment Permit Bang
permit! whitelists every request parameter for mass assignment, letting attackers set unintended attributes such as admin/role (CWE-915).
Standards mapping
- OWASP Top 10
- A08:2021 - Software and Data Integrity Failures
- OWASP ASVS
- V5.1.3 (L1)
Vulnerable vs. safe
Flagged by this check
params.permit!Passes - the safe pattern
params.require(:user).permit(:name, :email)Why it matters & how to fix it
permit! whitelists every request parameter for mass assignment, letting attackers set unintended attributes such as admin/role (CWE-915). Use strong parameters with an explicit permit(:a, :b) allow-list of the attributes each action is allowed to change.
References
Rule ID integsec-ruby-mass-assignment-permit-bang - engine: Opengrep - license: MIT - Copyright (c) IntegSec Inc.
TurboPentest runs this check automatically
Connect a GitHub repo and this check runs on every white-box pentest - AI-validated and reported with proof, from $99 per target.
Start a pentestRelated checks
- JavaScript / TypeScript - Other Security ChecksChild Process Shell True
- JavaScript / TypeScript - Other Security ChecksOpen Redirect Tainted Input
- Python - Other Security ChecksDjango Mark Safe
- Python - Other Security ChecksFlask Debug Enabled
- Python - Other Security ChecksFlask Render Template String
- Python - Other Security ChecksInsecure Tempfile Mktemp