Lucene search

K
htbridgeHigh-Tech BridgeHTB23076
HistoryFeb 22, 2012 - 12:00 a.m.

Multiple vulnerabilities in Elefant CMS

2012-02-2200:00:00
High-Tech Bridge
www.htbridge.com
37

0.003 Low

EPSS

Percentile

65.9%

High-Tech Bridge SA Security Research Lab has discovered multiple vulnerabilities in Elefant CMS, which can be exploited to perform SQL Injection and Cross-Site Scripting (XSS) attacks.

  1. Cross-Site Scripting (XSS) in Elefant CMS: CVE-2012-1296
    1.1 Input passed via the “title” and “body” GET parameters to /admin/preview is not properly sanitised before being returned to the user.
    This can be exploited to execute arbitrary HTML and script code in a user’s browser session in context of affected website.
    The following PoC (Proof of Concept) demonstrate the vulnerability:
    <form action=“http://[host]/admin/preview” method=“post”>
    <input type=“hidden” name=“title” value=“<script>alert(document.cookie);</script>”>
    <input type=“hidden” name=“body” value=“<script>alert(document.cookie);</script>”>
    <input type=“submit” value=“submit” id=“btn”>
    </form>
  2. SQL Injection in Elefant CMS: CVE-2012-1295
    2.1 Input passed via the “offset” GET parameter to /admin/pages, /admin/versions, /user/admin, /blocks/admin, /blog/admin is not properly sanitised before being used in SQL query.
    This can be exploited to alter SQL queries.
    The vulnerability usage is limited to the “INTO FILE” clause. This vulnerability requires administrative privileges, however can be exploited via the CSRF technique. Remote attacker should make logged-in website administrator open the following URL:
    http://[host]/user/admin?offset=2 INTO OUTFILE ‘…/…/…/…/path/to/site/files/file.php’
    Prior to this, the attacker should create a new user account with “<? include($url); ?>” (or any other) name. Then the attacker should also calculate the “offset” parameter in the URL above in such a manner that the newly created user would be displayed in the users list.
    Depending on MySQL and PHP configurations, as well as file system permissions this PoC should create arbitrary PHP file within the web root.
CPENameOperatorVersion
elefant cmsle1.1.3

0.003 Low

EPSS

Percentile

65.9%