Skip to content
Path traversal Write-up Advanced

Analysis of rar file leads to a phishing site and two vulnerabili

A crafted RAR archive exploiting WinRAR path traversal flaws dropped a malicious shortcut into the Windows Startup folder, giving persistence on the victim's machine. The dropped loader then spawned or injected into trusted Acrobat and Edge processes and used PuTTY for SSH access, though the text does not demonstrate the exploitation itself.

Shubho57 Follow

Published on medium.com

Since it is launching multiple browser-related and PDF-related processes, it could be:

Shubho57, on medium.com

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 path traversal flaw in WinRAR/UnRAR that lets archive entry paths escape the chosen extraction folder and write into sensitive locations such as the Startup folder.

Impact

An attacker could gain persistent code execution on the host, hide activity inside trusted processes, and potentially steal credentials or run further payloads; the text notes the two communicating IP addresses were whitelisted at the time of writing.

What the attacker needed

Victim opens a crafted RAR; vulnerable WinRAR version; user interaction to extract

The fix

WinRAR should be updated to a version that fixes the path traversal, and users should avoid opening archives from untrusted sources.

How it was found

  1. The victim opens a crafted RAR archive, for example from a phishing attachment.
  2. The archive exploit writes a shortcut file into the Windows Startup folder.
  3. On the next logon the planted shortcut runs the loader binary.
  4. The loader spawns or injects into Acrobat, Edge and acrocef processes to blend in.
  5. PuTTY is used to obtain SSH access on the victim's system.

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 compressed archive (a RAR file) was built so that unpacking it writes a file outside the folder you chose, in this case into a Windows folder whose contents run automatically when you log in. That planted shortcut then starts a program that hides inside normal apps like Acrobat Reader and Edge so antivirus is less likely to notice. The write-up is mostly an analysis of the resulting infection rather than a step-by-step proof of the trick.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.