Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2007-4559 PoC — Python tarfile 模块路径遍历漏洞

Source
Associated Vulnerability
Title: Python tarfile 模块路径遍历漏洞 (CVE-2007-4559)
Description:Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted remote attackers to overwrite arbitrary files via a .. (dot dot) sequence in filenames in a TAR archive, a related issue to CVE-2001-1267.
Description
YISF 2024 CTF-Web (Directory Traversal via ".tar" file, CVE-2007-4559), easy
Readme
# BubbleTea
CVE-2007-4559
“.tar”를 이용한 디렉토리 탐색 취약점으로 ../../flag

## path
--------------------
```
BubbleTea/
├── Dockerfile
├── flag
├── requirements.txt
└── src
    ├── files
    ├── template
    │   └── index.html
    └── app.py
```

### Current Building Instructions
- check docker
docker ps
docker images

docker build -t tarpioka
docker run -d -it --name tarpioka -p 13680:8000 tarpioka

docker ps

- stop and remove docker 
docker stop tarpioka
docker rm tarpioka
docker rmi tarpioka


### Run attack script



## patch
- 07/14
1. path Traversal
file name 인자에 '..', '/'가 포함된 문자열 벤

2. 세션별로 업로드 폴더 제작

3. 로그 남기기 추가

File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →