Broken authorization
The IDOR hiding in your Rails controllers
One line, usually written on day one, that lets any logged-in user read anyone else’s records.
Articles
A walkthrough of each commonly exploited Rails mistake, where it goes wrong, and how to fix it.
Broken authorization
One line, usually written on day one, that lets any logged-in user read anyone else’s records.
Mass assignment
Strong parameters fixed the default. They didn’t fix permit!, or permitting the one attribute that decides who owns a record.
XSS
ERB escapes output by default. Every XSS bug in a Rails app is somebody opting out, usually without meaning to.
CSRF and sessions
Rails protects every form by default. The holes are skipped callbacks, state-changing GETs, and sessions nobody hardened.
Insecure configuration
Verbose errors, open redirects, and missing defaults, usually from an app that’s been upgraded since Rails 5 without ever adopting the new ones.
Race conditions
Check-then-act code passes every test and falls over the moment someone sends the same request twice at the same time.
SQL injection
Hash conditions and placeholders are safe. The moment a request value lands inside a SQL string, they aren’t.
SSRF
Webhooks, link previews, and import-from-URL features all make HTTP requests from inside your network. Point one at the cloud metadata endpoint and see what comes back.
Vulnerable gems
Every gem you install ships its vulnerabilities to production with it. Finding them takes one command; fixing them takes a process.