邪恶八进制信息安全团队技术讨论组's Archiver

EvilOctal 2005-1-4 06:37

[转载]IBProArcade SQL Injection漏洞分析

信息来源:[url]www.zone-h.org[/url]

Description:

A flaw exists in the high scores module of IbProArcade which allows malicious SQL
Code to be executed on the database the board & arcade use.

Demo: [url]http://www.ibproarcade.com/index.php?act=Arcade&do=stats&gameid=104FOO[/url]

Fix this vuln by following the following directions...

open your sources/Arcade.php file

Find this code bit:

[code] //----------------------------------------
// Show_Stats
//
// This shows the leaderboard
//
//----------------------------------------

function show_stats() {

global $ibforums, $DB, $std;[/code]


Directly under that, add..

[code]if(!is_numeric($ibforums->input['gameid']))
{
$std->Error( array( 'LEVEL' => 1, 'MSG' => 'dont_try_it') );
}[/code]


then open up your lang/en/lang_Arcade.php file scroll down to the bottom where you
will find

[code] );

?>[/code]


right above that, add this:

[code]
#security
dont_try_it => "I don't think so annie."[/code]

And you're set.

[url]http://www.securityfocus.com/archive/1/385851/2004-12-30/2005-01-05/0[/url]

页: [1]
© 1999-2008 EvilOctal Security Team