1. CVE archive
  2. 2015
  3. CVE-2015-1840

CVE-2015-1840

5 Medium severity CVSS v2.0 · source NVD AV:N/AC:L/Au:N/C:P/I:N/A:N 5 – Medium

Description

jquery_ujs.js in jquery-rails before 3.1.3 and 4.x before 4.0.4 and rails.js in jquery-ujs before 1.0.4, as used with Ruby on Rails 3.x and 4.x, allow remote attackers to bypass the Same Origin Policy, and trigger transmission of a CSRF token to a different-domain web server, via a leading space character in a URL within an attribute value.

Affected products

VendorProductVersionPlatform
fedoraproject fedora 21 –
fedoraproject fedora 22 –
opensuse opensuse 13.1 –
opensuse opensuse 13.2 –
rubyonrails jquery-rails <= 3.1.2 –
rubyonrails jquery-rails 4.0.0 –
rubyonrails jquery-rails 4.0.1 –
rubyonrails jquery-ujs <= 1.0.3 –

Vulnerability type

CWE-200 Exposure of Sensitive Information to an Unauthorized Actor

The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.

Impact on systems

ScopeImpact
Confidentiality Read Application Data

How to prevent it

Architecture and Design · Separation of Privilege Compartmentalize the system to have safe areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area. Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.

All 11,927 CWE-200 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org