Vulnerabilities > CVE-2013-1349 - Code Injection vulnerability in Os4Ed Opensis
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
Eval injection vulnerability in ajax.php in openSIS 4.5 through 5.2 allows remote attackers to execute arbitrary PHP code via the modname parameter.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 9 |
Common Weakness Enumeration (CWE)
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
description | OpenSIS 'modname' - PHP Code Execution. CVE-2013-1349. Remote exploit for linux platform |
id | EDB-ID:30471 |
last seen | 2016-02-03 |
modified | 2013-12-24 |
published | 2013-12-24 |
reporter | metasploit |
source | https://www.exploit-db.com/download/30471/ |
title | OpenSIS 'modname' - PHP Code Execution |
Metasploit
description | This module exploits a PHP code execution vulnerability in OpenSIS versions 4.5 to 5.2 which allows any authenticated user to execute arbitrary PHP code under the context of the web-server user. The 'ajax.php' file calls 'eval()' with user controlled data from the 'modname' parameter. |
id | MSF:EXPLOIT/UNIX/WEBAPP/OPENSIS_MODNAME_EXEC |
last seen | 2020-06-01 |
modified | 2019-01-10 |
published | 2013-12-19 |
references | |
reporter | Rapid7 |
source | https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/unix/webapp/opensis_modname_exec.rb |
title | OpenSIS 'modname' PHP Code Execution |
Packetstorm
data source https://packetstormsecurity.com/files/download/124567/opensis_modname_exec.rb.txt id PACKETSTORM:124567 last seen 2016-12-05 published 2013-12-23 reporter EgiX source https://packetstormsecurity.com/files/124567/OpenSIS-modname-PHP-Code-Execution.html title OpenSIS 'modname' PHP Code Execution data source https://packetstormsecurity.com/files/download/124329/KIS-2013-10.txt id PACKETSTORM:124329 last seen 2016-12-05 published 2013-12-07 reporter EgiX source https://packetstormsecurity.com/files/124329/openSIS-5.2-PHP-Code-Injection.html title openSIS 5.2 PHP Code Injection
Seebug
bulletinFamily | exploit |
description | CVE(CAN) ID: CVE-2013-1349 openSIS是开源学生信息系统。 openSIS 5.2版本没有正确过滤ajax.php内的"modname"参数值,可导致注入和执行任意PHP代码。 0 opensis opensis 5.2 厂商补丁: opensis ------- 目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本: http://www.opensis.com/ openSIS: http://sourceforge.net/p/opensis-ce/bugs/59/ Egidio Romano: http://karmainsecurity.com/KIS-2013-10 |
id | SSV:61205 |
last seen | 2017-11-19 |
modified | 2013-12-25 |
published | 2013-12-25 |
reporter | Root |
source | https://www.seebug.org/vuldb/ssvid-61205 |
title | openSIS "modname" PHP代码注入漏洞 |
References
- http://karmainsecurity.com/KIS-2013-10
- http://karmainsecurity.com/KIS-2013-10
- http://secunia.com/advisories/55913
- http://secunia.com/advisories/55913
- http://sourceforge.net/p/opensis-ce/bugs/59/
- http://sourceforge.net/p/opensis-ce/bugs/59/
- http://sourceforge.net/p/opensis-ce/code/1009
- http://sourceforge.net/p/opensis-ce/code/1009