CVE-2011-0447: Actionpack Actionpack Cross-Site Request Forgery Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-24fg-p96v-hxh8
CWE-352
Published
Advisory Summary

CVE-2011-0447 is a MODERATE actionpack cross-site request forgery vulnerability vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Actionpack libraries in the RubyGems ecosystem. The issue involves actionpack cross-site request forgery vulnerability. Remediation is available by upgrading affected packages to version 2.3.11, 3.0.4.

CVE-2011-0447 at a Glance

CVE Identifier CVE-2011-0447
GHSA Identifier GHSA-24fg-p96v-hxh8
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Actionpack
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2011-0447

To remediate this vulnerability, upgrade all affected Actionpack dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

actionpack fixed: 2.3.11
Upgrade actionpack to 2.3.11
actionpack fixed: 3.0.4
Upgrade actionpack to 3.0.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for actionpack

How to Check if You Are Affected

To determine whether your application is affected by CVE-2011-0447, inspect your project dependencies for Actionpack:

inspect dependencies for actionpack

Analyze the terminal output to locate any version of Actionpack in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.11), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Actionpack, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Ruby on Rails 2.1.x, 2.2.x, and 2.3.x before 2.3.11, and 3.x before 3.0.4, does not properly validate HTTP requests that contain an X-Requested-With header, which makes it easier for remote attackers to conduct cross-site request forgery (CSRF) attacks via forged (1) AJAX or (2) API requests that leverage "combinations of browser plugins and HTTP redirects," a related issue to CVE-2011-0696.

CVE-2011-0447 Affected Actionpack Versions

2 component(s)
Fixed Versions:
2.3.113.0.4
Product / Package Ecosystem Affected Versions Fixed Version
actionpack
RubyGems
≥ 2.1.0
< 2.3.11
2.3.11
actionpack
RubyGems
≥ 3.0.0
< 3.0.4
3.0.4

References

Frequently Asked Questions

What is CVE-2011-0447?
CVE-2011-0447 is a security vulnerability in Actionpack involving actionpack Cross-Site Request Forgery vulnerability under CWE-352: Cross-Site Request Forgery (CSRF).
Which Actionpack versions are affected?
Affected versions include releases prior to 2.3.11, 3.0.4 across affected packages: actionpack.
What version fixes CVE-2011-0447?
Upgrading to 2.3.11, 3.0.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is actionpack affected?
Yes, actionpack is affected in releases prior to 2.3.11, 3.0.4. Upgrade your dependency to 2.3.11, 3.0.4 or later.
What CWE is associated with CVE-2011-0447?
CVE-2011-0447 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check RubyGems dependencies for CVE-2011-0447?
Run the dependency tree command: 'inspect dependencies for actionpack'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-24fg-p96v-hxh8",
  "modified" : "2023-05-26T17:41:44Z",
  "published" : "2017-10-24T18:33:38Z",
  "aliases" : [ "CVE-2011-0447" ],
  "summary" : "actionpack Cross-Site Request Forgery vulnerability",
  "details" : "Ruby on Rails 2.1.x, 2.2.x, and 2.3.x before 2.3.11, and 3.x before 3.0.4, does not properly validate HTTP requests that contain an X-Requested-With header, which makes it easier for remote attackers to conduct cross-site request forgery (CSRF) attacks via forged (1) AJAX or (2) API requests that leverage \"combinations of browser plugins and HTTP redirects,\" a related issue to CVE-2011-0696.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "actionpack"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.3.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "actionpack"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-0447"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rails/rails/commit/66ce3843d32e9f2ac3b1da20067af53019bbb034"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rails/rails/commit/7e86f9b4d2b7dfa974c10ae7e6d8ef90f3d77f06"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rails/rails"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2011-0447.yml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20120527023027/http://www.securityfocus.com/bid/46291"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20170223045008/http://www.securitytracker.com/id?1025060"
  }, {
    "type" : "WEB",
    "url" : "http://groups.google.com/group/rubyonrails-security/msg/c22ea1668c0d181c?dmode=source&output=gplain"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2011-April/057650.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2011-March/055074.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2011-March/055088.html"
  }, {
    "type" : "WEB",
    "url" : "http://weblog.rubyonrails.org/2011/2/8/csrf-protection-bypass-in-ruby-on-rails"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2011/dsa-2247"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T20:51:22Z",
    "nvd_published_at" : "2011-02-14T21:00:03Z"
  }
}