Waraxe IT Security Portal
Login or Register
November 16, 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: 78
Members: 0
Total: 78
Full disclosure
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
4 vulnerabilities in ibmsecurity
32 vulnerabilities in IBM Security Verify Access
xlibre Xnest security advisory & bugfix releases
APPLE-SA-10-29-2024-1 Safari 18.1
SEC Consult SA-20241030-0 :: Query Filter Injection in Ping Identity PingIDM (formerly known as ForgeRock Identity Management) (CVE-2024-23600)
SEC Consult SA-20241023-0 :: Authenticated Remote Code Execution in Multiple Xerox printers (CVE-2024-6333)
APPLE-SA-10-28-2024-8 visionOS 2.1
APPLE-SA-10-28-2024-7 tvOS 18.1
APPLE-SA-10-28-2024-6 watchOS 11.1
APPLE-SA-10-28-2024-5 macOS Ventura 13.7.1
APPLE-SA-10-28-2024-4 macOS Sonoma 14.7.1
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PhpBB -> Getting 2.0.23 vuln to work
Post new topicReply to topic View previous topic :: View next topic
Getting 2.0.23 vuln to work
PostPosted: Thu Jul 31, 2008 11:54 am Reply with quote
ketchup
Regular user
Regular user
Joined: May 16, 2006
Posts: 23
Location: no




Hi all Smile

Pls look at http://packetstormsecurity.org/0803-exploits/phpbb2023-hijack.txt

I have some questions about this.
Say I had a website, so I can find the referal to my image I posted in a
thread that got closed. Now with any luck I will have the admin session ID Twisted Evil

Now comes my question: can I use a URL like in the exploit
http://site.tld/phpBB2/modcp.php?t=1&mode=lock&sid=[session]
to ride on the session of the admin? Very Happy
Or do I have to construct a special cookie?

So my question is what can I do with the session ID?

Thx ketchup


Last edited by ketchup on Mon Aug 18, 2008 1:54 am; edited 1 time in total
View user's profile Send private message
PostPosted: Thu Jul 31, 2008 1:18 pm Reply with quote
gibbocool
Advanced user
Advanced user
Joined: Jan 22, 2008
Posts: 208




I think you just log in with your own account, then edit the cookie and you will be the mod or admin.

But im not sure how you get the sid.

_________________
http://www.gibbocool.com
View user's profile Send private message Visit poster's website
PostPosted: Thu Jul 31, 2008 1:54 pm Reply with quote
lenny
Valuable expert
Valuable expert
Joined: May 15, 2008
Posts: 275




You should clear your cookies and replace your session ID with the exploited session. Refresh the page and you *should* be logged in with the username of whoever closed the thread.
View user's profile Send private message
PostPosted: Thu Jul 31, 2008 8:33 pm Reply with quote
ketchup
Regular user
Regular user
Joined: May 16, 2006
Posts: 23
Location: no




tested replacing de sid, but that doesnt work :/
can somebody tell me how I should edit the cookie, if e.g. the
sid=30c2791137336d65cd8c327f92f2e0fc.


View user's profile Send private message
PostPosted: Thu Jul 31, 2008 9:02 pm Reply with quote
lenny
Valuable expert
Valuable expert
Joined: May 15, 2008
Posts: 275




Remember, sessions time out after about 30 minutes - after which time they become useless. You need a fresh session for session hijacking to work.

I also noticed that the session ID "SID" has not been changed since you changed it. Make sure you get rid of "&sid=blablabla" in the URL before you refresh the page.
View user's profile Send private message
PostPosted: Thu Jul 31, 2008 9:33 pm Reply with quote
ketchup
Regular user
Regular user
Joined: May 16, 2006
Posts: 23
Location: no




meh can't get it to work

I edit the cookie and make it just like it was, when I was logged in
as admin and still doesn't work. :/

The session is a few seconds old.

I don't get it.
View user's profile Send private message
PostPosted: Thu Jul 31, 2008 9:56 pm Reply with quote
lenny
Valuable expert
Valuable expert
Joined: May 15, 2008
Posts: 275




Hmmm.... well make sure you don't log out from admin before you try the exploit. If the admin logs out, then the session will be automatically invalidated Smile

best way to get around this when testing exploits like this is to use two different browsers - for example firefox and safari Smile Use firefox as your pretend victim logged in as admin, and on safari dont login until you have the session Smile
View user's profile Send private message
PostPosted: Thu Jul 31, 2008 10:22 pm Reply with quote
ketchup
Regular user
Regular user
Joined: May 16, 2006
Posts: 23
Location: no




jeeeeeeeeeeeej finally werx, thx dude Very Happy

This is gonna be tough to exploit .

If I would get the SID from an admin I would have to guess what his/her user ID is or is there a better way?

I would have to edit the user ID in this part of the cookie?
a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bs%3A1%3A%222%22%3B%7D

Also the referrer info is updated every hour on awardspace.com :/
So I think im gonna have to use my server at localhost, but I really dont like the idea of that!
View user's profile Send private message
PostPosted: Thu Jul 31, 2008 10:44 pm Reply with quote
ketchup
Regular user
Regular user
Joined: May 16, 2006
Posts: 23
Location: no




ah found the user ID part
a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bs%3A1%3A%222%22%3B%7D

admin user ID in this case is 2


I made a new normal user and this is the cookie:
a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bs%3A1%3A%223%22%3B%7D

user ID is 3
View user's profile Send private message
PostPosted: Thu Jul 31, 2008 11:03 pm Reply with quote
ketchup
Regular user
Regular user
Joined: May 16, 2006
Posts: 23
Location: no




found how to find the user ID:
http://startrekguide.com/community/viewtopic.php?f=62&t=6402
Highway of Life wrote:
Click on their profile and look at the URL.
For example, if you view your profile.. (click your username) you get: http://startrekguide.com/community/memberlist.php?mode=viewprofile&u=6609
The u=xxxx digits is the user_id, therefore your user ID is 6609


so in the cookie it would be
a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bs%3A3%3A%226609%22%3B%7D
View user's profile Send private message
PostPosted: Fri Aug 01, 2008 3:28 pm Reply with quote
ketchup
Regular user
Regular user
Joined: May 16, 2006
Posts: 23
Location: no




just one more question:

Is there a way to host a picture that doesnt get caches, like a broken or not existing image. Will you still get the referer info? Maybe some other trick?
Because if the picture gets cashed I wont get the referer info when its loaded?
View user's profile Send private message
PostPosted: Mon Aug 18, 2008 1:59 am Reply with quote
ketchup
Regular user
Regular user
Joined: May 16, 2006
Posts: 23
Location: no




Ive tested this, and its better to use a non existing image because
it cant be cached by the victims browser, giving you a bigger chance of succeeding

Exploit works great, only a little social engineering is needed Smile
View user's profile Send private message
PostPosted: Fri Aug 22, 2008 12:53 pm Reply with quote
ketchup
Regular user
Regular user
Joined: May 16, 2006
Posts: 23
Location: no




For the people who may be interested, I have written a little C++ app.
that checks the apache access_log for SID's every 5 seconds and outputs
them the command line and writes them to a file.
View user's profile Send private message
Getting 2.0.23 vuln to work
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.060 Seconds