Cookies should only be accessible to the site that set the cookie and the computer that accepted the cookie. However, when the site that set the cookie allows people other than the management of the site to put JavaScript on the site, that JavaScript could use the content of the cookie in a manner that doesn't match the policies of the site management (it is trivial to forward it to a remote site for later use in any way desired).

So the problem is a combination of cookies, JavaScript, and a site that accepts content from other sources.

Also, the content of the cookie could be some sort of session ID that is only useful for a limited time and couldn't be used to change your PerlMonks password. However, this particular cookie is just your username and encrypted password and so has no expiration date and can be used to change your PerlMonks password out from under you.

The new feature to remove JavaScript from home nodes is a welcome one even though it still has some bugs and so shouldn't be trusted completely. Lots of browsers and/or gateway/proxy software will strip JavaScript only for certain sites. Note that JavaScript can be a security risk in lots of other situations so you should consider disabling it for most of your surfing (you won't have any more pop-up ads, for one thing) and encouraging the sites that you frequent to allow effective navigation when JavaScript is disabled.

        - tye (but my friends call me "Tye")

In reply to (tye)Re: javascript perlmonks password insecurity by tye
in thread javascript perlmonks password insecurity by Ntav

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.