Slashdot Mirror


Dangerous 7-Zip Vulnerabilities Flow To Top Security, Software Tools (theregister.co.uk)

mask.of.sanity quotes a report from The Register: Some of the world's biggest security and software vendors will be rushing to patch holes in implementations of the popular 7-Zip compression tool to stop attackers gaining full control of customer machines. Marcin Noga, Cisco security researcher, found and reported the holes to the platform, which could allow attackers to compromise updated machines, giving attackers the same access rights as logged-in users. FireEye and MalwareBytes are two of many products that use 7-Zip. "An out-of-bounds read vulnerability exists in the way 7-Zip handles Universal Disk Format files ... [which] can be triggered by any entry that contains a malformed Long Allocation Descriptor," Colleague of The Register Jaeson Schultz said. The flaws were fixed in 7-Zip 16.00, which was released Tuesday.

109 comments

  1. Re:Big pile of mess to clean up by 110010001000 · · Score: 5, Funny

    "catched it"? Your spell checker should have caught that one.

  2. Stable? by sims+2 · · Score: 1

    I'm glad to see its finally out of beta.

    --
    Minimum threshold fixed. Thanks!
    1. Re:Stable? by Anonymous Coward · · Score: 0

      There were two stable releases last year, but it was easy to miss them considering the previous stable release had been in 2010.

  3. Re: Big pile of mess to clean up by LoRdTAW · · Score: 1

    I think you meant language debugger.

  4. Re: Big pile of mess to clean up by viperidaenz · · Score: 3, Funny

    Or Parsey McParseface

  5. DANGEROUS? by Anonymous Coward · · Score: 0

    You mean... it's killed children!?

  6. Open Source And Would Not Be Here by Anonymous Coward · · Score: 0

    This is why millions of eyes on code is a solid requirement for any software. It IS the undisputed truth.

    1. Re:Open Source And Would Not Be Here by malditaenvidia · · Score: 0

      It also ensures these vulnerabilities will be fixed. I wonder how many undisclosed holes winZIP and winRAR have.

    2. Re:Open Source And Would Not Be Here by CoderJoe · · Score: 1

      How long has OpenSSL been open source and had major vulnerabilities before they were found?

    3. Re:Open Source And Would Not Be Here by Anonymous Coward · · Score: 0

      you mean this source code?

      https://sourceforge.net/projects/sevenzip/files/7-Zip/16.00/7z1600-src.7z/download

    4. Re:Open Source And Would Not Be Here by Jawnn · · Score: 1

      How long has OpenSSL been open source and had major vulnerabilities before they were found?

      A pretty long time. What is your point? Surely you are not arguing that those flaws would have been found sooner if it had been closed source. That would just be stupid.

  7. "user permissions" != "full control" by gweihir · · Score: 2

    Al least in any sane system, and Windows has started, a few decades late, to use sound OS design practices. So no, not "full control".

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    1. Re:"user permissions" != "full control" by Anonymous Coward · · Score: 0, Insightful

      Except Linux has permission escalation bugs that can turn user permissions into root permissions, and those bugs are not given very high priority.

    2. Re:"user permissions" != "full control" by Anonymous Coward · · Score: 0

      rm -rf $HOME/*

    3. Re:"user permissions" != "full control" by aberglas · · Score: 3, Insightful

      The myth of root is just that. The days of lots of people sharing the one client computer are long gone. For PCs, most of the good stuff is accessible in user mode. All the documents, email etc.

    4. Re:"user permissions" != "full control" by johannesg · · Score: 3, Interesting

      What "sound design practices" would those be? As far as I can tell, the choice is still either full denial (resulting in not being able to use the software), or the keys to the kingdom (based on whether you trust that the developer is kosher and his website has not been compromised). There is no middle ground - "install this, but keep it locked in a sandbox".

      And Linux is just as bad. So what if the OS protects itself from the users? The OS has literally zero value; if it gets wiped, it's 30 minutes work to rebuild it from scratch, less if you made an image. It's the _data_ that is on the machine, completely unprotected by all those clever permission schemes, that will be lost if any compromised software is allowed to run. If you run "rm -rf /", you remove precisely all the files anyone cares about.

      The Linux permission schema was designed when computers were hulking beasts that shared limited resources between many users that needed protection from each other. We then moved through personal (i.e. single user) computers where such protection is of limited use, to today's practice of having each application running in a container - providing data protection in the form of a kind of meta-OS, since the main OS is clearly just not capable enough.

      The whole thing, whether in Windows or in Linux, is just one big clusterfuck of endless wasted effort solving entirely the wrong problem.

    5. Re:"user permissions" != "full control" by gweihir · · Score: 1

      You may have a lot of access and control as user, but not "full control".

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    6. Re:"user permissions" != "full control" by gweihir · · Score: 3, Interesting

      My take is more that the problem is people not understanding the permission system. Used right, it works pretty well. The whole container-thing comes from people not understanding how to isolate things using the classical UNIX model (and software distributed as binary, of course). Incidentally, containers make you _less_ secure against a competent attacker as they add additional ways to compromise the system and disregard KISS, while pretending otherwise.
       

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    7. Re:"user permissions" != "full control" by Anonymous Coward · · Score: 0

      except for, of course, the 10's of thousands of companies that run more than one shift, and aren't total IT losers like our parent poster. Hell even Windoqs users have figured out how to copy their profiles and desktop settings to multiple machines.
      buy a clue.

    8. Re:"user permissions" != "full control" by Anonymous Coward · · Score: 0

      You may have a lot of access and control as user, but not "full control".

      How about "full control of anything of importance"?

    9. Re:"user permissions" != "full control" by fuzzyfuzzyfungus · · Score: 2

      I suspect that part of the concern is that 7zip is sometimes found in program installers, which typically do run with elevated permissions. Those are also the places where obsolete versions are probably going to remain embedded forever unless the vendor cares atypically much about fixing them.

      It'll be harder to trick an installer to chew on a suitably malformed file, compared to a user just using 7zip; but if you can manage it, you get a nice, handy, elevated context.

    10. Re:"user permissions" != "full control" by Anonymous Coward · · Score: 0

      No one's responded with "obligatory xkcd" yet?

    11. Re:"user permissions" != "full control" by Anonymous Coward · · Score: 0

      https://xkcd.com/1200/

    12. Re:"user permissions" != "full control" by Insightfill · · Score: 3, Funny

      Al least in any sane system, and Windows has started, a few decades late, to use sound OS design practices. So no, not "full control".

      I haven't had "full control" of my Windows computer in a while. Maybe I can use this 7zip vulnerability to get something back from this beast of Windows 10.

    13. Re:"user permissions" != "full control" by Anonymous Coward · · Score: 0

      Those who do not understand unix are doomed to reimplement it poorly. On what planet do you "have each application running in a container"? Go to any datacenter and bring up a root console, you'll see everything running under different user ids, sharing the resources on the machine. Like it's supposed to.

    14. Re:"user permissions" != "full control" by Anonymous Coward · · Score: 0

      So how does your imaginary permission system protect my documents from a virus that came in through a 7-Zip zero day and that is currently running under the exact same user account as 7-Zip and my word processor, i.e. mine?

    15. Re:"user permissions" != "full control" by Anonymous Coward · · Score: 0

      There are 'application firewall' systems where specific applications are allowed to access specific areas and types of data and others are not, irrespective of the user account. For instance an installer that tries to root around in a folder full of documents might be not kosher.

    16. Re:"user permissions" != "full control" by Anonymous Coward · · Score: 0

      The myth of root is just that. The days of lots of people sharing the one client computer are long gone. For PCs, most of the good stuff is accessible in user mode. All the documents, email etc.

      True, though things like installing software, changing settings, taking over keyboard control, etc. are still restricted to "admin-level" access. Things like file system snapshots and write access to backups (e.g., Time Machine) is also not accessible to "regular-level" accounts.

      So yes, information (documents, e-mails) can be gained via the user's "normal" day-to-day account, but if that account does not have "admin-level" access, then recovering / restoring things can be a lot easier if you don't have to start from bare-metal. For example, we were hit with some kind of ransowmare at work on a particular file server share that had a lot of stuff (tens of TB). It was no big deal though because we had daily snapshots running for that area, and simply restored things in relatively short order.*

      By using a non-privileged account, users can limit damage and restore quickly. (Of course many attacks take a remote attack and then leverage a local-only exploit, but by not using an admin-level account it's one more hoop to jump through.)

      * Which when I hear about (say) organizations being hit, I wonder: why don't they just restore from (read-only) snapshots or backups? Sure the desktops can be hosed, but those can simply be re-imaged. And if your data is on a file server, why wouldn't you be using snapshots (in addition to backups)?

    17. Re:"user permissions" != "full control" by tlhIngan · · Score: 1

      Al least in any sane system, and Windows has started, a few decades late, to use sound OS design practices. So no, not "full control"./blockquotes.

      Depends on the process.

      An antivirus/malware scanner may very well run with elevated privileges since it needs to be able to scan files the user doesn't have direct access to. Thus, it's possible that a carefully crafted 7z file can be used to run code in an elevated mode...

    18. Re:"user permissions" != "full control" by gweihir · · Score: 1

      Which nicely illustrates my point: You do not understand what a permission system is for, as that is not its task.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    19. Re:"user permissions" != "full control" by Tapewolf · · Score: 1

      And Linux is just as bad. So what if the OS protects itself from the users? The OS has literally zero value; if it gets wiped, it's 30 minutes work to rebuild it from scratch, less if you made an image. It's the _data_ that is on the machine, completely unprotected by all those clever permission schemes, that will be lost if any compromised software is allowed to run. If you run "rm -rf /", you remove precisely all the files anyone cares about.

      Depends what you're trying to do. If the aim is destroy the user's data, hold it hostage or sift through it for credentials or other useful info, yes, you're screwed.

      But you can't spam email or run a phishing server on a standard port because opening a listener on any port below 1024 requires root. Installing system-level malware requires root. You could set up some kind of user-level autorun but the implementation will likely depend on the shell they're using, Unity, Gnome, KDE, XFCE.

    20. Re:"user permissions" != "full control" by Anonymous Coward · · Score: 0

      I have no directories in my $HOME, you insensitive clod.

    21. Re:"user permissions" != "full control" by gweihir · · Score: 1

      Not even that and by a far cry. Maybe "full control of what the clueless user thinks is important".

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    22. Re:"user permissions" != "full control" by gweihir · · Score: 1

      I might add that preventing things a user starts from destroying all that user's data is not actually a task of the permission system.

      The correct fix for 7z is to fix the vulnerability. As 7z must be able to read and write arbitrary files to do its job, there is _nothing_ the permission system can do, not even MAC like SELinux would help. All those people blaming the "OS" really do not understand what they are talking about.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    23. Re:"user permissions" != "full control" by gweihir · · Score: 1

      A clean installer will not work on anything except the files it came with and it will not run any code (package or otherwise) that a user gives to it with elevated privileges. And there we have the problem: On Windows, you are supposed to give root-permissions to far too many things, making them pretty meaningless.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    24. Re:"user permissions" != "full control" by Tapewolf · · Score: 1

      As 7z must be able to read and write arbitrary files to do its job, there is _nothing_ the permission system can do, not even MAC like SELinux would help. All those people blaming the "OS" really do not understand what they are talking about.

      An excellent point. A granular permission system similar to Android's would help in many cases, e.g. preventing a text editor from performing a DDOS attack, but it cannot stop a file manager or archiver from attacking the user's files.

    25. Re:"user permissions" != "full control" by Paul+Carver · · Score: 1

      List five things that a non-admin user can't access/change/delete that can't be restored by wiping and reinstalling.

      The important stuff on the computer is the stuff the "clueless user" created or modified, not the stuff that was preloaded or installed from download/auto-update/disc or deployed by an administrator on thousands of machines via push automation.

    26. Re:"user permissions" != "full control" by Anonymous Coward · · Score: 0

      Contrary to you apparently, I do understand what a permission system does and what it is for, but you don't understand that on most computers it serves (almost) no useful purpose. You're just proving Johannes's point: ‘The OS has literally zero value; if it gets wiped, it's 30 minutes work to rebuild it from scratch, less if you made an image. It's the data that is on the machine, completely unprotected by all those clever permission schemes, that will be lost if any compromised software is allowed to run.’

    27. Re:"user permissions" != "full control" by Anonymous Coward · · Score: 0

      And they are mostly useless because they either create so much hassle that you cannot get any work done, or you run into issues like that 7-Zip has do be able to access your documents in order to put them in archives and therefore something that sneaked in via 7-Zip can do the same.

  8. Apologists Unite! by Anonymous Coward · · Score: 0

    Derpitydoo open blahbityda source bliperado many hurrdurr eyes!

  9. Version 16? by SeaFox · · Score: 1

    Why did the version numbering jump so much? It went from 9.38 to 15.05 in five months with no releases between those two.

    1. Re:Version 16? by Anonymous Coward · · Score: 4, Informative

      "7-Zip uses YEAR.REVISION scheme for version numbers."
      https://sourceforge.net/p/sevenzip/discussion/45797/thread/a8fd6078/#1a6c/4be3/04ce

    2. Re:Version 16? by Anonymous Coward · · Score: 0

      "7-Zip uses YEAR.REVISION scheme for version numbers."

      Interesting, but not entirely accurate. If you believe their version history, 9.20 stable release date was 2010-11-18; 9.38 beta date was 2015-01-03. The next version listed is 15.05 beta on 2015-06-14.
      Well... maybe they NOW use a year revision scheme, but that didn't start until 15.05, apparently.

    3. Re:Version 16? by Anonymous Coward · · Score: 0

      That is still far too behind. We are in the year 2016, not 0016. Did we not learn anything from Y2K? ;)

    4. Re:Version 16? by Anonymous Coward · · Score: 0

      7-Zip uses YEAR.REVISION scheme for version numbers.

      Interesting, but not entirely accurate. If you believe their version history, 9.20 stable release date was 2010-11-18; 9.38 beta date was 2015-01-03. The next version listed is 15.05 beta on 2015-06-14.
      Well... maybe they NOW use a year revision scheme, but that didn't start until 15.05, apparently.

      First, the history you linked isn't complete. The 7-Zip history appears to recognize only those versions where Igor Pavlov released source code, which he doesn't do for all pre-release versions, particularly those he classifies as alphas, e.g. v15.00 through 15.03. There is a comment to his v15.00 announcement which complains about his source code release/commit practices.

      AIUI, the YEAR.REVISION scheme is always applied whenever the major version is changed, so for example, v4.00 alpha was released in 2004, and the first release after that was v4.20 in 2005. I cannot tell why Igor has ever bumped the major version, including v15.00, where there is no obvious major change compared to other betas/alphas before it. Maybe he added support for another compiler (e.g. latest MSVC) with v15.00, though that is only my guess. For all I know, on the first day of every month he rolls an old AD&D D20 for a saving throw versus major version increment, which he apparently failed on 01 April of last year - good thing it wasn't a red dragon breath attack...

      - T

  10. A total non story .. by khz6955 · · Score: 1

    "Anytime the vulnerable code is being run by any sort of privileged account, an attacker can exploit the vulnerability and execute code under those same permissions," ref

    1. Re:A total non story .. by cnettel · · Score: 1

      Yeah, that's precisely what you would expect for a vulnerability in user space code. "Just" unzip a 7-zip file and suddenly any file in your home directory can be compromised... or gone. Run a vulnerability scanner on your e-mail server (with insufficient sandboxing), or on your web server for uploading files, and things get... worse.

    2. Re:A total non story .. by khz6955 · · Score: 1

      None of which would work except on the Intel platform, which is a story for another day ...

  11. Reboot? by Anonymous Coward · · Score: 0

    Why the hell did i have to reboot to install a opensource compression package? Never done that before...

    1. Re:Reboot? by bitwise+counselor · · Score: 1

      7-zip is integrated into the windows shell.

    2. Re:Reboot? by Anonymous Coward · · Score: 0

      I didn't have to reboot. I just clicked install and it extracted to the existing 7zip folder.

    3. Re:Reboot? by Anonymous Coward · · Score: 0

      Zip, yes. 7zip, no.

    4. Re:Reboot? by denis-The-menace · · Score: 1

      It depends what you DL.

      If you DL an MSI or EXE Installer, you might need to reboot.

      If you DL just the files, no reboot. (and no shell integration)

      --
      Obama's legacy: (N)othing (S)ecure (A)nywhere and (T)error (S)imulation (A)dministration
  12. Re:Big pile of mess to clean up by Anonymous Coward · · Score: 2, Insightful

    Except even very skilled and organized coders makes bugs, even if less frequently, which means security bugs sometimes come in groups and sometimes not...

  13. I'm not using UFS or HFS+ file system by Anonymous Coward · · Score: 0

    So I'm safe.

  14. ...what? by wonkey_monkey · · Score: 1

    Dangerous 7-Zip Vulnerabilities Flow To Top Security, Software Tools

    What?

    --
    systemd is Roko's Basilisk.
    1. Re:...what? by Anonymous Coward · · Score: 0

      From what I can guess, certain security software (which may need to run with high level permissions) uses the 7zip code for their archive scanning. This means that the 7zip code may run with the same permissions, and if the exploit is executed, will run with high level permissions.

  15. So how do you open ZIP files these days? by DNS-and-BIND · · Score: 1

    So, when installing a new machine, how do you choose to open zip files? Winzip has that irritating registration screen, Windows native zip opening lacks features, 7zip sucks too, so what do people use these days that's free and downloadable?

    --
    Shutting down free speech with violence isn't fighting fascism. It IS fascism!
    1. Re:So how do you open ZIP files these days? by Tapewolf · · Score: 2

      So, when installing a new machine, how do you choose to open zip files? Winzip has that irritating registration screen, Windows native zip opening lacks features, 7zip sucks too, so what do people use these days that's free and downloadable?

      I doubt there are many implementations of 7zip out there. Chances are anything which can open a .7z file does so by using 7zip's SDK. It's public domain, so there's no reason not to unless you're working in a language that can't link to C libraries.

    2. Re:So how do you open ZIP files these days? by Anonymous Coward · · Score: 2, Informative

      What sucks about 7zip?
      That's what I use exclusively.

    3. Re:So how do you open ZIP files these days? by Anonymous Coward · · Score: 0

      Winrar!

    4. Re:So how do you open ZIP files these days? by Anonymous Coward · · Score: 5, Insightful

      "7zip sucks too"

      Totally disagree.

      On Windows it is the best compression tool (all impressive merits of the 7z format aside) simply because it does exactly what you want: installs windows shell commands, which really are invaluable:

        - Right click a folder and choose "Add to xxxx.7z" to make a 7z archive (last used settings) or "Add to xxxx.zip" to make a zip file (last used settings) or "Add to Archive" to bring up the options and customize everything. There are shell commands for sending via email, but I don't use those myself.

        - Right click any archive file and choose "Extract to ...." to dump the contents into a folder in the current directory. There is another option to bring up a dialog and choose where to put the contents.

      At the end of the day, 99.9999% of archive management is covered by these few commands and they really just get the job done.

      It's as nice as right clicking a folder of MP3s and choosing "Play in Winamp". It was good that this was added to VLC, but I also see that Microsoft copied this and now I have an annoying "Play in Windows Media Player" option there as well. I *know* I can get rid of it, but life's too short.

    5. Re:So how do you open ZIP files these days? by Anonymous Coward · · Score: 0

      Try running a temp directory on your ramdrive and then tell me what sucks about 7z.
      It's as if these morons never saw a computer before.

    6. Re:So how do you open ZIP files these days? by nickersonm · · Score: 1

      I prefer WinRAR.

    7. Re:So how do you open ZIP files these days? by Anonymous Coward · · Score: 0

      What dumb nigger would use a ramdrive? Are we back in 1985?

    8. Re:So how do you open ZIP files these days? by Anonymous Coward · · Score: 0, Flamebait

      I prefer WinRAR.

      Then you prefer to suck.

    9. Re:So how do you open ZIP files these days? by Anonymous Coward · · Score: 0

      So, when installing a new machine, how do you choose to open zip files? ... Windows native zip opening lacks features, ... so what do people use these days that's free and downloadable?

      I've never had any problems with Windows shell's built-in zip extraction, so I'm curious what zip features you think are missing.

    10. Re:So how do you open ZIP files these days? by drinkypoo · · Score: 1

      They fixed the vuln in 7zip already. The download is tiny (1.3 MB for 64 bit) and the install/upgrade is nigh-instantaneous. The only thing I know of wrong with 7zip is that when you use drag and drop it extracts to a temp folder and then moves the files, which can have unfortunate results. If you use extract to, you don't have that problem. Hell, maybe they fixed that. Probably not :)

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    11. Re:So how do you open ZIP files these days? by Anonymous Coward · · Score: 1, Insightful

      WinRAR does all that, but better.

    12. Re:So how do you open ZIP files these days? by Anonymous Coward · · Score: 0

      I have seen the following archivers on Ninite.com:
      7zip
      PeaZip
      WinRAR

      I kept using 7zip, so I cannot speak for the other two.

    13. Re:So how do you open ZIP files these days? by EvilSS · · Score: 1

      WinRAR isn't free. It costs $29 or you can choose to install it with some malware for free.

      --
      I browse on +1 so AC's need not respond, I won't see it.
    14. Re:So how do you open ZIP files these days? by Anonymous Coward · · Score: 0

      try creating a password protected archive

      or unzipping an aes256 password protected archive

    15. Re:So how do you open ZIP files these days? by Anonymous Coward · · Score: 0

      LOL. No thanks.

      If aespipe won't work, I'll just tell the idiot who sent me the file not to do that again.

    16. Re:So how do you open ZIP files these days? by Anonymous Coward · · Score: 0

      Works fine. Are you a drag-and-drool moron by chance?

    17. Re:So how do you open ZIP files these days? by sexconker · · Score: 1

      They have not fixed it, and the developer says he won't.
      He gave some excuse about not being able to tell what the target of the drop point was until the extraction was done. I believe it was bullshit in 2010, and it's almost certainly bullshit now.

      https://sourceforge.net/p/seve...

    18. Re:So how do you open ZIP files these days? by Anonymous Coward · · Score: 0

      They have not fixed it, and the developer says he won't.

      I guess you didn't read all the way to the end of TFA, where it states that both vulnerabilities were addressed in v16.00. Also, see Igor Pavlov's reply to a post on this exact question in the v16.00 announcement, where he explicitly states that both bugs have been fixed in v16.00. So your second assertion, "the developer says he won't", is false. To be fair, I haven't seen confirmation of the fix by independent security researchers, so if you have support for your first assertion, "They have not fixed it", I'm sure we'd all be interested in seeing it.

      He gave some excuse about not being able to tell what the target of the drop point was until the extraction was done. I believe it was bullshit in 2010, and it's almost certainly bullshit now.

      https://sourceforge.net/p/seve...

      Your link is to some problem with how Windows Explorer reports drag-and-drop targets to the source application. From the Talos analysis, the two vulnerabilities in question appear to be unrelated to Windows Explorer drag-and-drop. Did you link to the wrong old post?

      I haven't manually coded a Windows Explorer drag-and-drop in nearly a decade, so I don't remember enough about it to tell if Igor's response in your link qualifies as "bullshit". Normally, I would go refresh my knowledge of the relevant COM interfaces, but your post already appears to be off base, so I'd say the onus is on you to cite the MSDN documentation supporting your accusation of "bullshit".

      - T

    19. Re:So how do you open ZIP files these days? by Anonymous Coward · · Score: 0

      In what way is it better?

    20. Re:So how do you open ZIP files these days? by Anonymous Coward · · Score: 0

      WinRAR does the same thing.

  16. Re:Big pile of mess to clean up by Anonymous Coward · · Score: 0

    People do this because C and C++ are faster than the new ones.

  17. Re:Big pile of mess to clean up by Anonymous Coward · · Score: 0

    > a programming language so crude it does not even have a concept of an array, and hence bounds checking

    Obviously, http://en.cppreference.com/w/c... doesn't exist in your world.

  18. Re:Big pile of mess to clean up by silentcoder · · Score: 2, Insightful

    The astonishing thing is that after 3 decades of stack-crashing causing more security bugs than any other type - there still isn't a native array/hash/list type added to C.
    One can sanely argue that there are genuine cases where C's freedom to do almost anything is both needed and wanted - but how does that preclude giving sane, one-place-fixable standard data types for common tasks which you can deviate from only when you do, in fact, have to ?

    Sure there are implementations of such in some libraries - but the moment you go there your programs portability and shippability is suddenly dependent on those of the library. This is the kind of functionality that ought to have been in ANSI-C decades ago so you could use it, and compile with any standards compliant compiler on any platform without fear.

    --
    Unicode killed the ASCII-art *
  19. Re:Big pile of mess to clean up by TheRaven64 · · Score: 1

    He talked about array, not vector.

    --
    I am TheRaven on Soylent News
  20. Re:Big pile of mess to clean up by TheRaven64 · · Score: 5, Informative

    The astonishing thing is that after 3 decades of stack-crashing causing more security bugs than any other type - there still isn't a native array/hash/list type added to C.

    There is, but the resulting language is called C++. The type system of C doesn't allow you to have container-of-X, where X is some other type, constructs without resorting to macros. A lot of systems (including Windows NT and Linux) use derivatives of the 4BSD headers for this, but they use a container-of pattern that involves casting from a pointer to member to a pointer to the outer structure in a way that depends on explicit casts and makes it easy to accidentally violate type safety.

    --
    I am TheRaven on Soylent News
  21. Re:Big pile of mess to clean up by Anonymous Coward · · Score: 0

    > C blah blan mumble 2016 mumble

    And what are you proposing? PHP?

    (those "if this were written in $MY_FAVE_LANG this wouldn't have happened" really miff me. Even worse those who are too coward not to name $MY_FAVE_LANG).

    Pro tip: improve the craftspeople, then the tools.

  22. Re:Big pile of mess to clean up by Anonymous Coward · · Score: 0

    Yes, everything should be done in JavaScript or Flash.

  23. "A few decades late"? WTF?? by Anonymous Coward · · Score: 1

    From 1992 onward C-2 Orange Book security design in Windows NT based OS (NT/2000/XP/7) was HUGE leap over Win9x & certainly Win3.x + below before it (in both stability & security).

    They ALL have Access Control Lists + Group Policies, as far as security goes, on NTFS filesystems & registry level access by user name or group as well!

    APK

    P.S.=> Unless I misunderstood you, I have to ask you - have you actually USED any/all of those versions of Windows before that you made the statement you did? apk

    1. Re:"A few decades late"? WTF?? by gweihir · · Score: 1

      You misunderstand. The OS has had those for a while, but privilege escalation was not taken seriously on user machines and hence the level of privilege was mostly meaningless as escalation without permission was very easy.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  24. What the heck does this mean? by Bruinwar · · Score: 1

    Can someone please tell me what this means to me?

    I do not work in IT, I work in engineering. Our IT department keeps themselves clueless about CAD & CAD data management & somehow, mainly by default, I am the admin (in my spare time HA! what exactly is spare time?!). I've been using & deploying 7zip on all the clients I install our CAD platforms on.

    Are all these machines at risk? Am I going to get an email from that IT guy yet again?

    --
    SLOWER TRAFFIC KEEP RIGHT
    1. Re:What the heck does this mean? by Anonymous Coward · · Score: 0

      Deploy the updated 7-Zip and EMET it, while you at it. Just make sure your CAD license servers or clients don't crash after some interaction between your anti-virus and EMET.

    2. Re:What the heck does this mean? by Anguirel · · Score: 1

      Your local 7-zip copies should probably be updated, but they're not a serious risk. The major thing is to look for an update for your Anti-Virus (assuming you use one). Most AVs use 7z under the hood to scan archives. The vulnerability here would be if someone accidentally grabs a virus-laden archive that was crafted for this express purpose (or one is sent to your e-mail and auto-scanned on receipt before you even get a chance to delete it), the act of the AV scanning it would activate the flaw at the AV's level of access, allowing it to potentially do bad things to your system.

      --
      ~Anguirel (lit. Living Star-Iron)
      QA: The art of telling someone that their baby is ugly without getting punched.
    3. Re:What the heck does this mean? by Bruinwar · · Score: 1

      Thank you. This is why I tell people when they download a utility to delete it & download the latest version when they need it again. It's too bad I did not follow my own advice with 7-ZIP. Come Monday I will update all my clients & discuss the AV with the IT folks.

      They are not going to like this at all. There is a really good chance they will freak out & make me remove all 7-ZIP installs completely. They may even have a emergency meeting where they will look to place blame & decide an engineer should not be doing IT work. What's funny is when I tell them about this it will be the first they've heard of it. None of them actually follow tech news at all.

      --
      SLOWER TRAFFIC KEEP RIGHT
  25. So, ... was this a responsible disclosure by DigitalSorceress · · Score: 1

    Ok, so I read the article and my collegues and I use 7-zip quite a bit - so I am trying to figure out if the vulnerability was addressed in the latest release

    I see the article was posted on the 11th, and 7-zip's latest builds seems to be v 16.0 which was published on 5/10 ... but looking at the 7-zip fix history:

    http://www.7-zip.org/history.t...

    All I see is that "some bugs were fixed" - this does not fill me with confidence.

    So, I'm just trying to decide if the may 10 update and May 11 release is enough circumstantial evidence to say "ahh v16 fixes this so just update and we're good (assuming we don't have any other tools that bake in vulnerable past 7-zip sdk builds)

    My guess is that updating to 16.0 will likely fix this in my directly installed copy of 7-zip.... though I don't like going on hope and circumstantial evidence.

    --

    The Digital Sorceress
    1. Re:So, ... was this a responsible disclosure by Mister+Transistor · · Score: 4, Informative

      Um, last line (it's hard to concentrate that long, I know...) of TFA:

      "The flaws were fixed in 7-Zip 16.00, which was released Tuesday."

      --
      -- You are in a maze of little, twisty passages, all different... --
    2. Re:So, ... was this a responsible disclosure by denis-The-menace · · Score: 1

      I looked too and I saw no mention of this issue in 7-Zip closed tickets.

      So is this issue for real or does 7-Zip maintain a separate Bug DB?

      --
      Obama's legacy: (N)othing (S)ecure (A)nywhere and (T)error (S)imulation (A)dministration
    3. Re:So, ... was this a responsible disclosure by EvilSS · · Score: 1

      Irony, you haz it.

      --
      I browse on +1 so AC's need not respond, I won't see it.
  26. Re:Big pile of mess to clean up by Anonymous Coward · · Score: 0

    What program has ever been 100% free of security holes? Have you ever looked at metasploit and seen how many vulnerabilities are there alone?

  27. Re:Big pile of mess to clean up by Anonymous Coward · · Score: 0

    Pro tip: improve the craftspeople, then the tools.

    Wrong. Dead wrong. This is the usual brogrammer attitude. I've been doing this stuff for 30 years, and I have heard a lot of it.

    It is extremely difficult and time consuming for humans to program safely in C. Human brains do not work that way. Yes, that includes your brain. Yes, I know you think you're an exception. You are not. And out here in the real world, your management is not going to give you the time to do the extremely tedious checking necessary to avoid running off the ends of buffers in a language where every array reference is expressed in terms of arbitrary un-bounds-checked pointer arithmetic and pointer type casts are a major idiom.

    What would be better? Almost anything. 1970s languages like Ada, if you turn on bounds checking. Managed languages like Java. Languages with halfway decent type systems like Haskell or even OCaml or Rust (just stay away from unsafe extensions). Even super dangerous hyper-dynamic toy scripting languages like Python or JavaScript are safer than C.

    You can go ahead and write your 10 line inner loop in C, which will get you 95 percent of the performance you're about to complain about. You should not be writing your file parser in it.

  28. Re:Big pile of mess to clean up by Anonymous Coward · · Score: 0

    JAVA is the only answer!!!! all hail the Oracle.

  29. nspawn by emil · · Score: 1

    I'm pretty sure that the BSD that Bill Joy ran on his VAXes could not nspawn a container, so I might interject that the Linux privilege system has changed slightly.

    Now, if you don't carefully populate your container, you can easily cause more security problems than you solve.

    1. Re:nspawn by gweihir · · Score: 1

      I fully agree to that. And from my observations, the way people run containers, they usually get all the original vulnerabilities and in addition those of the container as well. They think that a container is somehow as good as a separate machine.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  30. Re:Big pile of mess to clean up by Immerman · · Score: 1

    Spoken like someone with no understanding of the limitations of the hardware their code is running on.

    Conditional branching is generally by *far* the slowest thing you can do on a modern CPU, since it can completely stall out the instruction pipeline, especially if the next instruction can't proceed safely until the conditional is resolved (like, say, "do not access the indexed memory location until we've confirmed the index is valid). An Intel Core i5 has a pipeline depth of 14, so while most common instructions complete at a rate of 1 per tick, a conditional jump can stall things for up to 14 ticks. A good compiler can (often) help immensely by reorganizing instructions so that the the conditional result isn't immediately critical, but if you're doing any sort of serious array processing, like say matrix multiplication, bounds-checking is probably going to be responsible for the vast majority of the total CPU time used.

    Of course there's lots of very common situations where actually traversing the array is only a tiny percentage of the work done on each element, and the performance penalty is thus tiny enough to be well worth the safety gains. Which is why C++ includes container classes that *do* offer bounds checking - and those should be used wherever appropriate, as they also offer lots of other conveniences. But one of C and C++s great claims to fame, one of the reasons they are still some of the most widely used languages on the planet, is that they combine the performance of hand-tuned assembly with the convenience of a high-level language. And its primitive data types must necessarily reflect the compromises required for that to be attainable.

    Bottom line: if you don't have the skill and/or discipline necessary to safely use the footgun, DON'T TOUCH THE FOOTGUN. The C++ standard library makes it relatively easy to avoid the most dangerous pitfalls, with performance penalties no worse (and often much better) than languages where such constructs are part of the language itself. Even skilled professionals should probably steer clear of naked arrays and pointer manipulation unless they have a reason to do so. It's perhaps disappointing though that you typically have to explicitly invoke bounds checking with the .at(i) function while the more concise [i] notation bypasses it.

    --
    --- Most topics have many sides worth arguing, allow me to take one opposite you.
  31. Badly worded by DrYak · · Score: 4, Informative

    7z is a software used to manipulate archives in numerous format (including a few obscure format - one of the most compatible on the market).

    Lots of security software like antivirus need to be able to process archives (e.g.: an antivirus needs to scan all the files packaged into a ZIP archive).
    Some of these security software use 7z as an archive engine.

    7z has a vulnerability when unpacking a specially crafted archive.
    This flaw will extend to security sofware that rely on 7z as a component to help them handle archives.

    Hence "Dangerous 7-Zip Vulnerabilities Flow To Top Security, Software Tools"

    By sending an e-mail with a specially crafted ZIP file attachment, you can b0rk the mail server using an exploit that affects the antivirus in charge of scanning incomming attachments, because that antivirus relied on 7z.

    That means

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  32. Re:Big pile of mess to clean up by Anonymous Coward · · Score: 0

    Rust. Duh.