This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
audit_mass_assignment / README
| 3708b011 » | ryanlowe | 2008-04-30 | 1 | Moved to GitHub from Google Code on May 1, 2008 | |
| 4a09fe09 » | ryanlowe | 2008-04-30 | 2 | Was hosted at http://code.google.com/p/audit-mass-assignment/ | |
| 3 | |||||
| 4b1ce3db » | ryanlowe | 2008-04-30 | 4 | = audit_mass_assignment plugin for Ruby on Rails | |
| 5 | |||||
| 4ddfc88d » | ryanlowe | 2008-05-26 | 6 | The audit_mass_assignment Ruby on Rails plugin contains a rake task that | |
| 7 | checks the models in your project for the attr_accessible whitelist approach | ||||
| 8 | for protecting against "mass assignment" exploits. It does not check for | ||||
| 9 | use of attr_protected. | ||||
| 4b1ce3db » | ryanlowe | 2008-04-30 | 10 | ||
| 11 | == Installation | ||||
| 12 | |||||
| 4ddfc88d » | ryanlowe | 2008-05-26 | 13 | gem install ryanlowe-audit_mass_assignment --source http://gems.github.com/ | |
| 4b1ce3db » | ryanlowe | 2008-04-30 | 14 | ||
| 15 | == Usage | ||||
| 16 | |||||
| 17 | $ rake audit:mass_assignment | ||||
| 18 | |||||
| 4ddfc88d » | ryanlowe | 2008-05-26 | 19 | == Notes | |
| 4b1ce3db » | ryanlowe | 2008-04-30 | 20 | ||
| 3708b011 » | ryanlowe | 2008-04-30 | 21 | If you want to protect ALL attributes in your model use: | |
| 4b1ce3db » | ryanlowe | 2008-04-30 | 22 | ||
| 23 | attr_accessible nil | ||||
| 24 | |||||
| 25 | Why are "mass assignment" exploits a danger to Rails applications? See these links: | ||||
| 26 | |||||
| 27 | 1. rorsecurity.info: Do not create records directly from form parameters | ||||
| 28 | http://www.rorsecurity.info/2007/03/20/do-not-create-records-directly-from-form-parameters/ | ||||
| 29 | |||||
| 30 | 2. Railscasts: Hackers Love Mass Assignment | ||||
| 31 | http://railscasts.com/episodes/26 | ||||
| 32 | |||||
| 33 | 3. Rails Manual: Typical mistakes in Rails applications: Creating records directly from form parameters | ||||
| 34 | http://manuals.rubyonrails.com/read/chapter/47 | ||||
| 35 | |||||
| 36 | |||||







