CVE-2003-1327 (CNNVD-200312-075)
中文标题:
Wu-Ftpd SockPrintf()远程栈缓冲区溢出漏洞
英文标题:
Buffer overflow in the SockPrintf function in wu-ftpd 2.6.2 and earlier, when compiled with MAIL_ADM...
漏洞描述
中文描述:
Wu-ftpd是一个基于BSD ftpd的FTP服务器程序,由华盛顿大学维护。 Wu-ftpd包含的SockPrintf()函数在处理输入时缺少正确的边界缓冲区检查,远程攻击者可以通过这个漏洞对服务器进行缓冲区溢出攻击,可能以root用户权限在系统上执行任意指令。 问题存在于SockPrintf()函数使用vsprintf()时: "in file src/ftpd.c" int SockPrintf(FILE *sockfp, char *format,...) { va_list ap; char buf[32768]; va_start(ap, format); vsprintf(buf, format, ap); va_end(ap); return SockWrite(buf, 1, strlen(buf), sockfp); } buf是字符数组(32768),vsprintf使用参数*format,然后在store()函数中: "in file src/ftpd.c" void store(char *name, char *mode, int unique) { ... ... #ifdef MAIL_ADMIN ... ... SockPrintf(sck, "From: wu-ftpd <%s>\r\n", mailfrom); SockPrintf(sck, "Subject: New file uploaded: %s\r\n\r\n", name); ... SockPrintf(sck, "%s uploaded %s from %s.\r\nFile size is %d.\r\n Please move the file where it belongs.\r\n",guestpw, pathname, remotehost, byte_count); ... #endif /* MAIL_ADMIN */ ... ... } 这个函数攻击者可以控制参数名,因此可以远程调用: SockPrintf(sck, "Subject: New file uploaded: %s\r\n\r\n", name); 并触发溢出,攻击者可以通过精心构建超长的文件路径,可能以root用户权限在系统上执行任意指令。 不过此漏洞不存在默认安装Wu-Ftpd服务程序中,服务器必须以'MAIL_ADMIN'选项配置才存在此漏洞。
英文描述:
Buffer overflow in the SockPrintf function in wu-ftpd 2.6.2 and earlier, when compiled with MAIL_ADMIN option enabled on a system that supports very long pathnames, might allow remote anonymous users to execute arbitrary code by uploading a file with a long pathname, which triggers the overflow when wu-ftpd constructs a notification message to the administrator.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| washington_university | wu-ftpd | * | - | - |
cpe:2.3:a:washington_university:wu-ftpd:*:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
CVSS评分详情
AV:N/AC:M/Au:N/C:C/I:C/A:C
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2003-1327 |
2025-11-11 15:17:28 | 2025-11-11 07:32:20 |
| NVD | nvd_CVE-2003-1327 |
2025-11-11 14:50:37 | 2025-11-11 07:41:06 |
| CNNVD | cnnvd_CNNVD-200312-075 |
2025-11-11 15:08:43 | 2025-11-11 07:48:52 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 授权问题
- cnnvd_id: 未提取 -> CNNVD-200312-075
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- severity: SeverityLevel.MEDIUM -> SeverityLevel.CRITICAL
- cvss_score: 未提取 -> 9.3
- cvss_vector: NOT_EXTRACTED -> AV:N/AC:M/Au:N/C:C/I:C/A:C
- cvss_version: NOT_EXTRACTED -> 2.0
- affected_products_count: 0 -> 1
- data_sources: ['cve'] -> ['cve', 'nvd']