On 01/07/2013 09:23 AM, Flying-w wrote:
> Thanks for the reply. The PDF content is highly valuable, so each
> request must be authenticated and the pdf content must be delivered to
> the browser securely.
>
> Recommendations for other delivery methods?
There is no reason to deliver the content specifically to the browser.
Most folks will use Acrobat to read the PDF, so the browser acts as an
intermediary and increases the attack surface. The content is valuable
(i.e. there is sufficient economic interest to analyze your delivery
method and dupe the server), attacks are possible and economically
beneficial to the attacker.
I'd use email. Deliver the PDF as an attachment. There might be issues
w/ filters.
You might also consider emailing a one-time key as the query string in a
URL, then downloading the PDF in response to that GET. As the key is
associated w/ the user, there is no secondary login required. Also, you
know (i.e. implement in code) that the request can only happen once. It
might also be appropriate to implement a time window in which the URL is
valid.
>
> Perhaps the ideal solution is to have the PDF content delivered in the
> response
> to a GWT RPC method say as a byte array. The problem is, I've no idea
> how to get that byte stream rendered in the browser.
Security by obscurity? No.
Cheers,
jec