Apache Tomcat 7.0.x < 7.0.32 CSRF Filter Bypass

This script is Copyright (C) 2012-2013 Tenable Network Security, Inc.


Synopsis :

The remote Apache Tomcat service may be affected by a security bypass
vulnerability.

Description :

According to its self-reported version number, the instance of Apache
Tomcat 7.0 listening on the remote host is earlier than Tomcat 7.0.32
and, therefore, may be affected by a security bypass vulnerability.

An error exists in the file 'filters/CsrfPreventionFilter.java' that
can allow cross-site request forgery (CSRF) attacks to bypass the
filtering. This can allow access to protected resources without a
session identifier.

Note that Nessus did not actually test for the flaw but instead has
relied on the version in Tomcat's banner or error page so these may be
false positives.

See also :

http://tomcat.apache.org/security-7.html#Fixed_in_Apache_Tomcat_7.0.32
http://seclists.org/fulldisclosure/2012/Dec/74

Solution :

Update Apache Tomcat to version 7.0.32 or later.

Risk factor :

Medium / CVSS Base Score : 6.8
(CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P)
CVSS Temporal Score : 5.9
(CVSS2#E:ND/RL:OF/RC:C)
Public Exploit Available : true

Family: Web Servers

Nessus Plugin ID: 63200 ()

Bugtraq ID: 56814

CVE ID: CVE-2012-4431