Open Solutions for Education openSIS 安全漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 2073949 漏洞类型 路径遍历
发布时间 2020-07-01 更新时间 2020-08-12
CVE编号 CVE-2020-13383 CNNVD-ID CNNVD-202006-1881
漏洞平台 N/A CVSS评分 N/A
|漏洞来源
https://cxsecurity.com/issue/WLB-2020070006
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-202006-1881
|漏洞详情
Open Solutions for Education openSIS是美国Open Solutions for Education公司的一套开源的学生信息管理系统。 Open Solutions for Education openSIS 7.4及之前版本中的/Bottom.php脚本存在路径遍历漏洞。攻击者可利用该漏洞包含任意的本地文件,访问被限制的功能或执行任意的PHP代码。
|漏洞EXP
--------------------------------------------------------------
openSIS <= 7.4 (Bottom.php) Local File Inclusion Vulnerability
--------------------------------------------------------------


[-] Software Link:

https://opensis.com/


[-] Affected Versions:

Version 7.4 and prior versions.


[-] Vulnerability Description:

The vulnerable code is located in the /Bottom.php script:

36.	if(clean_param($_REQUEST['modfunc'],PARAM_ALPHA)=='print')
37.	{
38.		$_REQUEST = $_SESSION['_REQUEST_vars'];
39.		$_REQUEST['_openSIS_PDF'] = true;
40.		if(strpos($_REQUEST['modname'],'?')!==false)
41.			$modname = 
substr($_REQUEST['modname'],0,strpos($_REQUEST['modname'],'?'));
42.		else
43.			$modname = $_REQUEST['modname'];
44.		ob_start();
45.		include('modules/'.$modname);

User input passed through the "modname" request parameter is not 
properly sanitized before being
used in a call to the "include()" function at line 45. This can be 
exploited to include arbitrary
local files and potentially access otherwise restricted functionalities 
or execute arbitrary PHP
code with the permissions of the webserver.


[-] Solution:

No official solution is currently available.


[-] Disclosure Timeline:

[04/11/2019] - Vendor notified
[04/11/2019] - Vendor acknowledgement
[10/01/2020] - Vendor contacted again asking for updates
[16/01/2020] - Vendor tried to fix the vulnerability by using 
"mysqli_real_escape_string()"
[06/02/2020] - Vendor was informed about the inappropriate fix
[25/04/2020] - Version 7.4 released, vulnerability still incorrectly 
fixed
[22/05/2020] - CVE number assigned
[30/06/2020] - Public disclosure


[-] CVE Reference:

The Common Vulnerabilities and Exposures project (cve.mitre.org)
has assigned the name CVE-2020-13383 to this vulnerability.


[-] Credits:

Vulnerability discovered by Egidio Romano.


[-] Original Advisory:

http://karmainsecurity.com/KIS-2020-07


|参考资料

来源:packetstormsecurity.com

链接:https://packetstormsecurity.com/files/158256/openSIS-7.4-Local-File-Inclusion.html