CVE Vulnerabilities

CVE-2015-6660

Cross-Site Request Forgery (CSRF)

Published: Aug 24, 2015 | Modified: Dec 24, 2016
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
6.8 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM

The Form API in Drupal 6.x before 6.37 and 7.x before 7.39 does not properly validate the form token, which allows remote attackers to conduct CSRF attacks that upload files in a different users account via vectors related to file upload value callbacks.

Weakness

The web application does not, or can not, sufficiently verify whether a well-formed, valid, consistent request was intentionally provided by the user who submitted the request.

Affected Software

Name Vendor Start Version End Version
Drupal Drupal 6.0 (including) 6.0 (including)
Drupal Drupal 6.0-beta1 (including) 6.0-beta1 (including)
Drupal Drupal 6.0-beta2 (including) 6.0-beta2 (including)
Drupal Drupal 6.0-beta3 (including) 6.0-beta3 (including)
Drupal Drupal 6.0-beta4 (including) 6.0-beta4 (including)
Drupal Drupal 6.0-dev (including) 6.0-dev (including)
Drupal Drupal 6.0-rc1 (including) 6.0-rc1 (including)
Drupal Drupal 6.0-rc2 (including) 6.0-rc2 (including)
Drupal Drupal 6.0-rc3 (including) 6.0-rc3 (including)
Drupal Drupal 6.0-rc4 (including) 6.0-rc4 (including)
Drupal Drupal 6.1 (including) 6.1 (including)
Drupal Drupal 6.2 (including) 6.2 (including)
Drupal Drupal 6.3 (including) 6.3 (including)
Drupal Drupal 6.4 (including) 6.4 (including)
Drupal Drupal 6.5 (including) 6.5 (including)
Drupal Drupal 6.6 (including) 6.6 (including)
Drupal Drupal 6.7 (including) 6.7 (including)
Drupal Drupal 6.8 (including) 6.8 (including)
Drupal Drupal 6.9 (including) 6.9 (including)
Drupal Drupal 6.10 (including) 6.10 (including)
Drupal Drupal 6.11 (including) 6.11 (including)
Drupal Drupal 6.12 (including) 6.12 (including)
Drupal Drupal 6.13 (including) 6.13 (including)
Drupal Drupal 6.14 (including) 6.14 (including)
Drupal Drupal 6.15 (including) 6.15 (including)
Drupal Drupal 6.16 (including) 6.16 (including)
Drupal Drupal 6.17 (including) 6.17 (including)
Drupal Drupal 6.18 (including) 6.18 (including)
Drupal Drupal 6.19 (including) 6.19 (including)
Drupal Drupal 6.20 (including) 6.20 (including)
Drupal Drupal 6.21 (including) 6.21 (including)
Drupal Drupal 6.22 (including) 6.22 (including)
Drupal Drupal 6.23 (including) 6.23 (including)
Drupal Drupal 6.24 (including) 6.24 (including)
Drupal Drupal 6.25 (including) 6.25 (including)
Drupal Drupal 6.26 (including) 6.26 (including)
Drupal Drupal 6.27 (including) 6.27 (including)
Drupal Drupal 6.28 (including) 6.28 (including)
Drupal Drupal 6.29 (including) 6.29 (including)
Drupal Drupal 6.30 (including) 6.30 (including)
Drupal Drupal 6.31 (including) 6.31 (including)
Drupal Drupal 6.32 (including) 6.32 (including)
Drupal Drupal 6.33 (including) 6.33 (including)
Drupal Drupal 6.34 (including) 6.34 (including)
Drupal Drupal 6.35 (including) 6.35 (including)
Drupal Drupal 6.36 (including) 6.36 (including)
Drupal Drupal 7.0 (including) 7.0 (including)
Drupal Drupal 7.0-alpha1 (including) 7.0-alpha1 (including)
Drupal Drupal 7.0-alpha2 (including) 7.0-alpha2 (including)
Drupal Drupal 7.0-alpha3 (including) 7.0-alpha3 (including)
Drupal Drupal 7.0-alpha4 (including) 7.0-alpha4 (including)
Drupal Drupal 7.0-alpha5 (including) 7.0-alpha5 (including)
Drupal Drupal 7.0-alpha6 (including) 7.0-alpha6 (including)
Drupal Drupal 7.0-alpha7 (including) 7.0-alpha7 (including)
Drupal Drupal 7.0-beta1 (including) 7.0-beta1 (including)
Drupal Drupal 7.0-beta2 (including) 7.0-beta2 (including)
Drupal Drupal 7.0-beta3 (including) 7.0-beta3 (including)
Drupal Drupal 7.0-dev (including) 7.0-dev (including)
Drupal Drupal 7.0-rc1 (including) 7.0-rc1 (including)
Drupal Drupal 7.0-rc2 (including) 7.0-rc2 (including)
Drupal Drupal 7.0-rc3 (including) 7.0-rc3 (including)
Drupal Drupal 7.0-rc4 (including) 7.0-rc4 (including)
Drupal Drupal 7.1 (including) 7.1 (including)
Drupal Drupal 7.2 (including) 7.2 (including)
Drupal Drupal 7.3 (including) 7.3 (including)
Drupal Drupal 7.4 (including) 7.4 (including)
Drupal Drupal 7.5 (including) 7.5 (including)
Drupal Drupal 7.6 (including) 7.6 (including)
Drupal Drupal 7.7 (including) 7.7 (including)
Drupal Drupal 7.8 (including) 7.8 (including)
Drupal Drupal 7.9 (including) 7.9 (including)
Drupal Drupal 7.10 (including) 7.10 (including)
Drupal Drupal 7.11 (including) 7.11 (including)
Drupal Drupal 7.12 (including) 7.12 (including)
Drupal Drupal 7.13 (including) 7.13 (including)
Drupal Drupal 7.14 (including) 7.14 (including)
Drupal Drupal 7.15 (including) 7.15 (including)
Drupal Drupal 7.16 (including) 7.16 (including)
Drupal Drupal 7.17 (including) 7.17 (including)
Drupal Drupal 7.18 (including) 7.18 (including)
Drupal Drupal 7.19 (including) 7.19 (including)
Drupal Drupal 7.20 (including) 7.20 (including)
Drupal Drupal 7.21 (including) 7.21 (including)
Drupal Drupal 7.22 (including) 7.22 (including)
Drupal Drupal 7.23 (including) 7.23 (including)
Drupal Drupal 7.24 (including) 7.24 (including)
Drupal Drupal 7.25 (including) 7.25 (including)
Drupal Drupal 7.26 (including) 7.26 (including)
Drupal Drupal 7.27 (including) 7.27 (including)
Drupal Drupal 7.28 (including) 7.28 (including)
Drupal Drupal 7.29 (including) 7.29 (including)
Drupal Drupal 7.30 (including) 7.30 (including)
Drupal Drupal 7.33 (including) 7.33 (including)
Drupal Drupal 7.34 (including) 7.34 (including)
Drupal Drupal 7.35 (including) 7.35 (including)
Drupal Drupal 7.36 (including) 7.36 (including)
Drupal Drupal 7.37 (including) 7.37 (including)
Drupal Drupal 7.38 (including) 7.38 (including)
Drupal Drupal 7.x-dev (including) 7.x-dev (including)
Drupal6 Ubuntu precise *
Drupal6 Ubuntu upstream *
Drupal7 Ubuntu artful *
Drupal7 Ubuntu esm-infra-legacy/trusty *
Drupal7 Ubuntu precise *
Drupal7 Ubuntu trusty *
Drupal7 Ubuntu trusty/esm *
Drupal7 Ubuntu upstream *
Drupal7 Ubuntu vivid *
Drupal7 Ubuntu wily *
Drupal7 Ubuntu yakkety *
Drupal7 Ubuntu zesty *

Potential Mitigations

  • Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
  • For example, use anti-CSRF packages such as the OWASP CSRFGuard. [REF-330]
  • Another example is the ESAPI Session Management control, which includes a component for CSRF. [REF-45]
  • Use the “double-submitted cookie” method as described by Felten and Zeller:
  • When a user visits a site, the site should generate a pseudorandom value and set it as a cookie on the user’s machine. The site should require every form submission to include this value as a form value and also as a cookie value. When a POST request is sent to the site, the request should only be considered valid if the form value and the cookie value are the same.
  • Because of the same-origin policy, an attacker cannot read or modify the value stored in the cookie. To successfully submit a form on behalf of the user, the attacker would have to correctly guess the pseudorandom value. If the pseudorandom value is cryptographically strong, this will be prohibitively difficult.
  • This technique requires Javascript, so it may not work for browsers that have Javascript disabled. [REF-331]

References