Mass assignment and the hidden admin flag
Lesson 7 of 27 · Access and identity · 2 min Get the course to watchThe profile page lets a customer change their name. The assistant wrote the update in one tidy line that takes whatever the request sends and saves it. A customer who adds one extra field to that request has just made themselves an administrator.
The rest of this lesson
- Why the assistant writes it
- What the run shows
- The fix is an allowlist
- The same problem on the way out
- Privileged fields get their own path
- What to keep
The full lesson is animated and narrated, with a short quiz, and you can pause it to ask a question. It comes with Secure the code AI writes.