Waraxe IT Security Portal
Login or Register
December 23, 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: 113
Members: 0
Total: 113
Full disclosure
CyberDanube Security Research 20241219-0 | Authenticated Remote Code Execution in Ewon Flexy 205
Stored XSS with Filter Bypass - blogenginev3.3.8
[SYSS-2024-085]: Broadcom CA Client Automation - Improper Privilege Management (CWE-269)
[KIS-2024-07] GFI Kerio Control <= 9.4.5 Multiple HTTP Response Splitting Vulnerabilities
RansomLordNG - anti-ransomware exploit tool
APPLE-SA-12-11-2024-9 Safari 18.2
APPLE-SA-12-11-2024-8 visionOS 2.2
APPLE-SA-12-11-2024-7 tvOS 18.2
APPLE-SA-12-11-2024-6 watchOS 11.2
APPLE-SA-12-11-2024-5 macOS Ventura 13.7.2
APPLE-SA-12-11-2024-4 macOS Sonoma 14.7.2
APPLE-SA-12-11-2024-3 macOS Sequoia 15.2
APPLE-SA-12-11-2024-2 iPadOS 17.7.3
APPLE-SA-12-11-2024-1 iOS 18.2 and iPadOS 18.2
SEC Consult SA-20241211-0 :: Reflected Cross-Site Scripting in Numerix License Server Administration System Login
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PhpBB -> Help with XSS on phpBB
Post new topicReply to topic View previous topic :: View next topic
Help with XSS on phpBB
PostPosted: Thu Nov 06, 2008 1:33 pm Reply with quote
theanderson
Regular user
Regular user
Joined: Nov 03, 2008
Posts: 6




In the target forum I found a vulnerable php script which is prone to XSS.
I ve already coded what I need to get the administrator's cookies.

But before retrieving the admin's cookie, my question is: once I have got the cookie, how do I access the administration panel(*)? And from there what are the things I can do to install a web shell(**)? the forum should be phpBB 2.0.20 (according to /docs/CHANGELOG.html)

(*) I know I have to perform a session hijack, but since then, is the admin panel accessible or I have to input the password anyways?

(**) I ve already used a RCE script (by rgod) but idk if I was able to extract the admin session's id from the cookie (prolly not), where should I look to find the admin session id? does that session id grant me access to the admin panel?

Please I don't wanna beg anyone, but I m tired of searching google and finding nothing.
View user's profile Send private message
PostPosted: Thu Nov 06, 2008 1:52 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




As far as i know, phpbb is checking IP address/session ID match. So if you have stolen sessionID, then you can't use it in most cases.
Now, there is something else you can try. If you can trick admin to visit your website and in same time he's logged in as admin and if you can use XSS hole (classical reflected XSS scenario), then you can actually commit CSRF attack!! Phpbb uses cryptographic nonce as anti-XSRF measure, but XSS will make it useless!! So for example you can make victim's browser to submit new admin creation form - silently and with user data you can provide:)

http://en.wikipedia.org/wiki/XSRF
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Thu Nov 06, 2008 2:12 pm Reply with quote
theanderson
Regular user
Regular user
Joined: Nov 03, 2008
Posts: 6




waraxe wrote:
As far as i know, phpbb is checking IP address/session ID match. So if you have stolen sessionID, then you can't use it in most cases.
Now, there is something else you can try. If you can trick admin to visit your website and in same time he's logged in as admin and if you can use XSS hole (classical reflected XSS scenario), then you can actually commit CSRF attack!! Phpbb uses cryptographic nonce as anti-XSRF measure, but XSS will make it useless!! So for example you can make victim's browser to submit new admin creation form - silently and with user data you can provide:)

http://en.wikipedia.org/wiki/XSRF


Thanks waraxe,
could you help me building the form I need to create a new admin user on phpBB 2.0.20? (googling in the while...)

EDIT:

Found something at http://hackish.altervista.org/forum/viewtopic.php?t=405

Code:
<html>
<iframe name="hackinginside" frameborder="0" height="0" width="0"></iframe>
<form action="http://site.com/path/groupcp.php?g=[GROUP_ID]" method="post" name="vincy" target="hackinginside">
<input type="hidden" name="username" value="[YOUR_NAME]">
<input type="submit" name="add" value="Add Member"></form>
<script>document.vincy.submit()</script>
</html>


But I don't know how much could this help me, because the forum's admin doesn't seem to belong to any "group"...
View user's profile Send private message
PostPosted: Thu Nov 06, 2008 8:52 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




Gimme some time, i will try to find best working XSRF solution for this and then post all info here Smile
View user's profile Send private message Send e-mail Visit poster's website
Help with XSS on phpBB
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.048 Seconds