Vulnerabilities > CVE-2019-19585 - Improper Privilege Management vulnerability in Rconfig 3.9.3
Attack vector
LOCAL Attack complexity
LOW Privileges required
LOW Confidentiality impact
HIGH Integrity impact
HIGH Availability impact
HIGH Summary
An issue was discovered in rConfig 3.9.3. The install script updates the /etc/sudoers file for rconfig specific tasks. After an "rConfig specific Apache configuration" update, apache has high privileges for some binaries. This can be exploited by an attacker to bypass local security restrictions.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 1 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Restful Privilege Elevation Rest uses standard HTTP (Get, Put, Delete) style permissions methods, but these are not necessarily correlated generally with back end programs. Strict interpretation of HTTP get methods means that these HTTP Get services should not be used to delete information on the server, but there is no access control mechanism to back up this logic. This means that unless the services are properly ACL'd and the application's service implementation are following these guidelines then an HTTP request can easily execute a delete or update on the server side. The attacker identifies a HTTP Get URL such as http://victimsite/updateOrder, which calls out to a program to update orders on a database or other resource. The URL is not idempotent so the request can be submitted multiple times by the attacker, additionally, the attacker may be able to exploit the URL published as a Get method that actually performs updates (instead of merely retrieving data). This may result in malicious or inadvertent altering of data on the server.
Metasploit
description | This module exploits multiple vulnerabilities in rConfig version 3.9 in order to execute arbitrary commands. This module takes advantage of a command injection vulnerability in the `path` parameter of the ajax archive file functionality within the rConfig web interface in order to execute the payload. Valid credentials for a user with administrative privileges are required. However, this module can bypass authentication via SQLI. This module has been successfully tested on Rconfig 3.9.3 and 3.9.4. The steps are: 1\. SQLi on /commands.inc.php allows us to add an administrative user. 2\. An authenticated session is established with the newly added user 3\. Command Injection on /lib/ajaxHandlers/ajaxArchiveFiles.php allows us to execute the payload. 4\. Remove the added admin user. Tips : once you get a shell, look at the CVE-2019-19585. You will probably get root because rConfig install script add Apache user to sudoers with nopasswd ;-) |
id | MSF:EXPLOIT/LINUX/HTTP/RCONFIG_AJAXARCHIVEFILES_RCE |
last seen | 2020-06-10 |
modified | 2020-03-13 |
published | 2020-03-12 |
references | |
reporter | Rapid7 |
source | https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/linux/http/rconfig_ajaxarchivefiles_rce.rb |
title | Rconfig 3.x Chained Remote Code Execution |
Packetstorm
data source https://packetstormsecurity.com/files/download/156766/rconfig_ajaxarchivefiles_rce.rb.txt id PACKETSTORM:156766 last seen 2020-03-19 published 2020-03-16 reporter Orange Cyberdefense source https://packetstormsecurity.com/files/156766/Rconfig-3.x-Chained-Remote-Code-Execution.html title Rconfig 3.x Chained Remote Code Execution data source https://packetstormsecurity.com/files/download/156950/rconfig394sf-exec.txt id PACKETSTORM:156950 last seen 2020-03-29 published 2020-03-28 reporter vikingfr source https://packetstormsecurity.com/files/156950/rConfig-3.9.4-searchField-Remote-Code-Execution.html title rConfig 3.9.4 searchField Remote Code Execution