In association with heise online

01 June 2012, 12:00

Critical vulnerability derails Ruby on Rails

  • Twitter
  • Facebook
  • submit to slashdot
  • StumbleUpon
  • submit to reddit

Ruby on Rails logo The developers of the Ruby on Rails web framework have closed a critical vulnerability which allowed attackers to execute some SQL commands on the database server. An "SQL Injection" attack such as this could allow the attacker, for example, to read confidential information without authorisation.

The vulnerability exists in versions 3.0 and later of Active Record, Rail's database layer, and is exposed when using nested query parameters. Code that directly passes parameters to a where method, is affected. For example, using the common idiom params[:id] can be tricked into returning a crafted hash which causes the generated SQL statement to query an arbitrary table.

Another weakness with query generation was also found to affect all versions of Ruby On Rails. Rails 3.2.4 was released with fixes for these, and many other bugs, but due to a number of problems in the release process for 3.2.4, the developers then released Rails 3.2.5. There are also updated versions of Rails 3.1.5 and Rails 3.0.13 to fix the same security problems in older versions of the framework.

(djwm)

Print Version | Send by email | Permalink: http://h-online.com/-1588773
 


  • July's Community Calendar





The H Open

The H Security

The H Developer

The H Internet Toolkit