Cenzic 232 Patent
Paid Advertising
sla.ckers.org is
ha.ckers sla.cking
Sla.ckers.org
Q and A for any cross site scripting information. Feel free to ask away. 
Go to Topic: PreviousNext
Go to: Forum ListMessage ListNew TopicSearchLog In
one by one cookie
Posted by: Ryonan
Date: October 22, 2009 09:04AM

Hello,
i stole cookie of a user, but i can't login right away with :
javascript:document.cookie="user=1;password=434rerdsd343;"
instead, i have to enter one by one, first with user, and then with password to login.

Options: ReplyQuote
Re: one by one cookie
Posted by: Reiners
Date: October 24, 2009 04:10PM

thats beautiful, thanks for letting us now.

Options: ReplyQuote
Re: one by one cookie
Posted by: thrill
Date: October 24, 2009 05:26PM

I'll alert the media.

--thrill

---

It is not the degrees you hold, but the mind you possess. - thrill

Options: ReplyQuote
Re: one by one cookie
Posted by: Ryonan
Date: October 24, 2009 10:36PM

lol, somebody can explain about it ?

Options: ReplyQuote
Re: one by one cookie
Posted by: thrill
Date: October 25, 2009 01:20AM

yes, they're picking on you.

--thrill

---

It is not the degrees you hold, but the mind you possess. - thrill

Options: ReplyQuote
Re: one by one cookie
Posted by: Gareth Heyes
Date: October 25, 2009 05:52AM

This is now my favourite thread this week

------------------------------------------------------------------------------------------------------------
"People who say it cannot be done should not interrupt those who are doing it.";
labs : [www.businessinfo.co.uk]
blog : [www.thespanner.co.uk]
Hackvertor : [hackvertor.co.uk]

Options: ReplyQuote
Re: one by one cookie
Posted by: sirdarckcat
Date: October 25, 2009 08:22AM

So you mean you can do this?
javascript:void prompt("Put da cookie!:",document.cookie).replace(/[^;]+/g,function(_){document.cookie=_;});
taken from da wikipedia
http://es.wikipedia.org/wiki/XSS

--------------------------------
http://sirdarckcat.blogspot.com/ http://www.sirdarckcat.net/ http://foro.elhacker.net/ http://twitter.com/sirdarckcat



Edited 1 time(s). Last edit at 10/25/2009 08:24AM by sirdarckcat.

Options: ReplyQuote
Re: one by one cookie
Posted by: Ryonan
Date: October 26, 2009 01:16AM

What's that language ? Eskimor ??

Options: ReplyQuote
Re: one by one cookie
Posted by: lightos
Date: October 26, 2009 03:09AM

Spanish - EspaƱol

Options: ReplyQuote
Re: one by one cookie
Posted by: sirdarckcat
Date: October 26, 2009 08:31AM

javascript:void prompt("Put da cookie!:",document.cookie).replace(/[^;]+/g,function(_){document.cookie=_;});

> What's that language ? Eskimor ??
javascript

;)

--------------------------------
http://sirdarckcat.blogspot.com/ http://www.sirdarckcat.net/ http://foro.elhacker.net/ http://twitter.com/sirdarckcat

Options: ReplyQuote
Re: one by one cookie
Posted by: Anonymous User
Date: October 26, 2009 09:08AM

I think it's Escobar

Options: ReplyQuote
Re: one by one cookie
Posted by: kuza55
Date: October 28, 2009 06:29PM

Ryonan Wrote:
-------------------------------------------------------
> Hello,
> i stole cookie of a user, but i can't login right
> away with :
> javascript:document.cookie="user=1;password=434rer
> dsd343;"
> instead, i have to enter one by one, first with
> user, and then with password to login.

document.cookie does actually let you do multiple cookies at a time, however it splits cookies by new line rather than by semi-colon, so this would work:

javascript:document.cookie="user=1\napassword=434rerdsd343";alert(document.cookie);


fun cookie-setting bugs for all if you find somewhere letting you set a cookie 'value' in js

----------------------------------------------------------
Don't forget our IRC: irc://irc.irchighway.net/#slackers
[kuza55.blogspot.com]

Options: ReplyQuote
Re: one by one cookie
Posted by: sirdarckcat
Date: October 28, 2009 11:43PM

@kuza55
that's firefox only right?

--------------------------------
http://sirdarckcat.blogspot.com/ http://www.sirdarckcat.net/ http://foro.elhacker.net/ http://twitter.com/sirdarckcat

Options: ReplyQuote
Re: one by one cookie
Posted by: kuza55
Date: October 29, 2009 08:34PM

sirdarckcat Wrote:
-------------------------------------------------------
> @kuza55
> that's firefox only right?


Contrary to what I would have thought, yes, this is Firefox only (did a quick test of Chrome, IE 8, Opera 10, Safari 4).

Interestingly though, everything besides IE would truncate on \n....

Does anyone remember this working in other browsers, or did I just never bother to test this outside Firefox?

----------------------------------------------------------
Don't forget our IRC: irc://irc.irchighway.net/#slackers
[kuza55.blogspot.com]

Options: ReplyQuote
Re: one by one cookie
Posted by: sirdarckcat
Date: October 29, 2009 11:31PM

actually, I remember that you told me it was firefox only.. haha
anyway dont trust my memory =/

--------------------------------
http://sirdarckcat.blogspot.com/ http://www.sirdarckcat.net/ http://foro.elhacker.net/ http://twitter.com/sirdarckcat

Options: ReplyQuote


Sorry, only registered users may post in this forum.