Issue metadata
Sign in to add a comment
|
Security: JavaScript in PDF can navigate browser
Reported by
sachinrm...@gmail.com,
Feb 2 2018
|
||||||||||||||||||||||
Issue description
Unvalidated redirect using Cross-site scripting
PDF with javascript code executable on startup will be executed in chrome browser once the PDF is opened in chrome. Chrome browser allows to execute the scripts embedded in the PDF documents. For the purpose of PoC i have embedded a script in PDF ,which will redirect user to the intended website. If a malicious JavaScript is injected it will get executed on loading the PDF. Hence chrome is vulnerable to Cross site scripting and this vulnerability is exploited in PoC to redirect user on intended web address.
Behaviour of other browsers on opening the same PDF(from PoC):
1. Chrome (Version 63.0.3239.132 (Official Build) (64-bit))
2. Mozilla (57.0.4) - Not redirected
3. Microsoft Edge 40.15063.674.0 - Not redirected
OS: Windows 10 Intel Corei7 64bit
Affects:
All the chrome browser users.
Steps to reproduce the issue:
1. Open the attached pdf in chrome browser and it will redirect user to a website (http://footmark.infoedge.com in my case)
,
Feb 2 2018
This is working as expected; PDF is an active file type.
,
Feb 2 2018
"PDF is an active file type." Yes, it is !! but using that user can be redirected to malicious site. Try opening the same with other browsers & Adobe reader. Eithrt they will have a popup for permission or simply they will not redirect. This is similar to a script embedded in a Jpeg.
,
May 11 2018
This bug has been closed for more than 14 weeks. Removing security view restrictions. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Oct 12
I don't understand how this could be closed as "By Design". Shall we say HTML is an "active file type" so any cross site scripting reported on HTML pages to be "By Design"?
,
Oct 12
re: comment 5 - this bug has been marked as a duplicate of bug 445758 . Is the discussion there helpful?
,
Oct 12
Not really. It is marked as "wont fix" in that thread and the same claim as "active file type" for PDF.
,
Oct 13
Well, we made a fix for bug 851821 , so the POC in this bug no longer works on Dev Channel. So there's that. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by sachinrm...@gmail.com
, Feb 2 2018