SQL Injection Vulnerability in Ruby on Rails; affects all versions
groups.google.com
SQL Injection Vulnerability in Ruby on Rails; affects all versions
1–10 of 220 posts
Re: SQL Injection Vulnerability in Ruby on Rails; affects all versions
#23.2.6 (June 2012) https://groups.google.com/forum/?fromgroups=#!topic/rubyonra...
3.2.4 (May 2012) https://groups.google.com/forum/?fromgroups=#!topic/rubyonra...
Re: SQL Injection Vulnerability in Ruby on Rails; affects all versions
#3This is a really, really bad hole, and you should patch or upgrade ASAP.
Re: SQL Injection Vulnerability in Ruby on Rails; affects all versions
#4This affects all versions of Rails, not just 3.x. This is a really, really bad hole, and you should patch or upgrade ASAP.
Re: SQL Injection Vulnerability in Ruby on Rails; affects all versions
#5In Django you would do:
Post.objects.get(pk=request.GET['id'])
There really is no way to do SQL injection this way.
This line in rails looks almost exactly like how you would do it in Django:
Post.find_by_id(params[:id])
Also this seems really serious. It's not like a edge case where you need to grab a post by id. This is probably a very common use case of that method find_by_id.
Re: SQL Injection Vulnerability in Ruby on Rails; affects all versions
#6Re: SQL Injection Vulnerability in Ruby on Rails; affects all versions
#7For someone just learning RoR and having installed it via http://railsinstaller.org/ , how should I upgrade?
Re: SQL Injection Vulnerability in Ruby on Rails; affects all versions
#8I am mostly a Django programmer so excuse my ignorance of rails. How does this keep happening? In Django you would do: Post.objects.get(pk=request.GET['id']) There really is no way to do SQL injection this way. This line in rails looks almost exactly like how you would do it in Django: Post.find_by_id(params[:id]) Also this seems really serious. It's not like a edge case where you need to grab a post by id. This is p…
What the hell is going on with ActiveRecord?
Re: SQL Injection Vulnerability in Ruby on Rails; affects all versions
#9For someone just learning RoR and having installed it via http://railsinstaller.org/ , how should I upgrade?
If you're just learning and creating an app for your own edification, this is not really an issue that will affect you. That is, it doesn't affect how you construct the app, so if for some reason the gem update process doesn't work, you won't be hindered from using RoR.