OS Command Injection in rConfig - CVE-2019-16662
Published: November 5, 2019 / Updated: June 17, 2021
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.
The vulnerability exists due to the "rootUname" parameter is passed to the "exec" function without filtering. A remote unauthenticated attacker can send a specially crafted GET request to "ajaxServerSettingsChk.php" file and execute arbitrary OS commands on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
How to mitigate CVE-2019-16662
Links to Public Exploits and PoC-codes
- Exploit #5862 - rConfig - install Command Execution (Metasploit) (June 17, 2021)
- Exploit #5867 - rConfig 3.9.2 - Remote Code Execution (June 17, 2021)
- Exploit #2055 - CVE-2019-16662 (The official exploit for rConfig 3.9.2 Pre-auth Remote Code Execution CVE-2019-16662) (March 18, 2020)
- Exploit #2056 - CVE-2019-16663 (The official exploit for rConfig 3.9.2 Post-auth Remote Code Execution CVE-2019-16663) (March 18, 2020)
- Exploit #1504 - rConfig install Command Execution (March 18, 2020)
External References
- https://drive.google.com/file/d/1bTpTn4-alJ8qGCEATLq-oVM6HbhE65iY/view?usp=sharing
- https://drive.google.com/open?id=1OXI5cNuwWqc6y-7BgNCfYHgFPK2cpvnu
- https://gist.github.com/mhaskar/ceb65fa4ca57c3cdccc1edfe2390902e
- https://rconfig.com/download
- https://threatpost.com/critical-rce-flaw-in-rconfig/149847
- https://github.com/rapid7/metasploit-framework/tree/master/modules/exploits/unix/webapp/rconfig_inst...