CVE-2009-0783 - Exposure of Sensitive Information to an Unauthorized Actor

Severity

46%

Complexity

39%

Confidentiality

106%

Apache Tomcat 4.1.0 through 4.1.39, 5.5.0 through 5.5.27, and 6.0.0 through 6.0.18 permits web applications to replace an XML parser used for other web applications, which allows local users to read or modify the (1) web.xml, (2) context.xml, or (3) tld files of arbitrary web applications via a crafted application that is loaded earlier than the target application.

Apache Tomcat 4.1.0 through 4.1.39, 5.5.0 through 5.5.27, and 6.0.0 through 6.0.18 permits web applications to replace an XML parser used for other web applications, which allows local users to read or modify the (1) web.xml, (2) context.xml, or (3) tld files of arbitrary web applications via a crafted application that is loaded earlier than the target application.

CVSS 3.0 Base Score 4.2. CVSS Attack Vector: local. CVSS Attack Complexity: low. CVSS Vector: (CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L).

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

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

First reported 15 years ago

2009-06-05 16:00:00

Last updated 5 years ago

2019-10-09 22:58:00

Affected Software

Apache Software Foundation Tomcat

References

APPLE-SA-2010-03-29-1

Mailing List

SUSE-SR:2009:012

Third Party Advisory

HPSBMA02535

Third Party Advisory

HPSBUX02579

Third Party Advisory

HPSBUX02860

Third Party Advisory

35685

Vendor Advisory

35788

Vendor Advisory

37460

Vendor Advisory

42368

Vendor Advisory

263529

Third Party Advisory

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

Third Party Advisory

http://svn.apache.org/viewvc?rev=652592&view=rev

Patch

http://svn.apache.org/viewvc?rev=681156&view=rev

Patch

http://svn.apache.org/viewvc?rev=739522&view=rev

Patch

http://svn.apache.org/viewvc?rev=781542&view=rev

Patch

http://svn.apache.org/viewvc?rev=781708&view=rev

Patch

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

Patch, Vendor Advisory

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

Patch, Vendor Advisory

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

Patch, Vendor Advisory

DSA-2207

Third Party Advisory

MDVSA-2009:136

Third Party Advisory

MDVSA-2009:138

Third Party Advisory

MDVSA-2010:176

Third Party Advisory

20090604 [SECURITY] CVE-2009-0783 Apache Tomcat Information disclosure

Third Party Advisory, VDB Entry

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

Third Party Advisory, VDB Entry

35416

Third Party Advisory, VDB Entry

1022336

Third Party Advisory, VDB Entry

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

Third Party Advisory

ADV-2009-1856

Vendor Advisory

ADV-2009-3316

Vendor Advisory

ADV-2010-3056

Vendor Advisory

tomcat-xml-information-disclosure(51195)

VDB Entry

https://issues.apache.org/bugzilla/show_bug.cgi?id=29936

Issue Tracking, Patch

https://issues.apache.org/bugzilla/show_bug.cgi?id=45933

Issue Tracking

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

Vendor Advisory

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

Vendor Advisory

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

Vendor Advisory

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

Vendor Advisory

[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:10716

Tool Signature

oval:org.mitre.oval:def:18913

Tool Signature

oval:org.mitre.oval:def:6450

Tool Signature

FEDORA-2009-11374

Third Party Advisory

FEDORA-2009-11352

Third Party Advisory

FEDORA-2009-11356

Third Party Advisory

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.