Live data from Hacker News

7-Zip: Multiple Memory Corruptions via RAR and ZIP

landave.io

81–90 of 106 posts

Re: 7-Zip: Multiple Memory Corruptions via RAR and ZIP

#81

Earlier quoted context omitted.

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.

Is there a good alternative to 7-zip?

Libarchive (sometimes known as bsdtar) supports 7z with an independent implementation.

Re: 7-Zip: Multiple Memory Corruptions via RAR and ZIP

#82

Earlier quoted context omitted.

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.

Is there a good alternative to 7-zip?

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

#83
post #37

Earlier quoted context omitted.

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.

Or use a newer toolset than VC6 apparently. Honestly at this point there needs to be an intervention.

It's open source; feel free to fork.

Re: 7-Zip: Multiple Memory Corruptions via RAR and ZIP

#84

Earlier quoted context omitted.

I've actually heard many people (including one Chrome developer) that they don't even use AV anymore except Windows Defender because 99% of AV break Windows/applications by using non-standard hooks and may even introduce new vulnerabilities with their kernel drivers/etc. https://it.slashdot.org/story/17/02/01/1334219/google-chrome... Honestly, if they can't even stop viruses from infiltrating closed systems like Andr…

Yeah, anti-virus is a crap idea. Real security is proactive security (exploit mitigation, sandboxing, correct code, safe languages). Reactive security kinda sucks. You have to patch known vulnerabilities , sure, but detecting exploits? Ugh. Eww. Do not like. And indeed users mostly install malware these days, because self spreading (actual "viruses") is hard (we're not in the DOS/Win9x days anymore). So users should…

This is really just not accurate. You can say that AVs are crap, but please don't put all of your eggs in the 'proactive security' basket. At one point that was actually the prevailing attitude, and it just failed absolutely miserably.

Instead, today, we see more companies invest in what's called "incident response". Part of a healthy incidence response program is signature detection - AV plays a role in this.

If you don't have good detection capabilities you're missing a huge portion of what makes an organization secure.

Relying on proactive users is also a recipe for disaster and not a realistic goal at all, nor should it be.

Re: 7-Zip: Multiple Memory Corruptions via RAR and ZIP

#85

Earlier quoted context omitted.

Right? 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. It is understandable if you don't agree with this guy's approach to doing things, but it would be difficult to argue with its success. 7zip is a popular as it is…

I feel strongly that you do not understand the performance implications of the mentioned mitigation techniques.

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

#86
post #69
post #68

Earlier quoted context omitted.

It would be interesting to have a comparison based on locally built binaries both with and without these features enabled. Performing the tests on packing the actual 7-Zip source code (as shipped without extras) would be a valid reference suite.

I assume you mean a performance comparison? The runtime performance cost of ASLR on Windows is zero once a binary has been loaded, since the code is relocated at load time. Stack canaries might cause a slight performance hit, but it is usually below one percent, since it creates only a small cost per function call for a fraction of all functions.

People not caring about load time costs are probably one of the reasons the guy still uses VC6, which starts up practically instantly.

Re: 7-Zip: Multiple Memory Corruptions via RAR and ZIP

#87

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…

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

#88
post #72
post #5

Earlier quoted context omitted.

You are completely right with the first comment. The antivirus product itself reuses parts of 7-Zip and is vulnerable itself. I mentioned this mainly because I did not analyze the original 7-Zip software, but only discovered that it was affected as well after I had found the bug in this antivirus product. I admit that this is confusing, so I'll probably try to rephrase this.

Seems like a possible license violation then (7-Zip is LGPL).

LGPLG is let's you use a library without distributing the source code of the whole program.

Re: 7-Zip: Multiple Memory Corruptions via RAR and ZIP

#89
post #72

Earlier quoted context omitted.

Seems like a possible license violation then (7-Zip is LGPL).

LGPLG is let's you use a library without distributing the source code of the whole program.

Read section 4 of https://www.gnu.org/licenses/lgpl-3.0.en.html, there are some things you still have to do.

Re: 7-Zip: Multiple Memory Corruptions via RAR and ZIP

#90

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…

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."

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.
Post reply on HN