rails_admin is vulnerable to Improper Authorization
83
CVE Score
High
Improper Authorization
RailsAdmin's Pundit authorization adapter rescues Pundit::NotDefinedError when a model has no policy scope and returns the model's full unscoped relation instead of an empty one. The index, export, and bulk delete actions merge that unscoped relation into the record set they operate on. A user with list, export, or bulk delete permission but no policy scope defined for a model can view, export, or delete every record of that model rather than only the records their policy would allow. The fix returns an empty scope from the rescue instead of the unscoped relation.
Upgrade the rails_admin library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you use the Pundit authorization adapter without a policy scope defined for the affected model.
0.8.1 - 3.3.0
Fixed in 3.3.1rails_admin is vulnerable to Improper Authorization in versions 0.8.1 - 3.3.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.