CVE-2023-38831 zero-Day vulnerability in WinRAR exploited by cybercriminals
WinRAR mishandled specially crafted ZIP archives so that opening a decoy image or text file instead launched a bundled script. Attackers used this to deliver malware such as DarkMe, GuLoader and Remcos RAT to traders on forums, and some victims had broker accounts accessed.
group-ib.com
Published on group-ib.com
With over 500 million users worldwide, WinRAR is one of the most popular compression tools. You would probably struggle to find someone who has never downloaded or opened this vital tool.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a flaw in how WinRAR passed the selected file to the Windows ShellExecute function, so a file name mismatch caused the wrong file (a script) to be found and run instead of the intended picture.
Impact
Opening a crafted archive could run attacker code and lead to malware infection; the report says 130 traders' devices were still infected and some victims had broker accounts accessed, though it cannot confirm the total number of infections or losses.
What the attacker needed
WinRAR before version 6.23; victim opens a crafted ZIP archive; victim clicks the decoy file
How it was found
- Craft a ZIP archive containing a decoy file and a folder with the same name holding a script.
- Post the archive on trading forums as a trading strategy or indicator collection.
- Victim opens the archive in WinRAR and sees the decoy image or text file.
- Victim clicks the decoy, and the script runs instead of the image.
- The script launches the next stage, such as an SFX CAB archive that starts the malware.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A ZIP archive is a container that holds several files. WinRAR is a program for opening such containers. The bug meant that when a person double-clicked what looked like a harmless picture inside the archive, WinRAR actually ran a hidden script instead, which then installed malware on the computer.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.