Javascript fun

Locked
Turbine
Posts: 2583
Joined: Mon Aug 29, 2005 4:34 pm

Javascript fun

Post by Turbine »

Alright, look at your address bar, erase the current address up there, then type:
javascript:alert(document.cookie);

A text box will come up, don't copy&paste that here.

For fun do this, type:
javascript:alert("hello, I see you... run!");

now try this:
javascript:alert(browser=navigator.appName); alert(b_version=navigator.appVersion);
ouuuh.... tuche!

and:
javascript:document.bgcolor="I can't make the background of the forum look orange anymore!"


Don't post javascript:alert(document.cookie); result.
DO NOT! it can be misused
Last edited by Turbine on Fri Oct 20, 2006 8:10 pm, edited 2 times in total.
[img]http://img.photobucket.com/albums/v74/Turbinator/knocked_the_fuck_out.gif[/img]
CitizenKane
Posts: 868
Joined: Fri Oct 13, 2006 11:38 am

Post by CitizenKane »

:rtcw:
Last edited by CitizenKane on Fri Oct 20, 2006 8:07 pm, edited 1 time in total.
Turbine
Posts: 2583
Joined: Mon Aug 29, 2005 4:34 pm

Post by Turbine »

NO MAN!
erase that!! NOW!

The next person that sees that might not be as kind as me.
Last edited by Turbine on Fri Oct 20, 2006 8:05 pm, edited 1 time in total.
[img]http://img.photobucket.com/albums/v74/Turbinator/knocked_the_fuck_out.gif[/img]
User avatar
Foo
Posts: 13840
Joined: Thu Aug 03, 2000 7:00 am
Location: New Zealand

Post by Foo »

Posts your session id, last-viewing timestamp, etc.

Don't post them.
"Maybe you have some bird ideas. Maybe that’s the best you can do."
― Terry A. Davis
User avatar
Scourge
Posts: 15559
Joined: Mon Mar 25, 2002 8:00 am

Post by Scourge »

What foo said.
User avatar
Scourge
Posts: 15559
Joined: Mon Mar 25, 2002 8:00 am

Post by Scourge »

Heh, double erased.
CitizenKane
Posts: 868
Joined: Fri Oct 13, 2006 11:38 am

Post by CitizenKane »

oh....i see
CitizenKane
Posts: 868
Joined: Fri Oct 13, 2006 11:38 am

Post by CitizenKane »

oh....i see
Turbine
Posts: 2583
Joined: Mon Aug 29, 2005 4:34 pm

Post by Turbine »

You also posted the first time; at the same time. scourge34.
[img]http://img.photobucket.com/albums/v74/Turbinator/knocked_the_fuck_out.gif[/img]
CitizenKane
Posts: 868
Joined: Fri Oct 13, 2006 11:38 am

Post by CitizenKane »

ok yeah, im a bit lame when it comes to javascript. how exactly could that information have been misused? im genuinely interested.
Turbine
Posts: 2583
Joined: Mon Aug 29, 2005 4:34 pm

Post by Turbine »

OK that is the cookie that Q3W gives you.
And it is unique to you, and your computer.
Everyone gets a different one.

It contains your session ID.
Can be used to log in as you.
[img]http://img.photobucket.com/albums/v74/Turbinator/knocked_the_fuck_out.gif[/img]
User avatar
Foo
Posts: 13840
Joined: Thu Aug 03, 2000 7:00 am
Location: New Zealand

Post by Foo »

CitizenKane wrote:ok yeah, im a bit lame when it comes to javascript. how exactly could that information have been misused? im genuinely interested.
A session id is a lump of text that serves as a one-time key your browser uses to access your account without needing to store your password plainly or have you re-enter your pass every time.

With a session key someone can make use of your account to post and do anything that doesn't require re-entering your password. Modern versions of most PHP software that uses sessions (like this, PhpBB) require re-entry of your password to make account alterations (password, profile etc) so the danger of a session hijack is only moderate.

But still, you don't want someone jacking your session then posting porn using your account. For example.
CitizenKane
Posts: 868
Joined: Fri Oct 13, 2006 11:38 am

Post by CitizenKane »

oh right...silly me!
Dave
Posts: 6986
Joined: Sat Jan 15, 2000 8:00 am

Post by Dave »

I'm sorry I clicked this thread
User avatar
mrd
Posts: 4289
Joined: Sat Mar 25, 2000 8:00 am

Post by mrd »

That sesh ID # is rather long and fugly looking.
Turbine
Posts: 2583
Joined: Mon Aug 29, 2005 4:34 pm

Post by Turbine »

The whole thing is not one session ID.
There is a lot more stuff in there.

The Session ID looks like this
q3wforum_sid=a12b0c345d678e90f123g45678h9i0;
[img]http://img.photobucket.com/albums/v74/Turbinator/knocked_the_fuck_out.gif[/img]
User avatar
mrd
Posts: 4289
Joined: Sat Mar 25, 2000 8:00 am

Post by mrd »

I know. Would you not agree that a12b0c345d678e90f123g45678h9i0; is rather long and fugly looking? :olo:

Isn't there a way to lock sesh IDs to IPs, though?
Turbine
Posts: 2583
Joined: Mon Aug 29, 2005 4:34 pm

Post by Turbine »

No idea.
There should be.

When i get home I will do a test to see if Q3W uses a SID to IP check.
[img]http://img.photobucket.com/albums/v74/Turbinator/knocked_the_fuck_out.gif[/img]
Locked