Shooter-Szene.de
Zurück zur Vollversion des Threads


English: Discussions Cod4 - Fix for players-detail.php SQL Vulnerability

deltaray - Jul 15, 2008 - 04:20 PM
Post subject: Fix for players-detail.php SQL Vulnerability
A few moments ago this was brought to my attention. A mistake in the validation code of the input Parameters in the file players-detail.php made an SQL Injection bug possible.

Details about this security flaw can be found here:
http://www.securityfocus.com/bid/30212/info
(DO NOT USE THE FIXED RECOMMEND IN THE EXPLOIT THERE, IT WILL BREAK FUNCTIONALITY HALF OF THE PLAYER DETAILS)

Affected Versions are:
UltraStats 0.2.136
UltraStats 0.2.140
UltraStats 0.2.142

In order to fix this issue manually please process these steps, or replace your players-detail.php with the attached one here. Please spread this information to all admins you know, who use UltraStats.

1. Open players-detail.php and search for:
Code:
         is_numeric($content['playerguid']) &&
         ( $content['playerguid'] > 4294967296 && $content['playerguid'] <= 0 )


2. Replace with this code:
Code:
         !is_numeric($content['playerguid'])
            ||
         ( $content['playerguid'] > 4294967296 && $content['playerguid'] <= 0 )


ATTENTION: I will update the UltraStats setup to a newer version in the next few days, as a few other things will be fixed along with this release.

HarryRag - Jul 15, 2008 - 06:07 PM
Post subject: Fix for players-detail.php SQL Vulnerability
thnx for the fast fix DeltaRay
eagleeye - Jul 16, 2008 - 06:12 PM
Post subject: Fix for players-detail.php SQL Vulnerability
tnx for the support, will pass the word

in 0.2.142 it's line 41 of the file.

Hunter - Jul 17, 2008 - 01:02 AM
Post subject: Fix for players-detail.php SQL Vulnerability
Ok nice, no not nice but ........

All times are GMT
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits