Date: 2 Jan 2005 18:06:06 +0200
From: SecuriTeam <support@securiteam.com.>
To: [email protected]Subject: [UNIX] SQL Injection Vulnerability in IBProArcade (Arcade.php)
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
The SecuriTeam alerts list - Free, Accurate, Independent.
Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html
- - - - - - - - -
SQL Injection Vulnerability in IBProArcade (Arcade.php)
------------------------------------------------------------------------
SUMMARY
<http://www.ibproarcade.com/> IbProArcade is an online scoreboard powered
by Invision Board.
A flaw exists in the high scores module of IbProArcade that allows
malicious SQL Code to be executed on the database.
DETAILS
Vulnerable Systems:
* IBProArcade Version 2.5.1 and lower
Vulnerable Code:
In sources/Arcade.php:
//----------------------------------------
// Show_Stats
//
// This shows the leaderboard
//
//----------------------------------------
function show_stats() {
global $ibforums, $DB, $std;
The gameid parameter is being used in database queries without proper
filtering.
Unofficial Patch:
In sources/Arcade.php under the line: global $ibforums, $DB, $std;
Add:
if(!is_numeric($ibforums->input['gameid']))
{
$std->Error( array( 'LEVEL' => 1, 'MSG' => 'dont_try_it')
);
}
To define the message 'dont_try_it', open lang/en/lang_Arcade.php and add:
#security
dont_try_it => "I don't think so annie."
Example:
http://site/index.php?act=Arcade&do=stats&gameid='
ADDITIONAL INFORMATION
The information has been provided by <mailto:mike@ub3r.net.> mike bailey.
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: [email protected]
In order to subscribe to the mailing list, simply forward this email to: [email protected]
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.