News for hackers. Stuff that matters.
Re:Tell HN: It's easier and faster to pirate an e-book, than... by layer8 on Thursday December 29, 2022 @01:32PM (#34176064)
Adobe Acrobat (Reader) opens PDFs from download locations in “Protected View” by default, which disables potentially dangerous dynamic features, and also by default opens all PDFs in a “Protected Mode” sandbox which restricts otherwise possible system access. You want to make sure that those are active. I believe that’s on Windows only, not sure what the implications are on other systems.

Without those restrictions, PDFs can execute embedded JavaScript on open, which can access and execute local files.

Re:Tell HN: It's easier and faster to pirate an e-book, than... by auggierose on Thursday December 29, 2022 @01:52PM (#34176310)
Preview on a Mac doesn't execute JavaScript in PDFs. To make sure you are not spreading anything to anyone, open the PDF in Preview and print it.
Re:Tell HN: It's easier and faster to pirate an e-book, than... by majkinetor on Thursday December 29, 2022 @02:55PM (#34177115)
Same thing with Word.

Not sure how ebook readers handle js or xml exploits.