252 points · by landave · 8y ago · 101 comments
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.
"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."
The way its written, I first took the mention of finding this "during the analysis of a prominent antivirus product" to mean that you were reverse engineering some AV thing and found that it was scanning for this vulnerability (i.e., to protect against bad archives). After a second read, it seems like maybe not, and that the AV itself re-used parts of 7-zip for its own implementation and was therefore vulnerable itself. Still not sure, though.
The way the stylesheet makes the "rendered" form (especially section headings) resemble markdown source is pretty neat.
I admit that this is confusing, so I'll probably try to rephrase this.
https://it.slashdot.org/story/17/02/01/1334219/google-chrome...
Honestly, if they can't even stop viruses from infiltrating closed systems like Android and iOS, I don't see how an anti-virus suite could ever win the battle against a user intentionally installing a virus.
(Of course, desktop apps are a different ballpark than web apps/websites where you're merely connecting to a website vs installing a dedicated application with filesystem access.)
As far as I see it's just section headers, but I agree the stylesheet is very nice. The section header prefix (###) could be an anchor to the section though (<a href="#section">).
Performing the tests on packing the actual 7-Zip source code (as shipped without extras) would be a valid reference suite.
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.
2017-12-29 - Discovery
2017-12-29 - Report
2017-12-29 - MITRE assigned CVE-2017-17969
2018-01-10 - Patched version 7-Zip 18.00 released
18.00 is marked as "beta" in the official website, and 16.04 is still at the top of the list. An average person trying to download 7-Zip right now will most likely choose the vulnerable version.
Beta versions of 7-Zip frequently stay in that status for months, if not years. Between 9.20 and 15.12, 7-Zip produced nothing but beta versions for 5 years. I understand the project moves slowly, but this is not a release model that facilitates quick dissemination of important security patches.
That's not all that surprising. The software was 10 years old when v9 came out and the major version number is just the year of release. There aren't 5 major releases that never got out of beta. The major version numbers in 7-Zip are misleading this way because the author doesn't really conform to standard conventions. Of course, that is pretty obvious once you use the software for awhile. It still doesn't properly support UAC.
7-Zip doesn't appear to contain an auto-updater or an "update me" button.
https://sourceforge.net/p/sevenzip/discussion/45797/thread/6...
Just checked keka on macOS, and it uses the p7zip code.
Sounds like a fun project.
It may be that the blog post is difficult to understand simply because I have written it poorly...
http://seclists.org/fulldisclosure/2015/Sep/106 https://www.rarlab.com/vuln_zip_spoofing_4.20.html
This is not a vulnerability: