Skip to content

There is a vulnerability in unarr, which will lead to path traversal vulnerability #21

@Th1nkkk

Description

@Th1nkkk

There is a vulnerability in unarr, which will lead to path traversal vulnerability
Go unarr does not check the contents of the archive.

Exploit process

  1. An attacker can construct a malicious tar package (or any compressed archive file).
    As shown in the figure below, obviously, this will not succeed under the tar command, because the tar command fixes the vulnerability.
    image

  2. The victim uses go unarr to unzip the archive
    As shown in the figure below, path traversal occurs during go unarr decompression, and we upload the file to the.. / directory
    image

  3. By triggering the path traversal vulnerability, an attacker can store any file in any privileged place (which means that rce can be caused under root privileges)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions