what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

phpbb2013user.txt

phpbb2013user.txt
Posted Mar 25, 2005
Authored by Morinex

phpBB versions 2.0.13 and below remote user level exploit that makes use of an input validation flaw.

tags | exploit, remote
SHA-256 | 6063d27332d5f3503823051e6854c39f3a25d9019b23bebc49234540903a583f

phpbb2013user.txt

Change Mirror Download
------------------------------------------------------------------------
# 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 , [code] , 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
Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    0 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close