News for hackers. Stuff that matters.
Re:Rga: Ripgrep, but also search in PDFs, E-Books, Office do... by fwip on Tuesday September 17, 2024 @02:38PM (#41571092)
Also note that it's not necessarily safe to read these documents even if you don't intend on executing embedded code. For example, reading from pdfs uses poppler, which has had a few CVEs that could result in arbitrary code execution, mostly around image decoding. https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=poppler

(No shade to poppler intended, just the first tool on the list I looked at.)

Re:Rga: Ripgrep, but also search in PDFs, E-Books, Office do... by sim7c00 on Tuesday September 17, 2024 @03:50PM (#41571904)
this is why i do like to try and parse shit myself for my own tools, not that thats without risk but i dont share my.code so its untargeted. however, to support a wide variety like this the tools are ok. most code honestly in a pdf will not target pdftotext , i think. i think it would target the thing people open pdfs with like browsers and maybe a few readers like adobe and foxit reader. pdftotext seems more like an 'academic target', like a nice exersize but not very fruitful in an actual attack. i might be wrong tho.
Re:Rga: Ripgrep, but also search in PDFs, E-Books, Office do... by sadboi31 on Tuesday September 17, 2024 @05:05PM (#41572727)
Citation indexes are the devil and Google is hell. Try as you might to avoid it but you're already on an index. Security through obscurity isn't secure or obscure in this modern age. https://www.tandfonline.com/doi/full/10.1080/03054985.2024.2...
Re:Rga: Ripgrep, but also search in PDFs, E-Books, Office do... by rectang on Tuesday September 17, 2024 @02:42PM (#41571144)
That's a qualitatively different kind of security topic, though. On the one hand, we have a bug in a tool that reads a passive format with complete accuracy. On the other we have the need to sacrifice some amount of accuracy to avoid executing embedded code in a dynamic file format.
Re:Rga: Ripgrep, but also search in PDFs, E-Books, Office do... by westurner on Tuesday September 17, 2024 @09:31PM (#41574793)
Couldn't or shouldn't each parser be run in a container with systemd-nspawn or LXC or another container runtime? (Even if all it's doing is reading a file format into process space as NX data not code as the current user)
Re:Rga: Ripgrep, but also search in PDFs, E-Books, Office do... by westurner on Wednesday September 18, 2024 @03:32AM (#41576846)
NX bit: https://en.wikipedia.org/wiki/NX_bit

Executable-space protection > Limitations mentions JITs and ROP: https://en.wikipedia.org/wiki/Executable-space_protection

mprotect(), VirtualAlloc[Ex] and VirtualProtect[Ex],

"NX bit: does it protect the stack?" https://security.stackexchange.com/questions/47807/nx-bit-do...