CVE-2011-0447: Actionpack Actionpack Cross-Site Request Forgery Vulnerability Vulnerability
MODERATECVE-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
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.
Upgrade actionpack to 2.3.11
Upgrade actionpack to 3.0.4
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
CVE-2011-0447 Affected Actionpack Versions
2 component(s)| 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?
Which Actionpack versions are affected?
What version fixes CVE-2011-0447?
Is actionpack affected?
What CWE is associated with CVE-2011-0447?
How can I check RubyGems dependencies for CVE-2011-0447?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}