logoalt Hacker News

jonahxlast Thursday at 9:24 PM2 repliesview on HN

Does that mean that opening arbitrary pdfs on your laptop is unsafe?


Replies

Sohcahtoa82last Thursday at 10:15 PM

Let me put it this way...

In one of my penetration testing training classes, in one of the lessons, we generated a malicious PDF file that would give us a shell when the victim opened it in Adobe.

Granted, it relied on a specific bug in the JavaScript engine of Adobe Reader, so unless they're using a version that's 15 years old, it wouldn't work today, but you can't be too cautious. 0-days can always exist.

bmacholast Thursday at 9:28 PM

Yes, opening random pdfs especially in random and old pdf viewers is not a good idea.

If you must open a possibly infected pdf, then do it in browser, pdf.js is considered mostly safe, and updated.

show 1 reply