CVE Vulnerabilities

CVE-2007-6752

Cross-Site Request Forgery (CSRF)

Published: Mar 28, 2012 | Modified: Aug 07, 2024
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
LOW

Cross-site request forgery (CSRF) vulnerability in Drupal 7.12 and earlier allows remote attackers to hijack the authentication of arbitrary users for requests that end a session via the user/logout URI. NOTE: the vendor disputes the significance of this issue, by considering the security benefit against platform complexity and performance impact and concluding that a change to the logout behavior is not planned because for most sites it is not worth the trade-off.

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 * 7.12 (including)
Drupal Drupal 4.0 (including) 4.0 (including)
Drupal Drupal 4.0.0 (including) 4.0.0 (including)
Drupal Drupal 4.1.0 (including) 4.1.0 (including)
Drupal Drupal 4.2.0_rc (including) 4.2.0_rc (including)
Drupal Drupal 4.4 (including) 4.4 (including)
Drupal Drupal 4.4.0 (including) 4.4.0 (including)
Drupal Drupal 4.4.1 (including) 4.4.1 (including)
Drupal Drupal 4.4.2 (including) 4.4.2 (including)
Drupal Drupal 4.4.3 (including) 4.4.3 (including)
Drupal Drupal 4.5 (including) 4.5 (including)
Drupal Drupal 4.5.0 (including) 4.5.0 (including)
Drupal Drupal 4.5.1 (including) 4.5.1 (including)
Drupal Drupal 4.5.2 (including) 4.5.2 (including)
Drupal Drupal 4.5.3 (including) 4.5.3 (including)
Drupal Drupal 4.5.4 (including) 4.5.4 (including)
Drupal Drupal 4.5.5 (including) 4.5.5 (including)
Drupal Drupal 4.5.6 (including) 4.5.6 (including)
Drupal Drupal 4.5.7 (including) 4.5.7 (including)
Drupal Drupal 4.5.8 (including) 4.5.8 (including)
Drupal Drupal 4.6 (including) 4.6 (including)
Drupal Drupal 4.6.0 (including) 4.6.0 (including)
Drupal Drupal 4.6.1 (including) 4.6.1 (including)
Drupal Drupal 4.6.2 (including) 4.6.2 (including)
Drupal Drupal 4.6.3 (including) 4.6.3 (including)
Drupal Drupal 4.6.4 (including) 4.6.4 (including)
Drupal Drupal 4.6.5 (including) 4.6.5 (including)
Drupal Drupal 4.6.6 (including) 4.6.6 (including)
Drupal Drupal 4.6.7 (including) 4.6.7 (including)
Drupal Drupal 4.6.8 (including) 4.6.8 (including)
Drupal Drupal 4.6.9 (including) 4.6.9 (including)
Drupal Drupal 4.6.10 (including) 4.6.10 (including)
Drupal Drupal 4.6.11 (including) 4.6.11 (including)
Drupal Drupal 4.7 (including) 4.7 (including)
Drupal Drupal 4.7.0 (including) 4.7.0 (including)
Drupal Drupal 4.7.1 (including) 4.7.1 (including)
Drupal Drupal 4.7.2 (including) 4.7.2 (including)
Drupal Drupal 4.7.3 (including) 4.7.3 (including)
Drupal Drupal 4.7.4 (including) 4.7.4 (including)
Drupal Drupal 4.7.5 (including) 4.7.5 (including)
Drupal Drupal 4.7.6 (including) 4.7.6 (including)
Drupal Drupal 4.7.7 (including) 4.7.7 (including)
Drupal Drupal 4.7.8 (including) 4.7.8 (including)
Drupal Drupal 4.7.9 (including) 4.7.9 (including)
Drupal Drupal 4.7.10 (including) 4.7.10 (including)
Drupal Drupal 4.7_rev_1.2 (including) 4.7_rev_1.2 (including)
Drupal Drupal 4.7_rev_1.15 (including) 4.7_rev_1.15 (including)
Drupal Drupal 4.7_rev1.15 (including) 4.7_rev1.15 (including)
Drupal Drupal 4.7_revision_1.2 (including) 4.7_revision_1.2 (including)
Drupal Drupal 5.0 (including) 5.0 (including)
Drupal Drupal 5.0-beta1 (including) 5.0-beta1 (including)
Drupal Drupal 5.0-beta2 (including) 5.0-beta2 (including)
Drupal Drupal 5.0-dev (including) 5.0-dev (including)
Drupal Drupal 5.0-rc1 (including) 5.0-rc1 (including)
Drupal Drupal 5.0-rc2 (including) 5.0-rc2 (including)
Drupal Drupal 5.1 (including) 5.1 (including)
Drupal Drupal 5.1_rev1.1 (including) 5.1_rev1.1 (including)
Drupal Drupal 5.2 (including) 5.2 (including)
Drupal Drupal 5.3 (including) 5.3 (including)
Drupal Drupal 5.4 (including) 5.4 (including)
Drupal Drupal 5.5 (including) 5.5 (including)
Drupal Drupal 5.5. (including) 5.5. (including)
Drupal Drupal 5.6 (including) 5.6 (including)
Drupal Drupal 5.7 (including) 5.7 (including)
Drupal Drupal 5.8 (including) 5.8 (including)
Drupal Drupal 5.9 (including) 5.9 (including)
Drupal Drupal 5.10 (including) 5.10 (including)
Drupal Drupal 5.11 (including) 5.11 (including)
Drupal Drupal 5.12 (including) 5.12 (including)
Drupal Drupal 5.13 (including) 5.13 (including)
Drupal Drupal 5.14 (including) 5.14 (including)
Drupal Drupal 5.15 (including) 5.15 (including)
Drupal Drupal 5.16 (including) 5.16 (including)
Drupal Drupal 5.17 (including) 5.17 (including)
Drupal Drupal 5.18 (including) 5.18 (including)
Drupal Drupal 5.19 (including) 5.19 (including)
Drupal Drupal 5.20 (including) 5.20 (including)
Drupal Drupal 5.21 (including) 5.21 (including)
Drupal Drupal 5.22 (including) 5.22 (including)
Drupal Drupal 5.23 (including) 5.23 (including)
Drupal Drupal 5.x-dev (including) 5.x-dev (including)
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-rc-1 (including) 6.0-rc-1 (including)
Drupal Drupal 6.0-rc-2 (including) 6.0-rc-2 (including)
Drupal Drupal 6.0-rc-3 (including) 6.0-rc-3 (including)
Drupal Drupal 6.0-rc-4 (including) 6.0-rc-4 (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.x-dev (including) 6.x-dev (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.x-dev (including) 7.x-dev (including)
Drupal6 Ubuntu lucid *
Drupal6 Ubuntu maverick *
Drupal6 Ubuntu natty *
Drupal6 Ubuntu oneiric *
Drupal6 Ubuntu precise *
Drupal6 Ubuntu quantal *
Drupal6 Ubuntu raring *
Drupal7 Ubuntu artful *
Drupal7 Ubuntu esm-infra-legacy/trusty *
Drupal7 Ubuntu precise *
Drupal7 Ubuntu quantal *
Drupal7 Ubuntu raring *
Drupal7 Ubuntu saucy *
Drupal7 Ubuntu trusty *
Drupal7 Ubuntu trusty/esm *
Drupal7 Ubuntu utopic *
Drupal7 Ubuntu vivid *
Drupal7 Ubuntu wily *
Drupal7 Ubuntu xenial *
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