CVE-2007-5333 - Exposure of Sensitive Information to an Unauthorized Actor

Severity

50%

Complexity

99%

Confidentiality

48%

Apache Tomcat 6.0.0 through 6.0.14, 5.5.0 through 5.5.25, and 4.1.0 through 4.1.36 does not properly handle (1) double quote (") characters or (2) %5C (encoded backslash) sequences in a cookie value, which might cause sensitive information such as session IDs to be leaked to remote attackers and enable session hijacking attacks. NOTE: this issue exists because of an incomplete fix for CVE-2007-3385.

Apache Tomcat 6.0.0 through 6.0.14, 5.5.0 through 5.5.25, and 4.1.0 through 4.1.36 does not properly handle (1) double quote (") characters or (2) %5C (encoded backslash) sequences in a cookie value, which might cause sensitive information such as session IDs to be leaked to remote attackers and enable session hijacking attacks. NOTE: this issue exists because of an incomplete fix for CVE-2007-3385.

CVSS 2.0 Base Score 5. CVSS Attack Vector: network. CVSS Attack Complexity: low. CVSS Vector: (AV:N/AC:L/Au:N/C:P/I:N/A:N).

Demo Examples

Exposure of Sensitive Information to an Unauthorized Actor

CWE-200

The following code checks validity of the supplied username and password and notifies the user of a successful or failed login.


               
}
}
print "Login Successful";
print "Login Failed - incorrect password";
print "Login Failed - unknown username";

In the above code, there are different messages for when an incorrect username is supplied, versus when the username is correct but the password is wrong. This difference enables a potential attacker to understand the state of the login function, and could allow an attacker to discover a valid username by trying different values until the incorrect password message is returned. In essence, this makes it easier for an attacker to obtain half of the necessary authentication credentials.

While this type of information may be helpful to a user, it is also useful to a potential attacker. In the above example, the message for both failed cases should be the same, such as:


               
"Login Failed - incorrect username or password"

Exposure of Sensitive Information to an Unauthorized Actor

CWE-200

This code tries to open a database connection, and prints any exceptions that occur.


               
}
openDbConnection();
//print exception message that includes exception message and configuration file location
echo 'Check credentials in config file at: ', $Mysql_config_location, '\n';

If an exception occurs, the printed message exposes the location of the configuration file the script is using. An attacker can use this information to target the configuration file (perhaps exploiting a Path Traversal weakness). If the file can be read, the attacker could gain credentials for accessing the database. The attacker may also be able to replace the file with a malicious one, causing the application to use an arbitrary database.

Exposure of Sensitive Information to an Unauthorized Actor

CWE-200

In the example below, the method getUserBankAccount retrieves a bank account object from a database using the supplied username and account number to query the database. If an SQLException is raised when querying the database, an error message is created and output to a log file.


               
}
return userAccount;
}
userAccount = (BankAccount)queryResult.getObject(accountNumber);
Logger.getLogger(BankManager.class.getName()).log(Level.SEVERE, logMessage, ex);

The error message that is created includes information about the database query that may contain sensitive information about the database or query logic. In this case, the error message will expose the table name and column names used in the database. This data could be used to simplify other attacks, such as SQL injection (CWE-89) to directly access the database.

Exposure of Sensitive Information to an Unauthorized Actor

CWE-200

This code stores location information about the current user:


               
}...
Log.e("ExampleActivity", "Caught exception: " + e + " While on User:" + User.toString());

When the application encounters an exception it will write the user object to the log. Because the user object contains location information, the user's location is also written to the log.

Exposure of Sensitive Information to an Unauthorized Actor

CWE-200

The following is an actual MySQL error statement:


               
Warning: mysql_pconnect(): Access denied for user: 'root@localhost' (Using password: N1nj4) in /usr/local/www/wi-data/includes/database.inc on line 4

The error clearly exposes the database credentials.

Exposure of Sensitive Information to an Unauthorized Actor

CWE-200

This code displays some information on a web page.


               
Social Security Number: <%= ssn %></br>Credit Card Number: <%= ccn %>

