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

Severity

54%

Complexity

49%

Confidentiality

115%

The page cache feature in Mozilla Firefox before 1.5.0.10 and 2.x before 2.0.0.2, and SeaMonkey before 1.0.8 can generate hash collisions that cause page data to be appended to the wrong page cache, which allows remote attackers to obtain sensitive information or enable further attack vectors when the target page is reloaded from the cache.

The page cache feature in Mozilla Firefox before 1.5.0.10 and 2.x before 2.0.0.2, and SeaMonkey before 1.0.8 can generate hash collisions that cause page data to be appended to the wrong page cache, which allows remote attackers to obtain sensitive information or enable further attack vectors when the target page is reloaded from the cache.

CVSS 2.0 Base Score 5.4. CVSS Attack Vector: network. CVSS Attack Complexity: high. CVSS Vector: (AV:N/AC:H/Au:N/C:C/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

First reported 17 years ago

2007-02-26 20:28:00

Last updated 5 years ago

2019-10-09 22:52:00

Affected Software

Mozilla Firefox

Mozilla SeaMonkey

Canonical Ubuntu Linux 5.10

5.10

Canonical Ubuntu Linux 6.06 LTS (Long-Term Support)

6.06

Canonical Ubuntu Linux 6.10

6.10

Debian Debian Linux 3.1

3.1

References

20070202-01-P

Broken Link

20070301-01-P

Broken Link

FEDORA-2007-281

Broken Link

FEDORA-2007-293

Broken Link

HPSBUX02153

Broken Link

SUSE-SA:2007:019

Broken Link

RHSA-2007:0077

Third Party Advisory

24205

Third Party Advisory

24238

Third Party Advisory

24287

Third Party Advisory

24290

Third Party Advisory

24293

Third Party Advisory

24320

Third Party Advisory

24328

Third Party Advisory

24333

Third Party Advisory

24342

Third Party Advisory

24343

Third Party Advisory

24384

Third Party Advisory

24393

Third Party Advisory

24395

Third Party Advisory

24437

Third Party Advisory

24455

Third Party Advisory

24457

Third Party Advisory

24650

Third Party Advisory

25588

Third Party Advisory

GLSA-200703-04

Third Party Advisory

1017699

Third Party Advisory, VDB Entry

SSA:2007-066-05

Mailing List, Third Party Advisory

SSA:2007-066-03

Mailing List, Third Party Advisory

DSA-1336

Third Party Advisory

GLSA-200703-08

Third Party Advisory

MDKSA-2007:050

Third Party Advisory

http://www.mozilla.org/security/announce/2007/mfsa2007-03.html

Patch, Vendor Advisory

SUSE-SA:2007:022

Broken Link

32110

Broken Link

RHSA-2007:0078

Third Party Advisory

RHSA-2007:0079

Third Party Advisory

RHSA-2007:0097

Third Party Advisory

RHSA-2007:0108

Third Party Advisory

20070226 rPSA-2007-0040-1 firefox

Third Party Advisory, VDB Entry

20070303 rPSA-2007-0040-3 firefox thunderbird

Third Party Advisory, VDB Entry

22694

Third Party Advisory, VDB Entry

USN-428-1

Third Party Advisory

ADV-2007-0718

Third Party Advisory

ADV-2008-0083

Third Party Advisory

https://bugzilla.mozilla.org/show_bug.cgi?id=347852

Issue Tracking

mozilla-diskcache-information-disclosure(32671)

Third Party Advisory, VDB Entry

https://issues.rpath.com/browse/RPL-1081

Broken Link

https://issues.rpath.com/browse/RPL-1103

Broken Link

oval:org.mitre.oval:def:9151

Broken Link

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.