Featured Worklog

Price Search



PC Apex Sponsor


PC Apex Sponsors



PC Apex RSS Feeds

RSS Feed for PC Apex Reviews & ArticlesRSS Feed for PC Apex PC Modding WorklogsRSS Feed for the PC Apex Daily DisturbanceRSS Feed for the latest PC Apex Site NewsRSS Feed for PC Apex Affiliate and Web NewsRSS Feed for PC Apex Deals and Steals

Go Back   Apex Community Forums // Other Forums // Designers Corner // Coding / Scripting / Programming

Coding / Scripting / Programming Discussions on all manner of coding and scripting.

Reply
 
LinkBack Thread Tools Display Modes
Old 08-September-06, 05:59 AM   #1 (permalink)
The Green Gator
DavidVaini's Avatar
Default View Cookie from another site

I'm trying to create a webpage that can view a curtain cookie.. this cookie is from another webpage.. I know what I tis called.. its called zapperz.. I know how to view the cookie value by viewing my cookies.. but Its really hard to explain it to some of my friends.. So does anyone know how to create a javascript function or something that would allow them to see the value of the cookie? I dont think doccument.cookie would do any good since its only relative to that doccument..

the cookie zapperz is created on a private webpage that I dont wanna put down right now.. the value of the cookie is set and they can view it if they go through the options and crap but I just want an easy page that states the value of the cookie zapperz.. also this page would have to be on a completely seperate site that only allows javascript, css, and html

Just to make it clear.. I dont wanna view their cookie value.. I want them to be able to view their own cookie value from the other site..

any help would be greatly appreciated

Last edited by DavidVaini; 08-September-06 at 06:24 AM.
DavidVaini is offline     Reply With Quote
Sponsored Links
Old 08-September-06, 08:48 AM   #2 (permalink)
The Green Gator
DavidVaini's Avatar
Default Re: View Cookie from another site

Quote:
Originally Posted by DavidVaini
I dont think doccument.cookie would do any good since its only relative to that doccument..

After doing some research it isnt possible to request the value of a cookie that was set on another page.. so Im thinkin I would have to implement some sort of XSS... AKA cross site scripting.. problem with that though is that script tags are disabled on the other site.. but then I got to thinking.. Flash is accepted on that site.. so couldnt I make a swf to call for the cookie and then submit it to the display page to show the cookie value? idk if this would work though... again any help would be appreciated
DavidVaini is offline     Reply With Quote
Old 08-September-06, 10:21 AM   #3 (permalink)
'Da Doctor of Funk
FunkyFresh's Avatar
Default Re: View Cookie from another site

Okay, so Site 1 sets a cookie. You want to be able to create a page on Site 2 that displays that cookie.

What if you create a simple page on Site 1 that displays the cookie, then create a page on Site 2 that contains an IFRAME whose SRC attribute is set to the page on Site 1?
FunkyFresh is offline     Reply With Quote
Old 08-September-06, 07:40 PM   #4 (permalink)
The Green Gator
DavidVaini's Avatar
Default Re: View Cookie from another site

Quote:
Originally Posted by FunkyFresh
Okay, so Site 1 sets a cookie. You want to be able to create a page on Site 2 that displays that cookie.

What if you create a simple page on Site 1 that displays the cookie, then create a page on Site 2 that contains an IFRAME whose SRC attribute is set to the page on Site 1?

Site one doesnt allow the script tag to be used.. so displaying the cookie would be kinda imposible.. only way I could think of doing that is use a flash movie to call the javascript for the cookie.. and even then im not sure it would work...
DavidVaini is offline     Reply With Quote
Old 12-September-06, 08:55 PM   #5 (permalink)
The Green Gator
DavidVaini's Avatar
Default Re: View Cookie from another site

does anyone know how to request a browser cookie in actionscript?

I dont know the command and I cant seem to find it anywhere... I already have all the other code set up that would set such cookies value to a variable and have that vairable read by a dynamic textbox..
DavidVaini is offline     Reply With Quote
Old 18-September-06, 09:53 AM   #6 (permalink)
The Green Gator
DavidVaini's Avatar
Default Re: View Cookie from another site

after hours and hours of trying to figure it out I finally found the solution.. but then I relized the sort of problems it could bring for so many sites.. for instance.. I could post the swf on myspace.. so when they click on it it sends me the cookie that stores all the login information for that user.. so I could easliy hack anyones myspace.. this sorta thing isnt cool cause Its a huge security flaw for cookie bassed websites..
DavidVaini is offline     Reply With Quote
Old 18-September-06, 10:29 AM   #7 (permalink)
Dex
Retr-hoe Reviewer
Dex's Avatar
Default Re: View Cookie from another site

I thought the whole point of cookies was that only the site that created them could read them....?
Dex is offline     Reply With Quote
Old 18-September-06, 03:16 PM   #8 (permalink)
The Green Gator
DavidVaini's Avatar
Default Re: View Cookie from another site

Quote:
Originally Posted by Dex
I thought the whole point of cookies was that only the site that created them could read them....?

yes thats true.. but I found a way for a flash doccument thats on the site to read the cookies from the site.. then it passes them through onto my site.. thus creating the security problem... virtually i could read any bodies cookie from any site that the flash doccument is on.....
then i could replace my cookie value with their cookie value and now have access to their account..
thats not good.. I beleive in privacy so im gonna delete the flash doccument and all the related code and research

Last edited by DavidVaini; 18-September-06 at 08:46 PM.
DavidVaini is offline     Reply With Quote
Reply

Thread Tools
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
A Cookie for the first person who gives me... Gzim Anything Goes 21 01-March-07 12:53 PM
Wheres my cookie?! slickcam Anything Goes 7 18-July-06 11:26 AM
Christmas Cookie Recipe HoJo Anything Goes 4 16-December-04 12:09 PM
Arguement with the Fortune Cookie Crazy_J Anything Goes 22 13-August-04 10:13 AM
Chinese Fortune Cookie Lord_nikon Anything Goes 4 16-July-03 01:40 AM


All times are GMT -5. The time now is 10:15 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5
Copyright PCApex.com, GameApex.com, ForumApex.com 2001 - 2008
Advertisements

Page generated in 0.64885 seconds with 9 queries