The code displays a user's credit card and social security numbers, even though they aren't absolutely necessary.

Exposure of Sensitive Information to an Unauthorized Actor

CWE-200

The following program changes its behavior based on a debug flag.


               
} %>

The code writes sensitive debug information to the client browser if the "debugEnabled" flag is set to true .

Exposure of Sensitive Information to an Unauthorized Actor

CWE-200

This code uses location to determine the user's current US State location.

First the application must declare that it requires the ACCESS_FINE_LOCATION permission in the application's manifest.xml:


               
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

During execution, a call to getLastLocation() will return a location based on the application's location permissions. In this case the application has permission for the most accurate location possible:


               
deriveStateFromCoords(userCurrLocation);

While the application needs this information, it does not need to use the ACCESS_FINE_LOCATION permission, as the ACCESS_COARSE_LOCATION permission will be sufficient to identify which US state the user is in.

Overview

Type

Apache Software Foundation Tomcat

First reported 17 years ago

2008-02-12 01:00:00

Last updated 5 years ago

2019-03-25 11:29:00

Affected Software

Apache Software Foundation Tomcat 4.1.3 beta

4.1.3

Apache Software Foundation Tomcat 4.1.9 beta

4.1.9

Apache Software Foundation Tomcat 4.1.10

4.1.10

Apache Software Foundation Tomcat 4.1.12

4.1.12

Apache Software Foundation Tomcat 4.1.24

4.1.24

Apache Software Foundation Tomcat 4.1.31

4.1.31

Apache Software Foundation Tomcat 4.1.36

4.1.36

Apache Software Foundation Tomcat 5.0.1

5.0.1

Apache Software Foundation Tomcat 5.0.2

5.0.2

Apache Software Foundation Tomcat 5.0.3

5.0.3

Apache Software Foundation Tomcat 5.0.4

5.0.4

Apache Software Foundation Tomcat 5.0.5

5.0.5

Apache Software Foundation Tomcat 5.0.6

5.0.6

Apache Software Foundation Tomcat 5.0.7

5.0.7

Apache Software Foundation Tomcat 5.0.8

5.0.8

Apache Software Foundation Tomcat 5.0.9

5.0.9

Apache Software Foundation Tomcat 5.0.10

5.0.10

Apache Software Foundation Tomcat 5.0.11

5.0.11

Apache Software Foundation Tomcat 5.0.12

5.0.12

Apache Software Foundation Tomcat 5.0.13

5.0.13

Apache Software Foundation Tomcat 5.0.14

5.0.14

Apache Software Foundation Tomcat 5.0.15

5.0.15

Apache Software Foundation Tomcat 5.0.16

5.0.16

Apache Software Foundation Tomcat 5.0.19

5.0.19

Apache Software Foundation Tomcat 5.0.28

5.0.28

Apache Software Foundation Tomcat 5.0.30

5.0.30

Apache Software Foundation Tomcat 5.5.1

5.5.1

Apache Software Foundation Tomcat 5.5.2

5.5.2

Apache Software Foundation Tomcat 5.5.3

5.5.3

Apache Software Foundation Tomcat 5.5.4

5.5.4

Apache Software Foundation Tomcat 5.5.5

5.5.5

Apache Software Foundation Tomcat 5.5.6

5.5.6

Apache Software Foundation Tomcat 5.5.7

5.5.7

Apache Software Foundation Tomcat 5.5.8

5.5.8

Apache Software Foundation Tomcat 5.5.9

5.5.9

Apache Software Foundation Tomcat 5.5.10

5.5.10

Apache Software Foundation Tomcat 5.5.11

5.5.11

Apache Software Foundation Tomcat 5.5.12

5.5.12

Apache Software Foundation Tomcat 5.5.13

5.5.13

Apache Software Foundation Tomcat 5.5.14

5.5.14

Apache Software Foundation Tomcat 5.5.15

5.5.15

Apache Software Foundation Tomcat 5.5.16

5.5.16

Apache Software Foundation Tomcat 5.5.17

5.5.17

Apache Software Foundation Tomcat 5.5.18

5.5.18

Apache Software Foundation Tomcat 5.5.19

