News for hackers. Stuff that matters.
Re:Multiple 7-Zip Vulnerabilities Discovered by Animats on Thursday May 12, 2016 @02:49PM (#11685794)
Now this is a case for sandboxing. A decompressor has one input file and one output directory. It should not have the power to change any state outside those files.

A key point here is that not all code needs to be secure. Some code just needs to be kept in a box.

Re:Multiple 7-Zip Vulnerabilities Discovered by doomrobo on Thursday May 12, 2016 @03:58PM (#11686279)
I think OpenBSD's `pledge` syscall would be sufficient in this case. Calling

    pledge("stdio rpath wpath", {"path/to/input", "path/to/output"});
would blacklist any subsequent syscall that are not in the stdio or rpath or wpath lists [0] or pertain to a file that is not the input or output.

[0] http://man.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man2/...

Re:Multiple 7-Zip Vulnerabilities Discovered by Splines on Thursday May 12, 2016 @03:31PM (#11686085)
Even if it's in a box, you need to pull the thing you want back out of the box. A malicious file could put a payload into the destination file.
Re:Multiple 7-Zip Vulnerabilities Discovered by tekklloneer on Thursday May 12, 2016 @03:53PM (#11686239)
Yes, by containing the payload and decompressing it.

The difference is that by not sandboxing it, that malicious file could also cause its payload to be executed in the permission scope of the decompressor.

Re:Multiple 7-Zip Vulnerabilities Discovered by Animats on Thursday May 12, 2016 @05:22PM (#11686876)
That's pointless. Putting the malicious file in the archive would accomplish the same result.
Re:Multiple 7-Zip Vulnerabilities Discovered by nickpsecurity on Thursday May 12, 2016 @04:58PM (#11686734)
We're at the point where tools can automatically transform code for safety with OK penalties and some MAC implementations have about no penalties. Yet, still no use on the exact types of tools they're easiest to apply to. (Shakes head.)
Re:Multiple 7-Zip Vulnerabilities Discovered by mentat on Thursday May 12, 2016 @03:03PM (#11685890)
Same with transcoders