Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×
Security

WinRAR 0-Day That Uses Poisoned JPG and TXT Files Under Exploit Since April (arstechnica.com) 30

An anonymous reader quotes a report from Ars Technica: A newly discovered zeroday in the widely used WinRAR file-compression program has been under exploit for four months by unknown attackers who are using it to install malware when targets open booby-trapped JPGs and other innocuous inside file archives. The vulnerability, residing in the way WinRAR processes the ZIP file format, has been under active exploit since April in securities trading forums, researchers from security firm Group IB reported Wednesday. The attackers have been using the vulnerability to remotely execute code that installs malware from families including DarkMe, GuLoader, and Remcos RAT. From there, the criminals withdraw money from broker accounts. The total amount of financial losses and total number of victims infected is unknown, although Group-IB said it has tracked at least 130 individuals known to have been compromised. WinRAR developers fixed the vulnerability, tracked as CVE-2023-38831, earlier this month. "By exploiting a vulnerability within this program, threat actors were able to craft ZIP archives that serve as carriers for various malware families," Group-IB Malware Analyst Andrey Polovinkin wrote. "Weaponized ZIP archives were distributed on trading forums. Once extracted and executed, the malware allows threat actors to withdraw money from broker accounts. This vulnerability has been exploited since April 2023."

It's recommended that you update to version 6.23 before using WinRAR again.
This discussion has been archived. No new comments can be posted.

WinRAR 0-Day That Uses Poisoned JPG and TXT Files Under Exploit Since April

