1. CVE archive
  2. 2007
  3. CVE-2007-1027

CVE-2007-1027

4.4 Medium severity CVSS v2.0 · source NVD AV:L/AC:M/Au:N/C:P/I:P/A:P 4.4 – Medium

Description

Certain setuid DB2 binaries in IBM DB2 before 9 Fix Pack 2 for Linux and Unix allow local users to overwrite arbitrary files via a symlink attack on the DB2DIAG.LOG temporary file.

Affected products

VendorProductVersionPlatform
ibm db2 9.0 –
ibm db2 9.0 –
All 366 Ibm Db2 vulnerabilities

Vulnerability type

CWE-59 Improper Link Resolution Before File Access

The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Impact on systems

ScopeImpact
Confidentiality, Integrity, Access Control Read Files or Directories, Modify Files or Directories, Bypass Protection Mechanism
An attacker may be able to traverse the file system to unintended locations and read or overwrite the contents of unexpected files. If the files are used for a security mechanism then an attacker may be able to bypass the mechanism.
Other Execute Unauthorized Code or Commands
Windows simple shortcuts, sometimes referred to as soft links, can be exploited remotely since a .LNK file can be uploaded like a normal file. This can enable remote execution.

How to prevent it

Architecture and Design · Separation of Privilege Follow the principle of least privilege when assigning access rights to entities in a software system. Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

All 1,882 CWE-59 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org