5.5.19

Apache Software Foundation Tomcat 5.5.20

5.5.20

Apache Software Foundation Tomcat 5.5.21

5.5.21

Apache Software Foundation Tomcat 5.5.22

5.5.22

Apache Software Foundation Tomcat 5.5.23

5.5.23

Apache Software Foundation Tomcat 5.5.24

5.5.24

Apache Software Foundation Tomcat 5.5.25

5.5.25

Apache Software Foundation Tomcat 6.0

6.0

Apache Software Foundation Tomcat 6.0.1

6.0.1

Apache Software Foundation Tomcat 6.0.2

6.0.2

Apache Software Foundation Tomcat 6.0.3

6.0.3

Apache Software Foundation Tomcat 6.0.4

6.0.4

Apache Software Foundation Tomcat 6.0.5

6.0.5

Apache Software Foundation Tomcat 6.0.6

6.0.6

Apache Software Foundation Tomcat 6.0.7

6.0.7

Apache Software Foundation Tomcat 6.0.8

6.0.8

Apache Software Foundation Tomcat 6.0.9

6.0.9

Apache Software Foundation Tomcat 6.0.10

6.0.10

Apache Software Foundation Tomcat 6.0.11

6.0.11

Apache Software Foundation Tomcat 6.0.12

6.0.12

Apache Software Foundation Tomcat 6.0.13

6.0.13

Apache Software Foundation Tomcat 6.0.14

6.0.14

Apache Software Foundation Tomcat 6.0.15

6.0.15

References

JVN#09470767

APPLE-SA-2008-06-30

APPLE-SA-2008-10-09

SUSE-SR:2009:004

HPSBST02955

28878

28884

28915

29711

30676

30802

32036

32222

33330

37460

44183

57126

GLSA-200804-10

3636

http://support.apple.com/kb/HT2163

http://support.apple.com/kb/HT3216

http://tomcat.apache.org/security-4.html

http://tomcat.apache.org/security-5.html

http://tomcat.apache.org/security-6.html

MDVSA-2009:018

MDVSA-2010:176

http://www.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/4.2.0.cp08/html-single/Release_Notes/index.html

20080208 [SECURITY] CVE-2007-5333: Tomcat Cookie handling vulnerabilities

20091120 VMSA-2009-0016 VMware vCenter and ESX update release and vMA patch release address multiple security issue in third party components

27706

Exploit, Patch

31681

http://www.vmware.com/security/advisories/VMSA-2008-0010.html

http://www.vmware.com/security/advisories/VMSA-2009-0016.html

ADV-2008-0488

ADV-2008-1856

ADV-2008-1981

ADV-2008-2690

ADV-2008-2780

ADV-2009-3316

http://www-01.ibm.com/support/docview.wss?uid=swg24018932

http://www-01.ibm.com/support/docview.wss?uid=swg27012047

http://www-01.ibm.com/support/docview.wss?uid=swg27012048

IZ20133

IZ20991

https://bugzilla.redhat.com/show_bug.cgi?id=532111

[tomcat-dev] 20190319 svn commit: r1855831 [22/30] - in /tomcat/site/trunk: ./ docs/ xdocs/

[tomcat-dev] 20190319 svn commit: r1855831 [21/30] - in /tomcat/site/trunk: ./ docs/ xdocs/

[tomcat-dev] 20190325 svn commit: r1856174 [20/29] - in /tomcat/site/trunk: docs/ xdocs/ xdocs/stylesheets/

[tomcat-dev] 20190325 svn commit: r1856174 [19/29] - in /tomcat/site/trunk: docs/ xdocs/ xdocs/stylesheets/

[tomcat-dev] 20200213 svn commit: r1873980 [25/34] - /tomcat/site/trunk/docs/

[tomcat-dev] 20200203 svn commit: r1873527 [22/30] - /tomcat/site/trunk/docs/

[tomcat-dev] 20200213 svn commit: r1873980 [24/34] - /tomcat/site/trunk/docs/

oval:org.mitre.oval:def:11177

FEDORA-2008-1467

FEDORA-2008-1603

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.