Vulnerabilities > CVE-2011-4825 - Code Injection vulnerability in multiple products

047910
CVSS 7.5 - HIGH
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
low complexity
phpletter
phpmyfaq
tinymce
CWE-94
exploit available
metasploit

Summary

Static code injection vulnerability in inc/function.base.php in Ajax File and Image Manager before 1.1, as used in tinymce before 1.4.2, phpMyFAQ 2.6 before 2.6.19 and 2.7 before 2.7.1, and possibly other products, allows remote attackers to inject arbitrary PHP code into data.php via crafted parameters.

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Manipulating User-Controlled Variables
    This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.

Exploit-Db

  • descriptionaidiCMS 3.55 - (ajax_create_folder.php) Remote Code Execution. CVE-2011-4825. Webapps exploit for php platform
    idEDB-ID:18085
    last seen2016-02-02
    modified2011-11-05
    published2011-11-05
    reporterEgiX
    sourcehttps://www.exploit-db.com/download/18085/
    titleaidiCMS 3.55 - ajax_create_folder.php Remote Code Execution
  • descriptionLog1 CMS writeInfo() PHP Code Injection. CVE-2011-4825. Webapps exploit for php platform
    idEDB-ID:18975
    last seen2016-02-02
    modified2012-06-03
    published2012-06-03
    reportermetasploit
    sourcehttps://www.exploit-db.com/download/18975/
    titleLog1 CMS writeInfo PHP Code Injection
  • descriptionLog1CMS 2.0 - (ajax_create_folder.php) Remote Code Execution. CVE-2011-4825. Webapps exploit for php platform
    idEDB-ID:18151
    last seen2016-02-02
    modified2011-11-24
    published2011-11-24
    reporterAdel SBM
    sourcehttps://www.exploit-db.com/download/18151/
    titleLog1CMS 2.0 - ajax_create_folder.php Remote Code Execution
  • descriptionZenphoto <= 1.4.1.4 - (ajax_create_folder.php) Remote Code Execution. CVE-2011-4825. Webapps exploit for php platform
    idEDB-ID:18083
    last seen2016-02-02
    modified2011-11-05
    published2011-11-05
    reporterEgiX
    sourcehttps://www.exploit-db.com/download/18083/
    titleZenphoto <= 1.4.1.4 - ajax_create_folder.php Remote Code Execution
  • descriptionAjax File and Image Manager 1.0 Final - Remote Code Execution Vulnerability. CVE-2011-4825. Webapps exploit for php platform
    fileexploits/php/webapps/18075.txt
    idEDB-ID:18075
    last seen2016-02-02
    modified2011-11-04
    platformphp
    port
    published2011-11-04
    reporterEgiX
    sourcehttps://www.exploit-db.com/download/18075/
    titleAjax File and Image Manager 1.0 Final - Remote Code Execution Vulnerability
    typewebapps
  • descriptionphpMyFAQ <= 2.7.0 (ajax_create_folder.php) Remote Code Execution. CVE-2011-4825. Webapps exploit for php platform
    idEDB-ID:18084
    last seen2016-02-02
    modified2011-11-05
    published2011-11-05
    reporterEgiX
    sourcehttps://www.exploit-db.com/download/18084/
    titlephpMyFAQ <= 2.7.0 ajax_create_folder.php Remote Code Execution

Metasploit

descriptionThis module exploits the "Ajax File and Image Manager" component that can be found in log1 CMS. In function.base.php of this component, the 'data' parameter in writeInfo() allows any malicious user to have direct control of writing data to file data.php, which results in arbitrary remote code execution.
idMSF:EXPLOIT/MULTI/HTTP/LOG1CMS_AJAX_CREATE_FOLDER
last seen2020-06-04
modified2017-07-24
published2012-06-02
referenceshttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4825
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/multi/http/log1cms_ajax_create_folder.rb
titleLog1 CMS writeInfo() PHP Code Injection

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/113226/log1cms_ajax_create_folder.rb.txt
idPACKETSTORM:113226
last seen2016-12-05
published2012-06-03
reporterEgiX
sourcehttps://packetstormsecurity.com/files/113226/Log1-CMS-writeInfo-PHP-Code-Injection.html
titleLog1 CMS writeInfo() PHP Code Injection