Bugtraq mailing list archives
Re: sql injection in phpbb
From: Marius Kaase <marius () kaase net>
Date: Sat, 08 Nov 2003 20:39:49 +0100
jocanor jocanor wrote:
I found a vulnerability en phpbb 2.0.5 and prior, is probably also affect 2.0.6this bug don't affect to version 2.0.7 phpbb have a list of registereds users, when you click on a memebr of this list, you are requesting data to the databasefor example: http://www.example.com/forum/profile.php?mode=viewprofile&u=2 this url show the information to the user with the uid = 2, the uid is a number assigned to users in phpbb. but it isn't secure, because if you use this url, you can inject sql comands... exploit: http://www.example.com/profile.php?mode=viewprofile&u='[sqlcode] where [sql code] represents the code may be injected.
Does not affect 2.0.6. This code prevents it: function get_userdata($user, $force_str = false) { global $db; if (intval($user) == 0 || $force_str) { $user = trim(htmlspecialchars($user)); $user = substr(str_replace("\\'", "'", $user), 0, 25); $user = str_replace("'", "\\'", $user); } else { $user = intval($user); } (Taken from: http://www.phpbb.com/phpBB/viewtopic.php?p=848495) -- Kind Regards Marius Kaase "If the Phone Doesn't Ring, It's Me"
Current thread:
- sql injection in phpbb jocanor jocanor (Nov 08)
- Re: sql injection in phpbb Marius Kaase (Nov 08)
- Directory traversal in The TelCondex SimpleWebserver 2.13.31027 Build 3289. nimber (Nov 10)
- Re: sql injection in phpbb Jort Slobbe (Nov 10)
- <Possible follow-ups>
- Re: sql injection in phpbb telli (Nov 10)
- Re: sql injection in phpbb Jayson Anderson (Nov 11)
- Re[2]: sql injection in phpbb Alexander GQ Gerasiov (Nov 11)
- Re: Fw: sql injection in phpbb Micheal Cottingham (Nov 10)