CVE-2015-1840
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2015-1840
Vendor advisory: secalert@redhat.com — https://groups.google.com/forum/message/raw?msg=rubyonrails-security/XIZPbobuwaY/fqnzzpuOlA4J
Vendor advisory: secalert@redhat.com — https://github.com/rails/jquery-ujs/blob/master/CHANGELOG.md
Vendor advisory: secalert@redhat.com — https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| suse | 13.1 | affected | |
| suse | 13.2 | affected | |
| fedora | 21 | affected | |
| fedora | 22 | affected | |
| debian | bookworm | fixed | 4.0.4-1 |
| debian | bullseye | fixed | 4.0.4-1 |
| debian | forky | fixed | 4.0.4-1 |
| debian | sid | fixed | 4.0.4-1 |
| debian | trixie | fixed | 4.0.4-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| RubyGems | jquery-rails | <>= 4.0.4 | >= 4.0.4 |
| RubyGems | jquery-ujs | <>= 1.0.4 | >= 1.0.4 |
| RubyGems | jquery-rails | <3.1.3 | 3.1.3 |
| RubyGems | jquery-rails | >=4.0.0,<4.0.4 | 4.0.4 |
| RubyGems | jquery-ujs | <1.0.4 | 1.0.4 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| rubyonrails | jquery-rails | {"endIncluding":"3.1.2"} | |
| rubyonrails | jquery-rails | 4.0.0 | |
| rubyonrails | jquery-rails | 4.0.1 | |
| rubyonrails | jquery-ujs | {"endIncluding":"1.0.3"} | |
References
- https://groups.google.com/forum/#!topic/ruby-security-ann/XIZPbobuwaY
- http://lists.fedoraproject.org/pipermail/package-announce/2015-June/160906.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-June/161043.html
- http://lists.opensuse.org/opensuse-updates/2015-07/msg00041.html
- http://openwall.com/lists/oss-security/2015/06/16/15
- http://www.securityfocus.com/bid/75239
- https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md
- https://github.com/rails/jquery-ujs/blob/master/CHANGELOG.md
- https://groups.google.com/forum/message/raw?msg=rubyonrails-security/XIZPbobuwaY/fqnzzpuOlA4J
- https://nvd.nist.gov/vuln/detail/CVE-2015-1840
- https://github.com/advisories/GHSA-4whc-pp4x-9pf3
- https://github.com/rails/jquery-rails
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-rails/CVE-2015-1840.yml
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/jquery-ujs/CVE-2015-1840.yml
- https://web.archive.org/web/20200228084945/http://www.securityfocus.com/bid/75239
- https://security-tracker.debian.org/tracker/CVE-2015-1840
CWEs
CWE-200
Verify integrity in audit chain (admin only). AS-IS.