Medium severityRubyOther Security ChecksMEDIUM confidence
Mass Assignment Attr Accessible
Legacy attr_accessible/attr_protected mass-assignment controls are used; these are removed in modern Rails and are error-prone (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
attr_accessible :name, :emailPasses - the safe pattern
attr_reader :nameWhy it matters & how to fix it
Legacy attr_accessible/attr_protected mass-assignment controls are used; these are removed in modern Rails and are error-prone (CWE-915). Enforce allow-listing at the controller with strong parameters (params.require(:model).permit(...)).
References
Rule ID integsec-ruby-mass-assignment-attr-accessible - 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