Vulnerabilities > CVE-2015-8562 - Improper Input Validation vulnerability in Joomla Joomla!
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
Joomla! 1.5.x, 2.x, and 3.x before 3.4.6 allow remote attackers to conduct PHP object injection attacks and execute arbitrary PHP code via the HTTP User-Agent header, as exploited in the wild in December 2015.
Vulnerable Configurations
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Buffer Overflow via Environment Variables This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
- Server Side Include (SSI) Injection An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
- Cross Zone Scripting An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
- Cross Site Scripting through Log Files An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
- Command Line Execution through SQL Injection An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.
Exploit-Db
description Joomla 1.5 - 3.4.5 - Object Injection Remote Command Execution. CVE-2015-8562. Webapps exploit for php platform file exploits/php/webapps/38977.py id EDB-ID:38977 last seen 2016-02-04 modified 2015-12-15 platform php port published 2015-12-15 reporter Sec-1 source https://www.exploit-db.com/download/38977/ title Joomla 1.5 - 3.4.5 - Object Injection Remote Command Execution type webapps description Joomla 1.5 - 3.4.5 - Object Injection RCE X-Forwarded-For Header. CVE-2015-8562,CVE-2015-8566. Webapps exploit for php platform file exploits/php/webapps/39033.py id EDB-ID:39033 last seen 2016-02-04 modified 2015-12-18 platform php port 80 published 2015-12-18 reporter Andrew McNicol source https://www.exploit-db.com/download/39033/ title Joomla 1.5 - 3.4.5 - Object Injection RCE X-Forwarded-For Header type webapps
Metasploit
description | Joomla suffers from an unauthenticated remote code execution that affects all versions from 1.5.0 to 3.4.5. By storing user supplied headers in the databases session table it's possible to truncate the input by sending an UTF-8 character. The custom created payload is then executed once the session is read from the database. You also need to have a PHP version before 5.4.45 (including 5.3.x), 5.5.29 or 5.6.13. In later versions the deserialisation of invalid session data stops on the first error and the exploit will not work. The PHP Patch was included in Ubuntu versions 5.5.9+dfsg-1ubuntu4.13 and 5.3.10-1ubuntu3.20 and in Debian in version 5.4.45-0+deb7u1. |
id | MSF:EXPLOIT/MULTI/HTTP/JOOMLA_HTTP_HEADER_RCE |
last seen | 2020-06-01 |
modified | 2017-08-29 |
published | 2015-12-15 |
references |
|
reporter | Rapid7 |
source | https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/multi/http/joomla_http_header_rce.rb |
title | Joomla HTTP Header Unauthenticated Remote Code Execution |
Nessus
NASL family CGI abuses NASL id JOOMLA_OBJECT_INJECTION.NASL description The Joomla! application running on the remote web server is affected by a remote code execution vulnerability due to improper sanitization of the User-Agent header field when saving session values. An unauthenticated, remote attacker can exploit this, via a serialized PHP object, to execute arbitrary PHP code. last seen 2020-06-01 modified 2020-06-02 plugin id 88489 published 2016-01-29 reporter This script is Copyright (C) 2016-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/88489 title Joomla! User-Agent Object Injection RCE NASL family CGI abuses NASL id JOOMLA_346.NASL description According to its self-reported version number, the Joomla! installation running on the remote web server is prior to 3.4.6. It is, therefore, affected by multiple vulnerabilities : - A remote code execution vulnerability exists due to improper sanitization of session values. An unauthenticated, remote attacker can exploit this to execute arbitrary code. (CVE-2015-8562) - A cross-site request forgery (XSRF) vulnerability exists due to HTTP requests to com_templates not requiring multiple steps, explicit confirmation, or a unique token when performing certain sensitive actions. An unauthenticated, remote attacker can exploit this, by convincing a user to follow a specially crafted link, to cause the user to perform unspecified actions. (CVE-2015-8563) - A path traversal vulnerability exists due to improper sanitization of user-supplied input via the XML install file. (CVE-2015-8564) - A path traversal vulnerability exists due to improper sanitization of input supplied via user requests. (CVE-2015-8565) Note that Nessus has not tested for these issues but has instead relied only on the application last seen 2020-06-01 modified 2020-06-02 plugin id 87416 published 2015-12-16 reporter This script is Copyright (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/87416 title Joomla! < 3.4.6 Multiple Vulnerabilities NASL family CGI abuses NASL id JOOMLA_347.NASL description According to its self-reported version number, the Joomla! installation running on the remote web server is prior to 3.4.7. It is, therefore, affected by multiple vulnerabilities : - A SQL injection vulnerability exists due to improper sanitization of user-supplied input. A remote attacker can exploit this to inject or manipulate SQL queries in the back-end database, resulting in the manipulation or disclosure of arbitrary data. - A remote code execution vulnerability exists due to improper sanitization of session values. An unauthenticated, remote attacker can exploit this to execute arbitrary code. Note that CVE-2015-8562 was addressed in version 3.4.6; however, the core issue involves a fix to PHP. Note that Nessus has not tested for these issues but has instead relied only on the application last seen 2020-06-01 modified 2020-06-02 plugin id 87767 published 2016-01-06 reporter This script is Copyright (C) 2016-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/87767 title Joomla! < 3.4.7 Multiple Vulnerabilities NASL family FreeBSD Local Security Checks NASL id FREEBSD_PKG_A9F60CE8A4E011E5B86414DAE9D210B8.NASL description The JSST and the Joomla! Security Center report : [20151201] - Core - Remote Code Execution Vulnerability Browser information is not filtered properly while saving the session values into the database which leads to a Remote Code Execution vulnerability. [20151202] - Core - CSRF Hardening Add additional CSRF hardening in com_templates. [20151203] - Core - Directory Traversal Failure to properly sanitize input data from the XML install file located within an extension last seen 2020-06-01 modified 2020-06-02 plugin id 87483 published 2015-12-18 reporter This script is Copyright (C) 2015-2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/87483 title FreeBSD : joomla -- multiple vulnerabilities (a9f60ce8-a4e0-11e5-b864-14dae9d210b8)
Packetstorm
data source https://packetstormsecurity.com/files/download/134949/joomla_http_header_rce.rb.txt id PACKETSTORM:134949 last seen 2016-12-05 published 2015-12-17 reporter Christian Mehlmauer source https://packetstormsecurity.com/files/134949/Joomla-HTTP-Header-Unauthenticated-Remote-Code-Execution.html title Joomla HTTP Header Unauthenticated Remote Code Execution data source https://packetstormsecurity.com/files/download/135100/joomla345-exec.txt id PACKETSTORM:135100 last seen 2016-12-05 published 2015-12-31 reporter Khashayar Fereidani source https://packetstormsecurity.com/files/135100/Joomla-3.4.5-Object-Injection.html title Joomla 3.4.5 Object Injection
Saint
bid | 79195 |
description | Joomla User-Agent PHP object injection |
id | web_prog_php_joomlaver |
title | joomla_user_agent |
type | remote |
References
- http://packetstormsecurity.com/files/134949/Joomla-HTTP-Header-Unauthenticated-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/134949/Joomla-HTTP-Header-Unauthenticated-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/135100/Joomla-3.4.5-Object-Injection.html
- http://packetstormsecurity.com/files/135100/Joomla-3.4.5-Object-Injection.html
- http://www.rapid7.com/db/modules/exploit/multi/http/joomla_http_header_rce
- http://www.rapid7.com/db/modules/exploit/multi/http/joomla_http_header_rce
- http://www.securityfocus.com/archive/1/537219/100/0/threaded
- http://www.securityfocus.com/archive/1/537219/100/0/threaded
- http://www.securityfocus.com/bid/79195
- http://www.securityfocus.com/bid/79195
- https://blog.sucuri.net/2015/12/remote-command-execution-vulnerability-in-joomla.html
- https://blog.sucuri.net/2015/12/remote-command-execution-vulnerability-in-joomla.html
- https://developer.joomla.org/security-centre/630-20151214-core-remote-code-execution-vulnerability.html
- https://developer.joomla.org/security-centre/630-20151214-core-remote-code-execution-vulnerability.html
- https://www.exploit-db.com/exploits/38977/
- https://www.exploit-db.com/exploits/38977/
- https://www.exploit-db.com/exploits/39033/
- https://www.exploit-db.com/exploits/39033/