ProtonMail / ProtonMail/WebClients

Vulnerability in Webclient

Open
#478 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5.6k
Forks
715
PR merge metrics
No merged PRs in 30d

Description

While analyzing the archive extraction functionality, I found that the tar.extract() function does not properly validate hardlink targets. A malicious tar archive can create a hardlink that points to a file outside the intended extraction directory.

CVE Link
CVE Report

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the tar.extract() implementation and its callers in the WebClients repository, then inspect how archive paths and hardlink targets are handled. Reproduce the reported case with a malicious archive containing a hardlink outside the extraction directory; done means the extraction rejects or safely contains that target.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.