PT-2012-27: Privilege Gaining in UMI.CMS

(PT-2012-27) Positive Technologies Security Advisory
Privilege Gaining in UMI.CMS

Vulnerable software

Version: and earlier

Application link:

Severity level

Severity level: High
Impact: Administrator Privilege Gaining
Access Vector: Remote  

CVSS v2:
Base Score: 10
Vector: (AV:N/AC:L/Au:N/C:C/I:C/A:C)

CVE: not assigned

Software description

UMI.CMS is a system that allows users to manage sites.

Vulnerability description

Positive Research Center experts detected a vulnerability that exists as confirmation code (that is used to reset passwords for all accounts including administrator account) and new generated passwords are predictable.

Vulnerable code: classes/modules/users/__forget.php

$avLetters = "$#@^&!1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM";
$size = strlen($avLetters);
$npass = "";
for($i = 0; $i < $length; $i++) {
$c = rand(0, $size - 1);
$npass .= $avLetters[$c];

You need to know user login if you want to reset its password. An attacker can easily check if the login exists, if he tries to register with the login (error-login-exists error class). It is possible because UMI.CMS gets random numbers via PHP function rand, and does not initialize the random number generator via srand function called with  SEED parameter. In this case, PHP automatically calls srand function with predictable SEED based on session number that allows attackers to predict every further result of rand function call. Also in Windows this code provides only 2^15 possible values of generated tokens.

How to fix

Update your software up to the latest version.

Advisory status

16.08.2012 - Vendor is notified
17.08.2012 - Vendor gets vulnerability details
20.11.2012 - Vendor releases fixed version and details
11.02.2013 - Public disclosure


The vulnerabilities has discovered by Timur Yunusov, Positive Research Center (Positive Technologies Company)


Reports on the vulnerabilities previously discovered by Positive Research:

About Positive Technologies

Positive Technologies is among the key players in the IT security market in Russia.

The principal activities of the company include the development of integrated tools for information security monitoring (MaxPatrol); providing IT security consulting services and technical support; development of the Securitylab leading Russian information security portal.

Among the clients of Positive Technologies, there are more than 40 state enterprises, more than 50 banks and financial organizations, 20 telecommunication companies, more than 40 plant facilities, as well as IT, service and retail companies from Russia, the CIS countries, the Baltic States, China, Ecuador, Germany, Great Britain, Holland, Iran, Israel, Japan, Mexico, the Republic of South Africa, Thailand, Turkey, and the USA.

Positive Technologies is a team of highly skilled developers, advisers and experts with years of vast hands-on experience. The company specialists possess professional titles and certificates; they are the members of various international societies and are actively involved in the IT security field development.