Sha256: 91f4af37f1461848eb89719e1d28017b199a8f389a5228c5bb63dd9d9d60a4f1
Contents?: true
Size: 1.1 KB
Versions: 6
Compression:
Stored size: 1.1 KB
Contents
--- gem: jquery-rails cve: 2015-1840 url: https://groups.google.com/forum/#!topic/ruby-security-ann/XIZPbobuwaY title: CSRF Vulnerability in jquery-rails 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: - ">= 4.0.4" - "~> 3.1.3"
Version data entries
6 entries across 6 versions & 2 rubygems