CVE-2011-3187
Description
The to_s method in actionpack/lib/action_dispatch/middleware/remote_ip.rb in Ruby on Rails 3.0.5 does not validate the X-Forwarded-For header in requests from IP addresses on a Class C network, which might allow remote attackers to inject arbitrary text into log files or bypass intended address parsing via a crafted header.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2011-3187
Vendor advisory: secalert@redhat.com — http://www.openwall.com/lists/oss-security/2011/08/22/5
Vendor advisory: secalert@redhat.com — http://www.openwall.com/lists/oss-security/2011/08/22/13
Vendor advisory: secalert@redhat.com — http://www.openwall.com/lists/oss-security/2011/08/20/1
Vendor advisory: secalert@redhat.com — http://www.openwall.com/lists/oss-security/2011/08/19/11
Vendor advisory: secalert@redhat.com — http://www.openwall.com/lists/oss-security/2011/08/17/1
Exploits
Exploit-DB
- EDB-35352 · remote · multiple
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | bookworm | affected | |
| debian | bullseye | affected | |
| debian | forky | affected | |
| debian | sid | affected | |
| debian | trixie | affected | |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| RubyGems | actionpack | !< 2.3.0||<>= 2.3.13 | >= 2.3.13 |
| RubyGems | actionpack | >=2.3.0,<2.3.13 | 2.3.13 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| rubyonrails | rails | 3.0.5 | |
References
- http://webservsec.blogspot.com/2011/02/ruby-on-rails-vulnerability.html
- http://archives.neohapsis.com/archives/fulldisclosure/2011-02/0337.html
- http://www.openwall.com/lists/oss-security/2011/08/17/1
- http://www.openwall.com/lists/oss-security/2011/08/19/11
- http://www.openwall.com/lists/oss-security/2011/08/20/1
- http://www.openwall.com/lists/oss-security/2011/08/22/13
- http://www.openwall.com/lists/oss-security/2011/08/22/14
- http://www.openwall.com/lists/oss-security/2011/08/22/5
- https://bugzilla.novell.com/show_bug.cgi?id=673010
- https://nvd.nist.gov/vuln/detail/CVE-2011-3187
- https://github.com/rails/rails
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2011-3187.yml
- https://web.archive.org/web/20111209181000/http://archives.neohapsis.com/archives/fulldisclosure/2011-02/0337.html
- https://security-tracker.debian.org/tracker/CVE-2011-3187
CWEs
CWE-20
Verify integrity in audit chain (admin only). AS-IS.