Despre articulul: phpBB 2.0.13 exploit

Discuţii libere referitoare la forumul phpBB şi comunitatea phpBB Romania.
Reguli forum
Aveti o problema si vreti sa primiti ajutor? Click aici ! Nu uitati si de regulamentul forumului !
seven
Utilizator înregistrat
Mesaje: 93
Membru din: 12-Feb-2003, 11:49:36
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Brasov
Contact:

Despre articulul: phpBB 2.0.13 exploit

Mesaj de seven »

Referitor la viewtopic.php?p=14996#14996
In sectiunea de stiri din phpbb.com nu gasesc nimic despre acest exploit.
Cat de "oficiale" sau adevarate sunt cele de la: http://www.spywire.net/forum/viewtopic.php?t=781

THX! :)
Avatar utilizator
dorin
Fost coleg
Mesaje: 4620
Membru din: 24-Iun-2003, 23:23:29
Versiune: 3.1.10
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Mediu
Nivel php: Puţin experimentat
Contact:

Mesaj de dorin »

oficiale :lol: :?:

de ce trebuie sa fie oficiale, pentru ca exploit-ul exista :?: :wink:
seven
Utilizator înregistrat
Mesaje: 93
Membru din: 12-Feb-2003, 11:49:36
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Brasov
Contact:

Mesaj de seven »

Sunt pe phpbb.ro, nu?
Pe phpbb.com nu gasesc nimic despre explot si in acel articol nu se da o solutie pentru remedierea explot-ului...

Dar m-am lamurit :)
Snappy
Utilizator înregistrat
Mesaje: 106
Membru din: 06-Iun-2004, 19:02:13
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: WeB
Contact:

adevarat / fals ?

Mesaj de Snappy »

# phpBB 2.0.13 user level exploit
# By : Morinex
# e-mail : m0r1n3x@gmail.com
# date : 20-03-2005
# greetz : Ali7 (for helping me =P) , Zeltha ,

Cod: Selectaţi tot

 , ASC and w00pie.NL

Exploit not founded by me!
Dunno who is the founder of this bug.
The original not works so i have fixed the some shit.

*Spechial thx 2 the founder of this bug*


This one goes for all phpBB versions up to 2.0.13. While applying and
testing the
patch for the autologin bug I found that phpBB2 doesn't reset the
$userdata['user_level']
variable after a failed autologin.

This is the vulvernable code in sessions.php:

Code:
f ( $user_id != ANONYMOUS )
{
$auto_login_key = $userdata['user_password'];

if ( $auto_create )
{
if ( isset($sessiondata['autologinid']) && $userdata['user_active'] )
{
// We have to login automagically
if( $sessiondata['autologinid'] === $auto_login_key )
{
// autologinid matches password
$login = 1;
$enable_autologin = 1;
}
else
{
// No match; don't login, set as anonymous user
$login = 0;
$enable_autologin = 0;
$user_id = $userdata['user_id'] = ANONYMOUS;
}
}
else
{
// Autologin is not set. Don't login, set as anonymous user
$login = 0;
$enable_autologin = 0;
$user_id = $userdata['user_id'] = ANONYMOUS;
}
}
else
{
$login = 1;
}
}
else
{
$login = 0;
$enable_autologin = 0;
}


As you can see, if autologin fails it will reset the
$userdata['user_id'] value to
ANONYMOUS, but $userdata['user_level'] stays at the value of the user
account that
failed to login.

Now phpBB only checks for the userlevel in various locations and
ignores the user_id
there. So if you manipulate the "_data" cookie to send the user_id of an admin
you can see some information that should only be visible to an admin.
Like hidden
users on the "who is online page" or email adresses from users, even if the
user disallowed that, in their profiles. Maybe you can even use some
admin functions,
I didn't check this in depth.

The cookie manipulation will only work on the first page requestet, as
the session.php
will then overwrite the user_id in it, unless you prevent the browser from
modifying the cookie of course.

The fix is quite simple, add $userdata['user_level'] = USER; after
every $userdata['user_id']
= ANONYMOUS; in session.php.

*Reported 2 PHPBB ^^


Morinex
Avatar utilizator
BuGsY
Fost coleg
Mesaje: 1193
Membru din: 19-Iun-2003, 15:24:49
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Constanţa
Contact:

Mesaj de BuGsY »

Snappy, la un topic diferenţă mai jos mai era un subiect cu aceşi temă, motiv pentru care mi-am rezervat dreptul de a uni cele două topicuri.

Această informaţie ne-a fost adusă la cunoştinţă şi de mihaiţă, (phpBB 2.0.13 exploit), aşteptăm în continuare mai multe detali de la acesta.
Scrie răspuns

Înapoi la “Despre phpBB”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 6 vizitatori