Description
An issue was discovered in rConfig 3.9.2. An attacker can directly execute system commands by sending a GET request to ajaxServerSettingsChk.php because the rootUname parameter is passed to the exec function without filtering, which can lead to command execution.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
rConfig install Command Execution
exploit/unix/webapp/rconfig_install_cmd_exec
Exploit-DB 2
- rConfig - install Command Execution (Metasploit) EDB-47602 · remote · Nov 8, 2019 · verified
- rConfig 3.9.2 - Remote Code Execution EDB-47555 · webapps · Oct 29, 2019
GitHub 1 repository
-
mhaskar/CVE-2019-16662 ★ 13 · Nov 10, 2019
The official exploit for rConfig 3.9.2 Pre-auth Remote Code Execution CVE-2019-16662
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- rConfig 3.9.2 - Remote Code Execution http/cves/2019/CVE-2019-16662.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
References
- https://gist.github.com/mhaskar/ceb65fa4ca57c3cdccc1edfe2390902e
- https://drive.google.com/open?id=1OXI5cNuwWqc6y-7BgNCfYHgFPK2cpvnu
- https://drive.google.com/file/d/1bTpTn4-alJ8qGCEATLq-oVM6HbhE65iY/view?usp=sharing
- https://rconfig.com/download
- https://shells.systems/rconfig-v3-9-2-authenticated-and-unauthenticated-rce-cve-2019-16663-and-cve-2019-16662/
- http://packetstormsecurity.com/files/154999/rConfig-3.9.2-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/155186/rConfig-3.9.2-Command-Injection.html