RubySec

Providing security resources for the Ruby community

CVE-2012-6497 (authlogic): Ruby on Rails Authlogic Gem secret_token.rb Known secret_token Value Weakness

ADVISORIES

GEM

authlogic

PATCHED VERSIONS

  • >= 3.3.0

DESCRIPTION

Ruby on Rails contains a flaw in the Authlogic gem. The issue is triggered when the program makes an unsafe method call for find_by_id. With a specially crafted parameter in an environment that knows the secret_token value in secret_token.rb, a remote attacker to more easily conduct SQL injection attacks.