News for hackers. Stuff that matters.
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by Klasiaster on Wednesday January 24, 2018 @10:41AM (#16223489)
Not turning on standard mitigation techniques because of binary size is one of the strangest reasons I've heard. And then still programming in an unsafe language, quite self-confident for a "humble programmer".

https://www.cs.utexas.edu/~EWD/transcriptions/EWD03xx/EWD340... It has already taught us a few lessons, and the one I have chosen to stress in this talk is the following. We shall do a much better programming job, provided that we approach the task with a full appreciation of its tremendous difficulty, provided that we stick to modest and elegant programming languages, provided that we respect the intrinsic limitations of the human mind and approach the task as Very Humble Programmers.

Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by withinrafael on Wednesday January 24, 2018 @12:59PM (#16224758)
He won't go https, sign his binaries, or enable mark-of-web either. It's strange to see people still playing small binary golf in 2018.
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by vocatus_gate on Wednesday January 24, 2018 @02:08PM (#16225389)
Oh wow, I always assumed he just defaulted to HTTP version of the site, but HTTPS was an option. But nope, there isn't even a version of the site served over HTTPS. In the year 2018.
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by Ajedi32 on Wednesday January 24, 2018 @04:20PM (#16226433)
Yeah, that's pretty terrible. Seems like the only secure way to get a copy of 7-zip is to install it via Chocolatey or Sourceforge.
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by dogma1138 on Wednesday January 24, 2018 @06:55PM (#16227489)
Since they get theirs from an insecure source it really isnt.
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by icebraining on Thursday January 25, 2018 @05:25AM (#16229976)
No, you can get them from the official Sourceforge project over HTTPS: https://sourceforge.net/projects/sevenzip/
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by leeter on Wednesday January 24, 2018 @01:31PM (#16225044)
Or use a newer toolset than VC6 apparently. Honestly at this point there needs to be an intervention.
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by askvictor on Wednesday January 24, 2018 @10:00PM (#16228407)
It's open source; feel free to fork.
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by leeter on Thursday January 25, 2018 @08:49AM (#16230711)
sigh already downloaded the source, trying to convince myself I need to do this. The code is pretty much pure C++98 along with all the pain that comes with that.
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by exikyut on Thursday January 25, 2018 @05:23AM (#16229970)
"Secure 7-Zip" even sounds like a good name.
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by rootw0rm on Wednesday January 24, 2018 @09:19PM (#16228270)
Agreed.
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by chrisper on Wednesday January 24, 2018 @01:45PM (#16225185)
Is there a good alternative to 7-zip?
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by rurban on Saturday January 27, 2018 @03:48AM (#16245409)
I also lost my trust into zlib recently, given that the current released version is full of bugs, and the current master is written horribly. Not as bad as openssl, but close. E.g. they are still using K&R sigs, wrong casts, and have several copy&paste bugs which you only detect with a stricter c++ compiler.
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by Hello71 on Wednesday January 24, 2018 @03:11PM (#16225867)
for just decompression, unarchiver has free software implementation of unrar. for compression, use command line (tar -J, zip, whatever) or file roller.
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by nbsd4lyfe on Wednesday January 24, 2018 @09:35PM (#16228332)
Libarchive (sometimes known as bsdtar) supports 7z with an independent implementation.
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by pmorici on Thursday January 25, 2018 @08:44AM (#16230683)
I think he means an open source unarchiver that works on windows. Obviously Linux and bad have tar/gz/bz2 etc
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by askvictor on Wednesday January 24, 2018 @09:59PM (#16228403)
What are your criteria? I moved to Bandizip a few months back and it covers all of my requirements quite well.
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by skrowl on Wednesday January 24, 2018 @02:33PM (#16225596)
PeaZip is pretty good and is FOSS
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by mmozeiko on Wednesday January 24, 2018 @02:49PM (#16225706)
> PeaZip is free file archiver utility, based on Open Source technologies of 7-Zip, p7zip, FreeArc, PAQ, and PEA projects.

It seems to use 7-Zip and/or p7zip binaries.

Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by skrowl on Wednesday January 24, 2018 @03:22PM (#16225970)
p7zip was also patched. 18.00 doesn't have the bug, but it looks like Peazip hasn't been updated with it.

I'm not sure what other FOSS alternative to use. BandiZip is free (as in beer) but doesn't seem to have an update since Sept, so if it uses p7zip under the hood for 7z, it's also vulnerable.

[dead]
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by yzmtf2008 on Wednesday January 24, 2018 @03:37PM (#16226077)
Please stop with the hyperbolic strawman. None of "https, sign his binaries, or enable mark-of-web" are "latest performance killing mitigation strategies". Nobody is arguing with 7z's success, either. I don't know where you're sensing that.

These are just reasonable (or even necessary) techniques to ensure the security of the product you're shipping. We ought to know better.

Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by pcwalton on Wednesday January 24, 2018 @03:55PM (#16226218)
> He should be using a pile of frameworks on top of frameworks on top of a managed code environment with all the latest performance killing mitigation strategies. That's how we do things in 2018: keep adding crap until the software is slow and bloated.

This attitude is much of the reason why software security is as bad as it is today. I'll take a little "bloat" over ZIP files being able to install ransomware (and security vs. performance doesn't have to be a tradeoff anyway).

Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by blub on Wednesday January 24, 2018 @04:13PM (#16226357)
Using HTTPS for downloads and signing binaries won't magically make software slower.

It's the security equivalent of washing one's hands after using the toilet...

Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by quotheth on Wednesday January 24, 2018 @07:04PM (#16227538)
I feel strongly that you do not understand the performance implications of the mentioned mitigation techniques.
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by AnIdiotOnTheNet on Wednesday January 24, 2018 @10:29PM (#16228521)
These specific ones? Yeah, not that big a deal, but my post is about a development mindset, not the specific implementation. A few vulnerabilities show up in otherwise really great software and the idiots who browse this joint literally say the guy needs an intervention.
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by quotheth on Saturday January 27, 2018 @03:01AM (#16245312)
I don't get what you're arguing - this has nothing to do with the developer mindset. He just has to flip a compiler switch and vulnerabilities won't be trivially exploitable anymore.

It's totally irresponsible.

Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by exikyut on Thursday January 25, 2018 @05:26AM (#16229980)
Well, HTTPS and high-confidence builds are popular concepts here, given that this forum is frequented by people on both side of the security fence.

At least I would assume it is. There are lots of white-hat reports, so...

Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by userbinator on Thursday January 25, 2018 @06:28AM (#16230179)
No kidding. The authoritarian security cargo-culting irritates me too.

The fact that 7-zip bugs are rare enough that they make news when they are discovered already says a lot about the overall quality of the code. Many other projects with all the bloaty mitigations and other ostensibly "for security" cruft still manage to create severe bugs on a regular basis.

Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by quotheth on Saturday January 27, 2018 @04:00PM (#16248062)
I read posts like this and it's just so clear to me why we're so fucked.
Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by userbinator on Wednesday January 24, 2018 @10:59PM (#16228625)
On the other hand, Dijkstra also has this quote which suggests he is not too fond of "mitigation" either:

"If you want more effective programmers, you will discover that they should not waste their time debugging, they should not introduce the bugs to start with."

Re:7-Zip: Multiple Memory Corruptions via RAR and ZIP by Klasiaster on Thursday January 25, 2018 @04:30AM (#16229779)
Yes, that's why the quote was already suggesting to use better languages, but mainly it's about attitude and being aware that things go wrong, so you should turn on what you can you responsibly decided to stick to C.