mailing list archives
Re: [WEB SECURITY] Universal XSS with PDF files: highly dangerous
From: RSnake <rsnake () shocking com>
Date: Wed, 3 Jan 2007 13:21:29 -0800 (PST)
It's not a part of the URL string that is passed to the header:
GET /appliance/pdf/google_gsa_datasheet.pdf HTTP/1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:22.214.171.124) Gecko/20061204 Firefox/126.96.36.199
So I think your idea was partly good, the 301 redirection will knock off
the URL fragment, but it has nothing to do with GET vs POST, and you'll
need to redirect it to a unique token to prevent infinite loops or
someone just forwarding to a guessable token.
On Wed, 3 Jan 2007, James Landis wrote:
Why bother with the token handling? If the request URI is a PDF and it is a
POST or contains URL parameters, just 30x to the naked PDF. Otherwise it's
safe to serve.
On 1/3/07, Amit Klein <aksecurity () gmail com> wrote:
Amit Klein wrote:
> pdp (architect) wrote:
>> I will be very quick and just point to links where you can read about
>> this issue.
>> apparent reason by using the following template:
>> You must understand that the attacker doesn't need to have write
>> access to the specified PDF document. In order to get an XSS vector
>> working you need to have a PDF file hosted on the target and that's
>> all about it. The rest is just a matter of your abilities and desires.