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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <459D8699.3070107@gmail.com>
Date: Fri, 05 Jan 2007 00:58:33 +0200
From: Amit Klein <aksecurity@...il.com>
To: Guy Podjarny <gpodjarny@...chfire.com>
Cc: bugtraq@...urityfocus.com,
	Web Security <websecurity@...appsec.org>
Subject: Re: [WEB SECURITY] Universal XSS with PDF files: highly dangerous

Guy Podjarny wrote:
> Another similar option is to use a single-use random value (not
> encrypted), that gets invalidated after it's served back. 
>
> You can save the random value on the (non persistent) session
> (server-side), and serve the PDF only if the correct random value is
> provided. 
> Once a random value has been used, it's cleared (single-use).
> In any case where the wrong value is provided - recreate a random value,
> save it on the session, and redirect to the PDF with it (same behavior
> as when the token isn't provided at all).
>
>   
Here's an attack against this scheme:

Attacker sends the user a link to http://www.attacker.site/script.cgi

When the user requests http://www.attacker.site/script.cgi, the 
script.cgi requests file.pdf from vuln.site. It gets back a redirection 
URL and a session cookie. Then, it creates a Flash object that requests 
the URL with an injected Cookie header (with the session cookie) and 
serves this to the victim client. Voila.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