ID CVE-2011-3186
Summary CRLF injection vulnerability in actionpack/lib/action_controller/response.rb in Ruby on Rails 2.3.x before 2.3.13 allows remote attackers to inject arbitrary HTTP headers and conduct HTTP response splitting attacks via the Content-Type header.
References
Vulnerable Configurations
  • Ruby on Rails 2.3.11
    cpe:2.3:a:rubyonrails:ruby_on_rails:2.3.11
  • Ruby on Rails 2.3.12
    cpe:2.3:a:rubyonrails:ruby_on_rails:2.3.12
  • Ruby on Rails 2.3.10
    cpe:2.3:a:rubyonrails:ruby_on_rails:2.3.10
  • Ruby on Rails 2.3.3
    cpe:2.3:a:rubyonrails:ruby_on_rails:2.3.3
  • Ruby on Rails 2.3.2
    cpe:2.3:a:rubyonrails:ruby_on_rails:2.3.2
  • Ruby on Rails 2.3.9
    cpe:2.3:a:rubyonrails:ruby_on_rails:2.3.9
  • Ruby on Rails 2.3.4
    cpe:2.3:a:rubyonrails:ruby_on_rails:2.3.4
CVSS
Base: 4.3 (as of 30-08-2011 - 11:49)
Impact:
Exploitability:
CWE CWE-94
CAPEC
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Manipulating User-Controlled Variables
    This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
NONE PARTIAL NONE
nessus via4
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2011-11567.NASL
    description fixes for BZs #731436, #732156 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-07-12
    plugin id 56098
    published 2011-09-07
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=56098
    title Fedora 14 : rubygem-actionpack-2.3.8-4.fc14 (2011-11567)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_3_RUBYGEM-ACTIONMAILER-111116.NASL
    description This update of rails fixes the following security issues : CVE-2011-2930 - SQL-injection in quote_table_name function via specially crafted column names (bnc#712062) CVE-2011-2931 - Cross-Site Scripting (XSS) in the strip_tags helper (bnc#712057) CVE-2011-3186 - Response Splitting (bnc#712058) CVE-2010-3933 - Arbitrary modification of records via specially crafted form parameters (bnc#712058) CVE-2011-0446 - Cross-Site Scripting (XSS) in the mail_to helper (bnc#668817) CVE-2011-0447 - Improper validation of 'X-Requested-With' header (bnc#668817) CVE-2011-0448 - SQL-injection caused by improperly sanitized arguments to the limit function (bnc#668817) CVE-2011-0449 - Bypass of access restrictions via specially crafted action names (bnc#668817)
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 75730
    published 2014-06-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=75730
    title openSUSE Security Update : rubygem-actionmailer (openSUSE-SU-2011:1305-1)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_4_RUBYGEM-ACTIONMAILER-111116.NASL
    description This update of rails fixes the following security issues : CVE-2011-2930 - SQL-injection in quote_table_name function via specially crafted column names (bnc#712062) CVE-2011-2931 - Cross-Site Scripting (XSS) in the strip_tags helper (bnc#712057) CVE-2011-3186 - Response Splitting (bnc#712058) CVE-2010-3933 - Arbitrary modification of records via specially crafted form parameters (bnc#712058) CVE-2011-0446 - Cross-Site Scripting (XSS) in the mail_to helper (bnc#668817) CVE-2011-0447 - Improper validation of 'X-Requested-With' header (bnc#668817) CVE-2011-0448 - SQL-injection caused by improperly sanitized arguments to the limit function (bnc#668817) CVE-2011-0449 - Bypass of access restrictions via specially crafted action names (bnc#668817)
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 76016
    published 2014-06-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=76016
    title openSUSE Security Update : rubygem-actionmailer (openSUSE-SU-2011:1305-1)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201412-28.NASL
    description The remote host is affected by the vulnerability described in GLSA-201412-28 (Ruby on Rails: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in Ruby on Rails. Please review the CVE identifiers referenced below for details. Impact : A remote attacker could execute arbitrary code or cause a Denial of Service condition. Furthermore, a remote attacker may be able to execute arbitrary SQL commands, change parameter names for form inputs and make changes to arbitrary records in the system, bypass intended access restrictions, render arbitrary views, inject arbitrary web script or HTML, or conduct cross-site request forgery (CSRF) attacks. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2018-12-05
    plugin id 79981
    published 2014-12-15
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=79981
    title GLSA-201412-28 : Ruby on Rails: Multiple vulnerabilities
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-2301.NASL
    description Several vulnerabilities have been discovered in Rails, the Ruby web application framework. The Common Vulnerabilities and Exposures project identifies the following problems : - CVE-2009-4214 A cross-site scripting (XSS) vulnerability had been found in the strip_tags function. An attacker may inject non-printable characters that certain browsers will then evaluate. This vulnerability only affects the oldstable distribution (lenny). - CVE-2011-2930 A SQL injection vulnerability had been found in the quote_table_name method that could allow malicious users to inject arbitrary SQL into a query. - CVE-2011-2931 A cross-site scripting (XSS) vulnerability had been found in the strip_tags helper. An parsing error can be exploited by an attacker, who can confuse the parser and may inject HTML tags into the output document. - CVE-2011-3186 A newline (CRLF) injection vulnerability had been found in response.rb. This vulnerability allows an attacker to inject arbitrary HTTP headers and conduct HTTP response splitting attacks via the Content-Type header.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 56074
    published 2011-09-06
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=56074
    title Debian DSA-2301-2 : rails - several vulnerabilities
refmap via4
confirm
debian DSA-2301
fedora FEDORA-2011-11567
mlist
  • [oss-security] 20110817 CVE request: ruby on rails flaws (4)
  • [oss-security] 20110819 Re: CVE request: ruby on rails flaws (4)
  • [oss-security] 20110820 Re: CVE request: ruby on rails flaws (4)
  • [oss-security] 20110822 Re: CVE request: ruby on rails flaws (4)
  • [rubyonrails-security] 20110816 Response Splitting Vulnerability in Ruby on Rails
secunia 45921
Last major update 06-07-2012 - 00:00
Published 29-08-2011 - 14:55
Back to Top