Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
PoC-for-CVE-2020-28948-CVE-2020-28949 — Proof-of-concept exploit for CVE-2020-28948 and CVE-2020-28949 targeting PHAR deserialization and inclusion vulnerabilities in Archive_Tar, enabling remote file deletion and code execution. | Kitploit
Tools/GitHubGitHub/jinhao-l/poc-for-cve-2020-28948-cve-2020-28949
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRemote Access ToolPayload Development
GitHubjinhao-l/poc-for-cve-2020-28948-cve-2020-28949

PoC-for-CVE-2020-28948-CVE-2020-28949

Proof-of-concept exploit for CVE-2020-28948 and CVE-2020-28949 targeting PHAR deserialization and inclusion vulnerabilities in Archive_Tar, enabling remote file deletion and code execution.

View Repository
13 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

POC for CVE-2020-28948 & CVE-2020-28949

The files here contain PoC for CVE-2020-28948 & CVE-2020-28949 to achieve remote exploit

The server

The server folder contains a simple upload server which uses the vulnerable Archive_Tar library, located in server/Archive. The server accepts a Tar archive from the user, extracts and store it in the server/uploads/ folder.

To start the server with the vulnerable library:

root@kitploit:~
cd server
make build
make start

To start the server with the patched library:

root@kitploit:~
cd server
make build-patched
make start-patched

Access the remote server through http://localhost:8080

CVE-2020-28948 (PHAR deserialisation attack)

  1. Navigate to corresponding PoC folder.
  2. Specify target for arbitrary file deletion, by modifiying the $delete_target in
create_phar.php
  • To view confidential secret.md file, delete .htaccess file
  • To do DoS, delete index.html
  • Create exploit.tar
    root@kitploit:~
    make create_exploit
    
  • Upload exploit.tar to remote server
  • Observe the file deletion on the server.
    • Can access http://localhost:8080/uploads/secret.md if .htaccess is deleted.
  • CVE-2020-28949 (PHAR inclusion attack)

    1. Navigate to corresponding PoC folder.
    2. Create exploit.tar
      root@kitploit:~
      make create_exploit
      
    3. Upload exploit.tar to remote server
    4. Observe that shell.php is uploaded.
      • Can access http://localhost:8080/shell.php
    5. Achieve some RCE (eg. execute whoami on server)
      • http://localhost:8080/shell.php?cmd=whoami
    Download Tool