CVE-2012-6497:CVE-2012-6497 - SQL injection vulnerability in Authlogic gem for Ruby on Rails before 3.2.10

splash
Back

Description Preview

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 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.

Overview

This CVE describes a SQL injection vulnerability in the Authlogic gem for Ruby on Rails before version 3.2.10. The vulnerability arises from potentially unsafe find_by_id method calls, which can be exploited by remote attackers to execute SQL injection attacks by manipulating a parameter in environments with a known secret_token value.

Remediation

To remediate this vulnerability, users are advised to upgrade to a version of the Authlogic gem that is equal to or later than 3.2.10. By updating to a secure version, the potentially unsafe find_by_id method calls are addressed, reducing the risk of SQL injection attacks. Additionally, it is recommended to review and secure the secret_token value in the environment to prevent exploitation.

References

  1. [Blog Post] Rails SQL Injection Vulnerability - http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/
  2. [Mailing List] SQL Injection Vulnerability in Ruby on Rails (CVE-2012-5664) - http://openwall.com/lists/oss-security/2013/01/03/12
  3. [Blog Post] Let me Github that for you - http://phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html
  4. [Security Focus] BID 57084 - http://www.securityfocus.com/bid/57084

Industry ExposureMost to least
This section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.

  1. Accommodation & Food Services
    Accommodation & Food Services
  2. Administrative, Support, Waste Management & Remediation Services
    Administrative, Support, Waste Management & Remediation Services
  3. Agriculture, Forestry Fishing & Hunting
    Agriculture, Forestry Fishing & Hunting
  4. Arts, Entertainment & Recreation
    Arts, Entertainment & Recreation
  5. Construction
    Construction
  6. Educational Services
    Educational Services
  7. Finance and Insurance
    Finance and Insurance
  8. Health Care & Social Assistance
    Health Care & Social Assistance
  9. Information
    Information
  10. Management of Companies & Enterprises
    Management of Companies & Enterprises
  11. Manufacturing
    Manufacturing
  12. Mining
    Mining
  13. Other Services (except Public Administration)
    Other Services (except Public Administration)
  14. Professional, Scientific, & Technical Services
    Professional, Scientific, & Technical Services
  15. Public Administration
    Public Administration
  16. Real Estate Rental & Leasing
    Real Estate Rental & Leasing
  17. Retail Trade
    Retail Trade
  18. Transportation & Warehousing
    Transportation & Warehousing
  19. Utilities
    Utilities
  20. Wholesale Trade
    Wholesale Trade

Focus on What Matters

  1. See Everything.
  2. Identify True Risk.
  3. Proactively Mitigate Threats.

Let's talk!

background
Armis Vulnerability Intelligence Database