Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

[NEW VULNERABILITY] decompress-zip: GHSA-73v8-v6g4-vrpm Fix Bypass + 4 Additional Vulnerabilities

Aberta
#9,724 1 comentário 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
30/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
javascript
Domínio
security

Direção de pesquisa

The vulnerability is in lib/decompress-zip.js line 94, where indexOf() is used for path validation. Review the decompress-zip package source, understand the zip extraction flow, and test the bypass with a malicious zip file. The fix must properly resolve and contain paths, not just do string prefix matching. Check for similar issues in the codebase and ensure the fix addresses all listed CVEs.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Package Information

  • Ecosystem: npm
  • Package: decompress-zip
  • Affected versions: <= 0.3.3
  • CWE: CWE-22, CWE-770, CWE-409, CWE-345, CWE-367

Summary

The security fix in v0.3.2 for GHSA-73v8-v6g4-vrpm is INCOMPLETE and can be bypassed. Additionally, 4 new vulnerabilities were discovered.

# Vulnerability CVSS 3.1 CWE
1 Path Traversal Fix Bypass 9.1 CRITICAL CWE-22
2 Memory Exhaustion 7.5 HIGH CWE-770
3 Zip Bomb 7.5 HIGH CWE-409
4 Missing Signature Validation 5.3 MEDIUM CWE-345
5 TOCTOU Race Condition 3.1 LOW CWE-367

Critical Finding: indexOf() Bypass

File: lib/decompress-zip.js:94

if (destination.indexOf(options.path) !== 0) {
    throw new Error('You cannot extract a file outside of the target path');
}

Bypass: ../extract_pwned/evil.txt passes the check because indexOf() does STRING prefix matching, not PATH containment.

PoC

Target: /project/extract
Malicious entry: ../extract_pwned/evil.txt
Result: File written to /project/extract_pwned/evil.txt (OUTSIDE target)

Reporter

Yahya Ganbarli 
Linguagem predominante
Sem dados de linguagem
Estrelas
2.5k
Forks
772
Merge médio
4d 17h
PRs com merge (30d)
75

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de github/advisory-database

Todas as issues de github/advisory-database

Issues semelhantes

Mais issues de Security

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.