CVE-2003-1248 (CNNVD-200312-389)
中文标题:
H-Sphere WebShell远程命令执行漏洞
英文标题:
H-Sphere WebShell 2.3 allows remote attackers to execute arbitrary commands via shell metacharacters...
漏洞描述
中文描述:
Webshell是一款基于WEB的应用程序,可以作为文件管理器进行文件上传和下载处理,使用用户名/密码方式进行认证,以suid root属性运行。 Webshell中多处代码对用户提交的请求缺少正确过滤检查,远程攻击者可以利用这个漏洞以root用户权限在系统上执行任意命令。 Webshell中的'command.C'114-117行中: string file = dirname + '/' + cgi.varByName("file"); string mode = cgi.varByName("mode"); string tmp=CHMOD+mode+" "+shquote(encodeFileName(file)); if (0==system(tmp.c_str())) { 由于对HTTP查询字段中的'mode'变量缺少正确检查,提交包含恶意命令的参数给'mode'变量,可以导致以root用户权限执行(如 'mode=$(cat /etc/passwd) 0755')。 在'command2.cc'中的170-228之间也存在对输入缺少正确过滤问题: void Command::compress(bool download) { string zipfile=encodeFileName(cgi.varByName("zipfile")); string compression=cgi.varByName("compression"); . . if (compression.compare("zip")==0) { . . cmd=ZIP" -q -r -b /tmp "+zipfile+tmp; } . . if (!error) { if (download) html.header("application/x-unknown"); error= !((chdir(dirname.c_str())==0) && (system(cmd.c_str())==0)); 由于对HTTP查询中的'zipfile'字段数据缺少正确检查,提交包含元字符加SHELL命令的数据作为'zipfile'值,可能以root用户权限执行这些恶意命令(如'zipfile=xyzzy`ls -l`')。
英文描述:
H-Sphere WebShell 2.3 allows remote attackers to execute arbitrary commands via shell metacharacters in the (1) mode and (2) zipfile parameters in a URL request.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| positive_software | h-sphere | 2.3_rc3 | - | - |
cpe:2.3:a:positive_software:h-sphere:2.3_rc3:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
CVSS评分详情
AV:N/AC:L/Au:N/C:P/I:P/A:P
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2003-1248 |
2025-11-11 15:17:28 | 2025-11-11 07:32:20 |
| NVD | nvd_CVE-2003-1248 |
2025-11-11 14:50:37 | 2025-11-11 07:41:06 |
| CNNVD | cnnvd_CNNVD-200312-389 |
2025-11-11 15:08:42 | 2025-11-11 07:48:52 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 授权问题
- cnnvd_id: 未提取 -> CNNVD-200312-389
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- severity: SeverityLevel.MEDIUM -> SeverityLevel.HIGH
- cvss_score: 未提取 -> 7.5
- cvss_vector: NOT_EXTRACTED -> AV:N/AC:L/Au:N/C:P/I:P/A:P
- cvss_version: NOT_EXTRACTED -> 2.0
- affected_products_count: 0 -> 1
- data_sources: ['cve'] -> ['cve', 'nvd']