Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Strong Parameters, Why?
Search
jcomello
May 28, 2013
Programming
22
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Strong Parameters, Why?
jcomello
May 28, 2013
Other Decks in Programming
See All in Programming
パスワード再設定メールのURLについて知っておこう
uyuki234
0
160
Rでドレミ/Do-Re-Mi_with_R
florets1
0
130
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.2k
S3 TablesのIcebergデータに、AIエージェントからアクセスしてみた / 20261016developersio2026joetsu-accessing-iceberg-in-s3tables-via-agent
kasacchiful
PRO
0
160
APNsからLive Activityを開始する話
yumnumm
0
170
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
Long Living Tokens, Die, Die, Die! (or: The One Ring is Banned in Modern)
sylph01
0
310
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
190
Domain-Driven Transformation
hschwentner
2
2.3k
気持ちぃ〜角丸 Squircle
ryu1013
0
310
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
280
コーディング自動化の次へ。人の介入をゼロにするファクトリーとサポートAIによる実践
timakin
5
3.7k
Featured
See All Featured
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Designing for Performance
lara
612
70k
KATA
mclloyd
PRO
35
16k
Marketing to machines
jonoalderson
1
5.9k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
Being A Developer After 40
akosma
92
590k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
The Cost Of JavaScript in 2023
addyosmani
55
10k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
Transcript
Strong Parameters Strong Parameters Strong Parameters, pra que? Strong Parameters,
pra que?
Your footer comes here Your footer comes here 4 de
Março de 2012 4 de Março de 2012 Egor Homakov hackeia repostório do Rails conseguindo acesso de commit depois que sua issue levantada no Github foi fechada como 'Won't Fix'.
Your footer comes here Your footer comes here Motivação Motivação
attr_accessible e attr_protected são o bastante? hackear hackear hackear
Your footer comes here Your footer comes here Mass Assignment
Mass Assignment
Your footer comes here Your footer comes here Solução Solução
Parametros já filtrados na action:
Your footer comes here Your footer comes here Solução Solução
E se o model aceitar atributos aninhados?
Your footer comes here Your footer comes here Solução Solução
• Para o Rails a solução foi a gem strong_parameters:
Your footer comes here Your footer comes here Dúvidas, discussões
e feedbacks Dúvidas, discussões e feedbacks
Your footer comes here Your footer comes here Referências Referências
• http://capturedsparks.com/2013/03/05/strong-parameters-in-rails-4/ • http://stackoverflow.com/questions/7483451/why-slicing-the-params-hash-poses-a -security-issue-on-mass-assignment • https://github.com/rails/rails/issues/5228 • https://github.com/rails/strong_parameters