Comments Filter:
  • WinRAR? Why? (Score:3, Insightful)

    by Anonymous Coward on Wednesday August 23, 2023 @04:25PM (#63791720)

    I don't understand why people still use RAR.

    7-zip is far superior in every possible way.

    But I guess people still use gzip and xz when zstd surpassed them in every possible way (better compression, faster, etc).

    • Re:WinRAR? Why? (Score:5, Informative)

      by Mascot ( 120795 ) on Wednesday August 23, 2023 @04:46PM (#63791782)

      I've found 7-Zip to sometimes produce slightly smaller files, but at a huge time penalty. Case in point, I just did a test where WinRAR produced a 349MB result in 21 seconds, while 7-Zip ended up at 347MB in 38 seconds. That's slightly superior on one point and far inferior on the other. For my use cases, the speed is much more relevant than that tiny storage win.

      Over the years I've found that result to be consistent. Whenever I spend a little time doing some tests I end up concluding the switch isn't worth it and stick with WinRAR. Would I have paid for WinRAR today if I was already using 7-Zip? Unlikely. But that train left the station some 15 years ago.

      • by functor0 ( 89014 )
        Did you ever try lowering the compression quality in 7zip to compare? It's natural that a smaller compressed size takes longer, but one is able to adjust this trade off.
      • I generally don't compress at all, so I haven't noticed.

        I tend to use compression to bundle files together, especially if I'm going to send SFTP or some such.

      • You'll have to be a lot more specific about your testing conditions, because both programs support multiple formats and tons of compression options.

        Also to consider is the number of different file types they can deal with and how they perform with each; WinRAR supports creation of more compression formats, but 7Zip can open and extract damn near anything.

        And of course 7zip is FOSS while WinRAR costs US$29 unless you're a) Buying in bulk, or b) a shitlord who abuses the trial period forever. *shrug*
        =Smidge=

        • by Mascot ( 120795 )

          You'll have to be a lot more specific about your testing conditions

          I really don't. I was sharing my anecdotal reasons for sticking with WinRAR – in response to someone offering not even an example of what made one better than the other – not pretending to have produced a research paper comparing the two. I'm sure someone's done that at some point, but I don't have that high on my list of things to spend time on in life. My very limited testing is plenty for such a trivial decision for me.

          I will add that I have previously spent some time tweaking the settings of

    • by Malc ( 1751 )

      zstandard doesn't surpass xz/lmza in terms of compression, although it can get within a few percentage points.

      • Even though that xz/lzma is the king of raw compression, what zstd has going for it is extremely fast decompression speed. For example, zstd works quite well on btrfs and ZFS, although most often, lzo/lz4 might be the best choice, as compression can actually speed up some I/O.

        For long term archives, I still use "xz -v9e", even though that is extremely CPU/RAM intensive, but I want every kilobyte out of stuff I'm throwing onto a cloud backup/archive site, as I'm paying for that.

        • Yes, although priorities depend on application (usage), as you implicitly state. For most archival activities or compressing things for transfer over the internet, I donâ(TM)t find the decompression speed of any of these algorithms much of an issue. Compression speed though is, which is why I often go back to bz2 or zip even though they donâ(TM)t come close to lmza/lmza2 for compression ratio.

    • As one of the few people who uses (registered) WinRAR copies, there are a few reasons that I use WinRAR. Of course, one can do the same with another utility, but it is easier to do it in one.

      Recovery records and recovery volumes come to mind. Yes, one can use PAR2, but compared to just using WinRAR, it is time consuming. WinRAR gives me the option to add recovery records into archives, as well as recovery volumes for multi-volume archives. For example, if I'm uploading an extremely large file to be stor

      • by Dwedit ( 232252 )

        TAR is sequential access only. Picking one file (or even just listing all the files) requires parsing the entire file.

        Good for non-seekable use cases (like Netcat), bad for files on your disk.

        • Yeah, tar kind-of sucks with tape as well, since LTO can seek faster than it takes to read the entire tape, but tar cannot use that.

    • by jythie ( 914043 )
      Eh, standard is better than the best solution. I do not know if 7-zip is technically superior or not, but I do know I almost never encounter it and if I distributed files via it, users would not know how to open them. So kind inferior in the ways that matter.
    • Exactly. 7z opens everything. Why bother with different archivers when 7z handles everything. PKZ204G.EXE, along with WinRAR, are relics.

    • I don't understand why people still use Windows.

      Linux is far superior in every possible way.

      But I guess people still use DOS when Linux surpassed them in every possible way.

      • Linux is not better in every possible way.

        Linux IS better than Windows, but only assuming that:
        1. All the software you want to use has Linux versions and is available in repositories or at least can run in Wine and someone can help you set it up.
        2. All hardware has drivers that are built into the Linux kernel

        And sometimes it is the little things that annoy me. For example, Linux detect the touchpad as a mouse and does not give me the option to disable the "tap" function. Or trying to disable the touchscreen

    • by Teun ( 17872 )
      In this particular case we are talking about decrypting a file with a nasty payload.
      That file was probably not made by yourself...
    • by Osgeld ( 1900440 )

      I don't understand why people use any 3rd party archiving software. whenever I see rar or 7z extensions I roll my eyes, like gee let me install some windows 98 era software so I can see your shitty ass java code that probably doesn't work so you can save a whole 3kb in file space

  • by Joz ( 100708 )

    So, basically, pirates have been getting PWND.

  • I find unar to be easier and more reliable for uncompressing archives.
  • ....I mean unpacking binaries in their own VM'd root directories? It looks far easier to exploit than say, speculative execution and nobody complains nearly as much....
  • It isn't 100% clear how this exploit works.
    Must the victim open the archive in WinRAR first, and then execute the spoofed payload from there?
    If you first extract the files, does it then become obvious that the "image" is really a BAT script, or will it be extracted as an invalid image file that is harmless when opened with an image viewer?

    • There is both an image and a script in the archive at the same time with the same name in the same directory. On your hard drive that's impossible, your OS doesn't allow it. But because two things have the same name in the archive, when you tell WinRAR to show the contents of the JPEG file, it executes the script of the same name instead.
  • by gnasher719 ( 869701 ) on Thursday August 24, 2023 @11:47AM (#63793566)
    The "trick" used is to have an archive that contains a harmless file, plus a directory with exactly the same name. There is zero danger if you unarchive everything: Your hard drive cannot hold a file and a directory with the same name, so trying to extract both will fail. Either silently, or with an error message, or with a crash, but on your hard drive there will be either nothing, or a harmless file, or a directory.

    The problem is that WinRAR can preview files that are still _inside_ the archive. So the user says "WinRAR, show me that JPEG file". Then WinRAR gets confused by the fact that there is a directory with the same name in its archive, opens it instead of the JPEG file, and executes the script inside. With exactly the same permissions that an unarchiver needs to have, like the ability to write files.

    So extracting the payload is not needed, and would not work. The problem is not that something malicious is installed on your computer, the problem is that WinRAR lets itself be tricked into opening a directory of the same name (which shouldn't be present in the archive, but that's why you write your code carefully) instead of a harmless JPEG file.
    • Thank you. I wasn't having much luck figuring out exactly what the mechanism and scope of the threat was.

Never ask two questions in a business letter. The reply will discuss the one you are least interested, and say nothing about the other.

Working...