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
| Id | Name |
|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command |
Public exploits
References
| Url | Source | Tags |
|---|---|---|
| http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/ | nvd | Exploit |
| http://openwall.com/lists/oss-security/2013/01/03/12 | nvd | Mailing List, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| rubyonrails:rails | < 3.2.10 | no | nvd | /v1/products/rubyonrails/rails |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| binarylogic/authlogic | commit, package, pull | yes | /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