Will It Inject? A Look at SQL injections and ActiveRecord
summary
Clear walkthrough of which ActiveRecord calls are safe and which bite back: find and find_by treat inputs as integers or escaped strings, while raw fragments like where(name: user) or group and having can be exploited. Demonstrations show using parameterized queries (the ? placeholder), sanitization via sanitization.rb and quoting.rb, and the game-like testing of examples. Cited breaches (1.2 billion credentials, VTech’s 5M parents / 200k children) underscore why the fixes actually matter.
AI-written summary · about
chapters (12)
- 0:00Start
- 2:32Safety and Security in the em Coffee Shop Line
- 5:08Google
- 5:31FIRE 4CID
- 9:05OWASP Open Web Application Security Project
- 15:32FLATIRON SCHOOL
- 16:18SELECT * FROM Restaurant WHERE Type = "bbq"
- 16:59Will it Inject? A look at SQL injection and active record
- 19:39type: "burnt ends", dads_rating: 5
- 20:57Barbecue.where('name = Oklahoma Joes'')
- 30:46OWASP Ruby on Rails Cheat Sheet your own code
- 31:32Comp Chomp
related talks
26mWill it inject? A look at SQL injection and ActiveRecord
32mSecuring Your Rails App
34mThe World of Rails Security
54mTaking on the King: Killing Injection Vulnerabilities
43mSecuring Your Rails App
24mSQL injection - What is it and how do I prevent it?
31mRails Application Security in Practice
44mEnding Injection Vulnerabilities
