Proof of Concept of CVE-2020-15873 - Blind SQL Injection in Librenms < v1.65.1
- Python2.7 with Pip and BeautifulSoup4
- Docker with LibreNMS Container
- Login to the web application and create a device using the GUI, setting the host to
127.0.0.1
.
$ python poc.py <ip addr:8000> librenms librenms
-
Obtain a shell to the container:
$ sudo docker exec -it librenms_vuln /bin/bash
-
To read the logs generated by LibreNMS:
$ tail -f /opt/librenms/logs/librenms.log
-
Obtain a shell to the container:
$ sudo docker exec -it librenms_db_vuln /bin/bash
-
To experiment with the database:
$ mysqld; mysql> use librenms; mysql> show tables; mysql> SELECT * FROM users;