Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Stealing Cookies


chess_rock's Avatar
Member
0 0

Hey there xD

I was trying to check my school's security level, and i found out that it is quite vulnerable to xss cookie stealing. When i'm in my school's pc, i can perfectly steal cookies, but when i do this outside, with a proxy of course, i can't. There is this error saying that i need to be in the network to steal the cookies. My question is more kind of curiosity, since there is nothing about this in google…. Is there any code to camouflage your IP and make you look like the IP of your target? not any proxy, but the same target… or is there any way of trespassing this error message?

i think you'll say nope for the first question, and yep for the second one… almost sure :P


spyware's Avatar
Banned
0 0

Explain how you are trying to steal cookies.


spyware's Avatar
Banned
0 0

How do you get example.com's visitors execute that?


chess_rock's Avatar
Member
0 0

well, i tried to do it directly, without sending them to the other page, but then it didn't work… I camouflaged it a bit, and what it does is to send a request to their page to access the code in the javascript…


ghost's Avatar
0 0

What he meant is, are you emailing the visitors the link? If you aren't, you are only going to steal your own cookies.

Also, why does the XSS matter? Are the users logging into the site? Are there cookies to steal that would give you access? If there aren't, why bother stealing cookies? You could do so much more because of the XSS. With that you could do AJAX requests for /etc/passwd and /etc/shadow if they have the right permissions. You don't even need to host a script on your own site since you can just use an XSS. That's where you should be focusing if you can't gain more access on the site by using someone else's cookies.


chess_rock's Avatar
Member
0 0

well, yeah… it sounds strange, but i want to steal my OWN cookies… the vulnerabilty is the same in this case as when i try to add info into the website