CVE Vulnerabilities

CVE-2012-1297

Cross-Site Request Forgery (CSRF)

Published: Mar 19, 2012 | Modified: Jun 11, 2019
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

Multiple cross-site request forgery (CSRF) vulnerabilities in main.php in Contao (formerly TYPOlight) 2.11.0 and earlier allow remote attackers to hijack the authentication of administrators for requests that (1) delete users via a delete action in the user module, (2) delete news via a delete action in the news module, or (3) delete newsletters via a delete action in the newsletters module.

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
Contao_cms Contao * 2.11.0 (including)
Contao_cms Contao 2.0 (including) 2.0 (including)
Contao_cms Contao 2.0-beta-rc1 (including) 2.0-beta-rc1 (including)
Contao_cms Contao 2.0-beta-rc2 (including) 2.0-beta-rc2 (including)
Contao_cms Contao 2.0-beta-rc3 (including) 2.0-beta-rc3 (including)
Contao_cms Contao 2.1.0 (including) 2.1.0 (including)
Contao_cms Contao 2.1.1 (including) 2.1.1 (including)
Contao_cms Contao 2.1.2 (including) 2.1.2 (including)
Contao_cms Contao 2.1.3 (including) 2.1.3 (including)
Contao_cms Contao 2.1.4 (including) 2.1.4 (including)
Contao_cms Contao 2.1.5 (including) 2.1.5 (including)
Contao_cms Contao 2.1.6 (including) 2.1.6 (including)
Contao_cms Contao 2.1.7 (including) 2.1.7 (including)
Contao_cms Contao 2.1.8 (including) 2.1.8 (including)
Contao_cms Contao 2.1.9 (including) 2.1.9 (including)
Contao_cms Contao 2.1.10 (including) 2.1.10 (including)
Contao_cms Contao 2.1.11 (including) 2.1.11 (including)
Contao_cms Contao 2.1.12 (including) 2.1.12 (including)
Contao_cms Contao 2.1.13 (including) 2.1.13 (including)
Contao_cms Contao 2.1.14 (including) 2.1.14 (including)
Contao_cms Contao 2.1.15 (including) 2.1.15 (including)
Contao_cms Contao 2.1.16 (including) 2.1.16 (including)
Contao_cms Contao 2.1.17 (including) 2.1.17 (including)
Contao_cms Contao 2.1.18 (including) 2.1.18 (including)
Contao_cms Contao 2.1.19 (including) 2.1.19 (including)
Contao_cms Contao 2.1.20 (including) 2.1.20 (including)
Contao_cms Contao 2.2.0 (including) 2.2.0 (including)
Contao_cms Contao 2.2.1 (including) 2.2.1 (including)
Contao_cms Contao 2.2.2 (including) 2.2.2 (including)
Contao_cms Contao 2.2.3 (including) 2.2.3 (including)
Contao_cms Contao 2.2.4 (including) 2.2.4 (including)
Contao_cms Contao 2.2.5 (including) 2.2.5 (including)
Contao_cms Contao 2.2.6 (including) 2.2.6 (including)
Contao_cms Contao 2.2.7 (including) 2.2.7 (including)
Contao_cms Contao 2.2.8 (including) 2.2.8 (including)
Contao_cms Contao 2.2.9 (including) 2.2.9 (including)
Contao_cms Contao 2.2.10 (including) 2.2.10 (including)
Contao_cms Contao 2.2.11 (including) 2.2.11 (including)
Contao_cms Contao 2.2.12 (including) 2.2.12 (including)
Contao_cms Contao 2.3.0 (including) 2.3.0 (including)
Contao_cms Contao 2.3.1 (including) 2.3.1 (including)
Contao_cms Contao 2.3.2 (including) 2.3.2 (including)
Contao_cms Contao 2.3.3 (including) 2.3.3 (including)
Contao_cms Contao 2.3.4 (including) 2.3.4 (including)
Contao_cms Contao 2.4.0 (including) 2.4.0 (including)
Contao_cms Contao 2.4.0-beta (including) 2.4.0-beta (including)
Contao_cms Contao 2.4.1 (including) 2.4.1 (including)
Contao_cms Contao 2.4.2 (including) 2.4.2 (including)
Contao_cms Contao 2.4.3 (including) 2.4.3 (including)
Contao_cms Contao 2.4.4 (including) 2.4.4 (including)
Contao_cms Contao 2.4.5 (including) 2.4.5 (including)
Contao_cms Contao 2.4.6 (including) 2.4.6 (including)
Contao_cms Contao 2.4.7 (including) 2.4.7 (including)
Contao_cms Contao 2.5.0 (including) 2.5.0 (including)
Contao_cms Contao 2.5.0-beta (including) 2.5.0-beta (including)
Contao_cms Contao 2.5.0-beta-rc2 (including) 2.5.0-beta-rc2 (including)
Contao_cms Contao 2.5.1 (including) 2.5.1 (including)
Contao_cms Contao 2.5.2 (including) 2.5.2 (including)
Contao_cms Contao 2.5.3 (including) 2.5.3 (including)
Contao_cms Contao 2.5.4 (including) 2.5.4 (including)
Contao_cms Contao 2.5.5 (including) 2.5.5 (including)
Contao_cms Contao 2.5.6 (including) 2.5.6 (including)
Contao_cms Contao 2.5.7 (including) 2.5.7 (including)
Contao_cms Contao 2.5.8 (including) 2.5.8 (including)
Contao_cms Contao 2.5.9 (including) 2.5.9 (including)
Contao_cms Contao 2.6.0 (including) 2.6.0 (including)
Contao_cms Contao 2.6.0-beta (including) 2.6.0-beta (including)
Contao_cms Contao 2.6.0-beta2 (including) 2.6.0-beta2 (including)
Contao_cms Contao 2.6.1 (including) 2.6.1 (including)
Contao_cms Contao 2.6.2 (including) 2.6.2 (including)
Contao_cms Contao 2.6.3 (including) 2.6.3 (including)
Contao_cms Contao 2.6.4 (including) 2.6.4 (including)
Contao_cms Contao 2.6.5 (including) 2.6.5 (including)
Contao_cms Contao 2.6.6 (including) 2.6.6 (including)
Contao_cms Contao 2.6.7 (including) 2.6.7 (including)
Contao_cms Contao 2.6.8 (including) 2.6.8 (including)
Contao_cms Contao 2.7.0 (including) 2.7.0 (including)
Contao_cms Contao 2.7.0-rc1 (including) 2.7.0-rc1 (including)
Contao_cms Contao 2.7.0-rc2 (including) 2.7.0-rc2 (including)
Contao_cms Contao 2.7.1 (including) 2.7.1 (including)
Contao_cms Contao 2.7.2 (including) 2.7.2 (including)
Contao_cms Contao 2.7.3 (including) 2.7.3 (including)
Contao_cms Contao 2.7.4 (including) 2.7.4 (including)
Contao_cms Contao 2.7.5 (including) 2.7.5 (including)
Contao_cms Contao 2.7.6 (including) 2.7.6 (including)
Contao_cms Contao 2.7.7 (including) 2.7.7 (including)
Contao_cms Contao 2.8.0 (including) 2.8.0 (including)
Contao_cms Contao 2.8.0-rc1 (including) 2.8.0-rc1 (including)
Contao_cms Contao 2.8.0-rc2 (including) 2.8.0-rc2 (including)
Contao_cms Contao 2.8.1 (including) 2.8.1 (including)
Contao_cms Contao 2.8.2 (including) 2.8.2 (including)
Contao_cms Contao 2.8.3 (including) 2.8.3 (including)
Contao_cms Contao 2.8.4 (including) 2.8.4 (including)
Contao_cms Contao 2.9.0 (including) 2.9.0 (including)
Contao_cms Contao 2.9.0-beta1 (including) 2.9.0-beta1 (including)
Contao_cms Contao 2.9.0-rc1 (including) 2.9.0-rc1 (including)
Contao_cms Contao 2.9.1 (including) 2.9.1 (including)
Contao_cms Contao 2.9.2 (including) 2.9.2 (including)
Contao_cms Contao 2.9.3 (including) 2.9.3 (including)
Contao_cms Contao 2.9.4 (including) 2.9.4 (including)
Contao_cms Contao 2.9.5 (including) 2.9.5 (including)
Contao_cms Contao 2.10.-beta (including) 2.10.-beta (including)
Contao_cms Contao 2.10.0 (including) 2.10.0 (including)
Contao_cms Contao 2.10.0-rc1 (including) 2.10.0-rc1 (including)
Contao_cms Contao 2.10.1 (including) 2.10.1 (including)
Contao_cms Contao 2.10.2 (including) 2.10.2 (including)
Contao_cms Contao 2.10.3 (including) 2.10.3 (including)
Contao_cms Contao 2.10.4 (including) 2.10.4 (including)

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