Lucene search
K

Gnuboard <= 4.33.02 tp.php PATH_INFO SQL Injection

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

Gnuboard 4.33.02 PATH_INFO SQL Injection Vulnerabilit

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Gnuboard <= 4.33.02 tp.php PATH_INFO SQL Injection
16 Oct 201100:00
zdt
Circl
CVE-2011-4066
28 Oct 202015:50
circl
CVE
CVE-2011-4066
4 Nov 201121:00
cve
Cvelist
CVE-2011-4066
4 Nov 201121:00
cvelist
Exploit DB
GNUBoard 4.33.02 - &#039;tp.php?PATH_INFO&#039; SQL Injection
17 Oct 201100:00
exploitdb
EUVD
EUVD-2011-4018
7 Oct 202500:30
euvd
exploitpack
GNUBoard 4.33.02 - tp.php?PATH_INFO SQL Injection
17 Oct 201100:00
exploitpack
NVD
CVE-2011-4066
4 Nov 201121:55
nvd
Packet Storm
Gnuboard 4.33.02 SQL Injection
17 Oct 201100:00
packetstorm
Prion
Sql injection
4 Nov 201121:55
prion
Rows per page

                                                # Exploit Title: Gnuboard &#60;= 4.33.02 PATH_INFO SQL INJECTION Vulnerability
# Google Dork: inurl:gnuboard4/bbs/board.php
# Date: 2011-2-14
# Author: flyh4t
# Software Link: http://sir.co.kr/main/gnuboard4/
# Version: Gnuboard &#60;= 4.33.02
# Tested on: linux+apache
# CVE : CVE-2011-4066


Gnuboard &#60;= 4.33.02 PATH_INFO SQL INJECTION Vulnerability
---------------------------------
Bug found By Flyh4t & alpha.liu
mail:
flyh4t [email protected]
alpha  [email protected]
Site:bbs.wolvez.org
---------------------------------
SIR GNUBoard(http://sir.co.kr) is a widely used bulletin board system of Korea.  
It is freely available for all platforms that supports PHP and MySQL.  
But we find a SQL INJECTION affects SIR GNUBoard version 4.33.02 
The codes can be download here
http://sir.co.kr/main/gnuboard4/
Here is the Vulnerability code in /bbs/tb.php
 
-----------------------vul code-------------------
//bbs/tb.php
$arr = explode(&#34;/&#34;, $_SERVER[PATH_INFO]);
//$_SERVER[PATH_INFO] is not affected by the magic_quotes_gpc set of php
//we can inject arbitrary sql code include single quotes through $_SERVER[PATH_INFO] 
$bo_table = $arr[1];
$wr_id = $arr[2];
$to_token = $arr[3];
//we can pass arbitrary sql code to $bo_table 
$write_table   = $g4[write_prefix] . $bo_table;
// $write_table can be injected through $bo_table
$sql = &#34; select wr_id, ca_name, wr_email from $write_table where wr_id = &#39;$wr_id&#39; &#34;;
//here $write_table lead to sql injection,and no need of  single quotes
$wr = sql_fetch($sql, FALSE);
if (!$wr[wr_id] || !($_POST[title] && $_POST[excerpt] && $_POST[url] && $_POST[blog_name])) 
{
    $tmp_dir = str_replace(&#34;/tb.php&#34;, &#34;&#34;, $_SERVER[SCRIPT_NAME]);
    header(&#34;location:$tmp_dir/board.php?bo_table=$bo_table&wr_id=$wr_id&#34;);
    exit;
}
-----------------------vul code end-------------------

-----------------------poc------------------------
bbs/tb.php/[sql]/[sql]
--------------------------------------------------

                              

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

01 Jul 2014 00:00Current
6.6Medium risk
Vulners AI Score6.6
EPSS0.00775
39