-
-
Notifications
You must be signed in to change notification settings - Fork 221
/
CVE-2015-1840.yml
36 lines (29 loc) · 1.1 KB
/
CVE-2015-1840.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
gem: jquery-ujs
cve: 2015-1840
ghsa: 4whc-pp4x-9pf3
url: https://groups.google.com/forum/#!topic/ruby-security-ann/XIZPbobuwaY
title: CSRF Vulnerability in jquery-ujs
date: 2015-06-16
description: |
In the scenario where an attacker might be able to control the href attribute
of an anchor tag or the action attribute of a form tag that will trigger a
POST action, the attacker can set the href or action to
" https://attacker.com" (note the leading space) that will be passed to
JQuery, who will see this as a same origin request, and send the user's CSRF
token to the attacker domain.
To work around this problem, change code that allows users to control the
href attribute of an anchor tag or the action attribute of a form tag to
filter the user parameters.
For example, code like this:
link_to params
to code like this:
link_to filtered_params
def filtered_params
\# Filter just the parameters that you trust
end
See also:
- http://blog.honeybadger.io/understanding-the-rails-jquery-csrf-vulnerability-cve-2015-1840/
cvss_v2: 5.0
patched_versions:
- ">= 1.0.4"