Vulnerabilities > CVE-2019-9082 - Missing Authentication for Critical Function vulnerability in multiple products
Attack vector
NETWORK Attack complexity
MEDIUM Privileges required
NONE Confidentiality impact
COMPLETE Integrity impact
COMPLETE Availability impact
COMPLETE Summary
ThinkPHP before 3.2.4, as used in Open Source BMS v1.1.1 and other products, allows Remote Command Execution via public//?s=index/\think\app/invokefunction&function=call_user_func_array&vars[0]=system&vars[1][]= followed by the command.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 3 | |
Application | 1 | |
Application | 1 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Choosing a Message/Channel Identifier on a Public/Multicast Channel Attackers aware that more data is being fed into a multicast or public information distribution means can 'select' information bound only for another client, even if the distribution means itself forces users to authenticate in order to connect initially. Doing so allows the attacker to gain access to possibly privileged information, possibly perpetrate other attacks through the distribution means by impersonation. If the channel/message being manipulated is an input rather than output mechanism for the system, (such as a command bus), this style of attack could change its identifier from a less privileged to more so privileged channel or command.
- Using Unpublished Web Service APIs An attacker searches for and invokes Web Services APIs that the target system designers did not intend to be publicly available. If these APIs fail to authenticate requests the attacker may be able to invoke services and/or gain privileges they are not authorized for.
- Manipulating Writeable Terminal Devices This attack exploits terminal devices that allow themselves to be written to by other users. The attacker sends command strings to the target terminal device hoping that the target user will hit enter and thereby execute the malicious command with their privileges. The attacker can send the results (such as copying /etc/passwd) to a known directory and collect once the attack has succeeded.
- Cross Site Request Forgery (aka Session Riding) An attacker crafts malicious web links and distributes them (via web pages, email, etc.), typically in a targeted manner, hoping to induce users to click on the link and execute the malicious action against some third-party application. If successful, the action embedded in the malicious link will be processed and accepted by the targeted application with the users' privilege level. This type of attack leverages the persistence and implicit trust placed in user session cookies by many web applications today. In such an architecture, once the user authenticates to an application and a session cookie is created on the user's system, all following transactions for that session are authenticated using that cookie including potential actions initiated by an attacker and simply "riding" the existing session cookie.
Exploit-Db
file exploits/php/webapps/46488.txt id EDB-ID:46488 last seen 2019-03-04 modified 2019-03-04 platform php port 80 published 2019-03-04 reporter Exploit-DB source https://www.exploit-db.com/download/46488 title zzzphp CMS 1.6.1 - Cross-Site Request Forgery type webapps id EDB-ID:48333 last seen 2020-04-16 modified 2020-04-16 published 2020-04-16 reporter Exploit-DB source https://www.exploit-db.com/download/48333 title ThinkPHP - Multiple PHP Injection RCEs (Metasploit)
Metasploit
description | This module exploits one of two PHP injection vulnerabilities in the ThinkPHP web framework to execute code as the web user. Versions up to and including 5.0.23 are exploitable, though 5.0.23 is vulnerable to a separate vulnerability. The module will automatically attempt to detect the version of the software. Tested against versions 5.0.20 and 5.0.23 as can be found on Vulhub. |
id | MSF:EXPLOIT/UNIX/WEBAPP/THINKPHP_RCE |
last seen | 2020-06-14 |
modified | 1976-01-01 |
published | 1976-01-01 |
references | |
reporter | Rapid7 |
source | https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/unix/webapp/thinkphp_rce.rb |
title | ThinkPHP Multiple PHP Injection RCEs |
Packetstorm
data source https://packetstormsecurity.com/files/download/151967/zzzphp161-xsrf.txt id PACKETSTORM:151967 last seen 2019-03-05 published 2019-03-04 reporter Yang Chenglong source https://packetstormsecurity.com/files/151967/zzzphp-CMS-1.6.1-Cross-Site-Request-Forgery.html title zzzphp CMS 1.6.1 Cross Site Request Forgery data source https://packetstormsecurity.com/files/download/157218/thinkphp_rce.rb.txt id PACKETSTORM:157218 last seen 2020-04-21 published 2020-04-14 reporter wvu source https://packetstormsecurity.com/files/157218/ThinkPHP-5.0.23-Remote-Code-Execution.html title ThinkPHP 5.0.23 Remote Code Execution