Skip to content
Path traversal Write-up Intermediate

Reverse Engineering Session 2 By Kk Tan Real World Study Cve 2025 8088 Experience Sharing

A path traversal vulnerability in WinRAR 7.12 and earlier allows an attacker to craft a malicious RAR archive that, when extracted, writes a payload file to an arbitrary location on the victim's system. The attacker can then execute arbitrary code by placing a malicious file in a location that is automatically run or opened.

Cy3erS Follow

Published on systemweakness.com

Division Zero (Div0) once again set up a hands-on Shell GYM to sharpen our skills Cybersecurity Skills, thanks to div0, a volunteer-driven cybersecurity community which gather cybersecurity professionals, practitioners and enthusiasts to make this society better.

Cy3erS@up, on systemweakness.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 the RAR header's stored extraction path is not properly validated, allowing directory traversal via alternate data streams.

Impact

An attacker could execute arbitrary code on the victim's machine by writing a malicious file to a chosen location, though the text does not specify whether user interaction beyond extraction is required.

What the attacker needed

WinRAR version 7.12 or earlier; victim extracts a malicious RAR file

How it was found

  1. Prepare a decoy file smaller than 30 KB.
  2. Run the proof-of-concept script with the vulnerable rar.exe, decoy, payload, drop location, and output archive name.
  3. Extract the generated malicious RAR file using the vulnerable WinRAR.
  4. The payload is written to the specified drop location.

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.

WinRAR is a program for opening compressed files. This bug lets a bad file trick WinRAR into putting a hidden program into a folder the attacker chooses, not the folder you picked. If that folder is one your computer runs automatically, the hidden program can run and take over your machine.

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.