News for hackers. Stuff that matters.
Re:Converting untrusted PDFs into trusted ones: The Qubes Wa... by bangaladore on Thursday December 12, 2024 @05:48PM (#42404220)
Are PDF parsers really so bad nowadays (this article is over 10 years old), that opening a PDF opens you up to vulnerabilities?

The author made this seem like such a fundamental issue. Is that because PDFs natively have support for say executing code (i doubt) or accessing the filesystem (i doubt), etc...

Re:Converting untrusted PDFs into trusted ones: The Qubes Wa... by minitech on Thursday December 12, 2024 @06:06PM (#42404345)
> Are PDF parsers really so bad nowadays (this article is over 10 years old), that opening a PDF opens you up to vulnerabilities?

Yep, here’s an Acrobat Reader release from two days ago that fixes two arbitrary code execution vulnerabilities since the previous one two months ago: https://helpx.adobe.com/security/products/acrobat/apsb24-92....

I haven’t looked into browser-embedded PDF viewers enough to know how they compare to other software – they’re definitely much safer than Acrobat and still not completely safe (e.g. CVE-2023-1530 in Chrome wasn’t that long ago) – but I would expect them to be at least as safe as other browser functionality.

> Is that because PDFs natively have support for say executing code (i doubt)

They do (https://helpx.adobe.com/ca/acrobat/using/applying-actions-sc..., including “Run a JavaScript”, although that has to be enabled), but indeed that’s not the one fundamental issue; it’s usually just standard vulnerabilities of memory unsafety or terrible design (XML).

Re:Converting untrusted PDFs into trusted ones: The Qubes Wa... by lysace on Thursday December 12, 2024 @06:22PM (#42404453)
Yeah, avoiding Adobe software is probably a mandatory first step in this context.

If I remember correctly Google bought a source code license from some Aussie company (?) for rendering PDFs in Chrome. That was like a decade ago though. I wonder what happened since. Probably lots.

Re:Converting untrusted PDFs into trusted ones: The Qubes Wa... by AlotOfReading on Thursday December 12, 2024 @07:35PM (#42404892)
Google bought a license from Foxit, a Chinese company. They've open sourced it since. Mozilla wrote their own and also open sourced it, PDF.js
Re:Converting untrusted PDFs into trusted ones: The Qubes Wa... by lysace on Thursday December 12, 2024 @07:49PM (#42404977)
I do believe Foxit didn't present itself as a Chinese company at the time. Not sure where I got the Aussie thing from. They do and/or did have a Melbourne office. Perhaps its address was used for marketing purposes at the time.

https://web.archive.org/web/20140529210328/http://www.foxits...

> Founded in 2001, Foxit is a leading software provider of solutions for reading, editing, creating, organizing, and securing PDF documents. Headquartered in Fremont, CA, USA, Foxit has operations worldwide in China, Belgium, Japan, and Taiwan

Re:Converting untrusted PDFs into trusted ones: The Qubes Wa... by gruez on Thursday December 12, 2024 @08:01PM (#42405037)
There's more details in the wikipedia talk page: https://en.wikipedia.org/wiki/Talk:Foxit_Software

seems like most of their presence was in china, and was domiciled in china, but they had sales "offices" in other countries and so they emphasized that part for better PR.

Re:Converting untrusted PDFs into trusted ones: The Qubes Wa... by machinestops on Thursday December 12, 2024 @05:57PM (#42404276)
PDFs support JavaScript. Here's Adobe's guide on how to add JS to your PDFs: https://helpx.adobe.com/uk/acrobat/using/applying-actions-sc...
Re:Converting untrusted PDFs into trusted ones: The Qubes Wa... by Gigachad on Thursday December 12, 2024 @06:56PM (#42404667)
It might be in the PDF spec, but most viewers won't run JS.
Re:Converting untrusted PDFs into trusted ones: The Qubes Wa... by SideQuark on Friday December 13, 2024 @02:04AM (#42406516)
The most widely ones run JS. And the majority of pdf exploits are not js, but a wide mix over all the things a pdf reader supports.

https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=Acrobat