SecurityContext

CVE-2012-6497: Authlogic Gem - SQL Injection

  • Cve: CVE-2012-6497
  • Name: Authlogic Gem - SQL Injection
  • Description: The Authlogic gem for Ruby on Rails, when used with certain versions before 3.2.10, makes potentially unsafe find_by_id method calls, which might allow remote attackers to conduct CVE-2012-6496 SQL injection attacks via a crafted parameter in environments that have a known secret_token value, as demonstrated by a value contained in secret_token.rb in an open-source product.
  • Impact: Remote attackers can execute arbitrary SQL commands, potentially leading to data theft, data tampering, or full database compromise.
  • Remediation: Update to version 3.2.10 or later.
  • Vulnerability type: sql_injection
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: logged_in
  • Requirements: Attacker needs environment with known secret_token
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5
  • Cvss vector: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:N/A:N
  • Epss score: 0.02737
  • Epss percentile: 0.86488
  • Assignee: [email protected]
  • Published at: 2013-01-04T04:46:02Z
  • Age in days: 5072
  • Modified at: 2026-06-16T23:48:14Z
  • Patch available: yes
  • Public exploits total: 2
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2012-6497
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-89Improper Neutralization of Special Elements used in an SQL Command

Public exploits

UrlSourceAdded date
http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/nvd2013-01-04
http://phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.htmlnvd2013-01-04

References

UrlSourceTags
http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/nvdExploit
http://openwall.com/lists/oss-security/2013/01/03/12nvdMailing List, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
rubyonrails:rails< 3.2.10nonvd/v1/products/rubyonrails/rails

Projects

RepositoryLink kindsIndexedUrl
binarylogic/authlogiccommit, package, pullyes/v1/repositories/binarylogic/authlogic

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2013-01-04
  • Remote: yes
  • Exposed hosts: 2416366
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports