Gerapy
Gerapy exposed on TCP/8000 can lead to authenticated RCE when default credentials are still valid and the instance is vulnerable to CVE-2021-43857.
Discovery
Look for Gerapy on the Python WSGI service:
Useful indicators:
8000/tcp open http WSGIServer 0.2 (Python 3.10.6)
|_http-server-header: WSGIServer/0.2 CPython/3.10.6
|_http-title: GerapyWhatWeb may show:
HTTPServer[WSGIServer/0.2 CPython/3.10.6], Title[Gerapy]Default Login
Try the default admin credentials:
Username: admin
Password: adminCVE-2021-43857 RCE
Public exploit:
The exploit needs an existing Gerapy project. If the project list is empty, create a project in the web UI first. In the observed path, the project was named myproject.
Run the exploit:
Successful output:
Successful shell:
Confirm context:
References
https://github.com/LongWayHomie/CVE-2021-43857
Last updated