baidu / baidu/GPT

zip_slip

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
92
Forks
31
PR merge metrics
No merged PRs in 30d

Description

Util.java中的copyToFile()解压文件时,未校验zip条目名,当条目名中带有../时(可能时攻击者恶意构造的),可能会覆盖其他铭感文件
![图片](https://user-images.githubusercontent.com/39950310/58950414-5110bc80-87c1-11e9-9f94-08ee11854fd3.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in Util.java at copyToFile(), where ZIP entries are extracted, and inspect how entry names are combined with the destination path. Reproduce the issue with an entry containing ../ and verify that extraction cannot write outside the intended directory. Done means traversal entries are safely rejected or contained without overwriting unrelated files.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
security
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.