CVE-2017-1150 - Improper Privilege Management

Severity

35%

Complexity

68%

Confidentiality

48%

IBM DB2 for Linux, UNIX and Windows (includes DB2 Connect Server) 10.1, 10.5, and 11.1 could allow an authenticated attacker with specialized access to tables that they should not be permitted to view. IBM Reference #: 1999515.

IBM DB2 for Linux, UNIX and Windows (includes DB2 Connect Server) 10.1, 10.5, and 11.1 could allow an authenticated attacker with specialized access to tables that they should not be permitted to view. IBM Reference #: 1999515.

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

CVSS 2.0 Base Score 3.5. CVSS Attack Vector: network. CVSS Attack Complexity: medium. CVSS Vector: (AV:N/AC:M/Au:S/C:P/I:N/A:N).

Demo Examples

Improper Privilege Management

CWE-269

This code temporarily raises the program's privileges to allow creation of a new user folder.


               
return True
return False#avoid CWE-22 and CWE-78
lowerPrivileges()
return False

While the program only raises its privilege level to create the folder and immediately lowers it again, if the call to os.mkdir() throws an exception, the call to lowerPrivileges() will not occur. As a result, the program is indefinitely operating in a raised privilege state, possibly allowing further exploitation to occur.

Improper Privilege Management

CWE-269

Evidence of privilege change:


               
seteuid(getuid());/* do some stuff */

               
}
// privileged code goes here, for example:// nothing to return

Improper Privilege Management

CWE-269

This code intends to allow only Administrators to print debug information about a system.


               
}
ADMIN,USER,GUEST
}
}
break;
break;
System.out.println("You must be logged in to perform this command");

While the intention was to only allow Administrators to print the debug information, the code as written only excludes those the with the role of "GUEST". Someone with the role of "ADMIN" or "USER" will be allowed access, which goes against the original intent. An attacker may be able to use this debug information to craft an attack on the system.

Improper Privilege Management

CWE-269

This code allows someone with the role of "ADMIN" or "OPERATOR" to reset a user's password. The role of "OPERATOR" is intended to have less privileges than an "ADMIN", but still be able to help users with small issues such as forgotten passwords.


               
}
ADMIN,OPERATOR,USER,GUEST
}
}
}
break;
break;
break;
System.out.println("You must be logged in to perform this command");

This code does not check the role of the user whose password is being reset. It is possible for an Operator to gain Admin privileges by resetting the password of an Admin account and taking control of that account.

Overview

Type

IBM DB2

First reported 7 years ago

2017-03-08 19:59:00

Last updated 5 years ago

2019-10-03 00:03:00

Affected Software

IBM DB2 10.1

10.1

IBM DB2 Advanced Enterprise Edition 10.1

10.1

IBM DB2 Advanced Workgroup Edition 10.1

10.1

IBM DB2 Enterprise Edition 10.1

10.1

IBM DB2 Express Edition 10.1

10.1

IBM DB2 Workgroup Edition 10.1

10.1

IBM DB2 10.5

10.5

IBM DB2 Advanced Enterprise Edition 10.5

10.5

IBM DB2 Advanced Workgroup Edition 10.5

10.5

IBM DB2 Enterprise Edition 10.5

10.5

IBM DB2 Express Edition 10.5

10.5

IBM DB2 Workgroup Edition 10.5

10.5

IBM DB2 11.1

11.1

IBM DB2 11.1 Advanced Enterprise Edition

11.1

IBM DB2 11.1 Advanced Workgroup Edition

11.1

IBM DB2 11.1 Enterprise Edition

11.1

IBM DB2 11.1 Express Edition

11.1

IBM DB2 11.1 Workgroup Edition

11.1

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.