WordPress / WordPress/php-toolkit

Zip Slip Vulnerability

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

Nobody has claimed this yet.

blocker V1
Dominant language
PHP
Stars
61
Forks
21
Avg merge
19h 34m
Merged PRs (30d)
7

Description

As we discussed today, there's a ZIP Slip vulnerability below here. The filename should be sanitized to prevent directory traversal:

https://github.com/WordPress/blueprints-library/blob/f2ddfa54a97220249201535f1d37726c416f915d/src/WordPress/Zip/functions.php#L17C51-L17C62

Also, maybe it's good to check for Symlinks and how they are being treated nowadays ;)

Contributor guide

No contributing guide indexed for this repository

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 inspecting the ZIP handling code corresponding to src/WordPress/Zip/functions.php at the referenced line, then trace how archive filenames and symlinks are extracted. Confirm the intended traversal and symlink behavior, add coverage for the reported cases, and verify that extraction cannot write outside its destination.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.