Waraxe IT Security Portal
Login or Register
November 22, 2024
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 184
Members: 0
Total: 184
Full disclosure
APPLE-SA-11-19-2024-5 macOS Sequoia 15.1.1
Local Privilege Escalations in needrestart
APPLE-SA-11-19-2024-4 iOS 17.7.2 and iPadOS 17.7.2
APPLE-SA-11-19-2024-3 iOS 18.1.1 and iPadOS 18.1.1
APPLE-SA-11-19-2024-2 visionOS 2.1.1
APPLE-SA-11-19-2024-1 Safari 18.1.1
Reflected XSS - fronsetiav1.1
XXE OOB - fronsetiav1.1
St. Poelten UAS | Path Traversal in Korenix JetPort 5601
St. Poelten UAS | Multiple Stored Cross-Site Scripting in SEH utnserver Pro
Apple web content filter bypass allows unrestricted access to blocked content (macOS/iOS/iPadOS/visionO S/watchOS)
SEC Consult SA-20241112-0 :: Multiple vulnerabilities in Siemens Energy Omnivise T3000 (CVE-2024-38876, CVE-2024-38877, CVE-2024-38878, CVE-2024-38879)
Security issue in the TX Text Control .NET Server for ASP.NET.
SEC Consult SA-20241107-0 :: Multiple Vulnerabilities in HASOMED Elefant and Elefant Software Updater
Unsafe eval() in TestRail CLI
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PhpBB -> A Very Simple Question
Post new topicReply to topic View previous topic :: View next topic
A Very Simple Question
PostPosted: Sat Mar 18, 2006 6:30 am Reply with quote
lampshade
Regular user
Regular user
Joined: Mar 17, 2006
Posts: 6




Hey guys, Im completely new to this kind of thing and I was just wondering what the phpbb2mysql_sid is used for ? There is a hash in there and every time I grab the Header of my forum, it changes.

Thanks in advance
-Lampshade
View user's profile Send private message
Re: A Very Simple Question
PostPosted: Sun Mar 19, 2006 2:54 am Reply with quote
johnny
Regular user
Regular user
Joined: Mar 13, 2006
Posts: 13




lampshade wrote:
Hey guys, Im completely new to this kind of thing and I was just wondering what the phpbb2mysql_sid is used for ? There is a hash in there and every time I grab the Header of my forum, it changes.

Thanks in advance
-Lampshade

phpBB uses sessions to keep track of users as they move between pages. The session information tells us who this user is. Therefore in order to determine what a user can do on a page we first need the session details. Once this data is available we can check whether the user is permitted to do whatever it is they are trying to do.
View user's profile Send private message
Re: A Very Simple Question
PostPosted: Mon Mar 20, 2006 10:51 pm Reply with quote
lampshade
Regular user
Regular user
Joined: Mar 17, 2006
Posts: 6




johnny wrote:
phpBB uses sessions to keep track of users as they move between pages. The session information tells us who this user is. Therefore in order to determine what a user can do on a page we first need the session details. Once this data is available we can check whether the user is permitted to do whatever it is they are trying to do.


So this means that the phpBB sid is just a hash that actually stores A User ID ? not the password ? (such a n00b question, sorry ><)
View user's profile Send private message
PostPosted: Wed Mar 22, 2006 5:33 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




From phpbb 2.0.19 source code, script "sessions.php":

Code:

$session_id = md5(uniqid(mt_rand(), true));


So as you can see, session ID is as random as possible Smile

How this stuff works?

1. User will log in and gives login.php parameters "username" and "password".

2. Login script will compare those strings to database entries and IF and only IF username and password md5 hash matches to database values,
then phpbb will create RANDOM session id and will insert it to database.
This session has bind to specific user account.

3. Session id will be written to cookie and can be spread as GET parameter too ("&sid=blablabla")

4. Now, if logged in user opens forum page, then browser sends to phpbb session ID
through cookie or through GET parameter. Phpbb will search this session id from database.
Positive match will point to user account, who owns that current session id.

Thats all. Session ID-s are not password md5 hashes. You can't crack them, this gives you
nothing. Only thing, you can do, is try to steal session ID and the reuse it by fooling
phpbb to think, that you are other person. As i know, there are programmatic counter
measures against this attack, but who knows ...

Then there is bruteforcing - script can be written, which will try random session id-s
against phpbb and therefore there can be lucky matches Smile
But session id is 32 chars long and probablility of such luck is very small.

One more thing - if there is virtual server with many websites and if apache
installation is unsecured, then may be possible session stealing from temp directory.
This is kind of local sploiting, but can be effective in some cases.
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Thu Mar 23, 2006 1:19 am Reply with quote
lampshade
Regular user
Regular user
Joined: Mar 17, 2006
Posts: 6




Ahh now I understand! Thanks for the reply waraxe, it was very helpful Very Happy !

-Lampshade
View user's profile Send private message
A Very Simple Question
www.waraxe.us Forum Index -> PhpBB
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT
Page 1 of 1

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.047 Seconds