CVE-2002-1816 (CNNVD-200212-489)
中文标题:
ATP httpd远程单字节缓冲区溢出漏洞
英文标题:
Off-by-one buffer overflow in the sock_gets function in sockhelp.c for ATPhttpd 0.4b and earlier all...
漏洞描述
中文描述:
ATP httpd是一款轻量级的HTTP服务器程序。 ATP httpd中sock_gets()函数对接收到的数据缺少正确的缓冲区边界检查,远程攻击者可以利用这个漏洞进行缓冲区溢出漏洞,以root用户的权限在系统上执行任意指令。 缓冲区溢出发生在当sock_gets()函数接收到字符串时,函数会接收'count'大小个字符并在最后字符串中追加NULL字符,如果'count'变量值等于传递个这个函数第一参数的字符串大小,就会导致单字节溢出。 下面是问题所在(在'total_count'和'count'之间对比没有预见NULL字符会追加到字符串中): sockhelp.c:311: if ( (total_count < count) && (last_read != 10) && (last_read !=13) ) sockhelp.c:{ sockhelp.c:312: current_position[0] = last_read; sockhelp.c:313: current_position++; sockhelp.c:314: total_count++; sockhelp.c:315: } sockhelp.c:316: } sockhelp.c:317: if (count > 0) 由于不正确的对比,指向字符串的指针'str'会接收到'count'+1字节的数据导致缓冲区溢出: sockhelp.c:318: current_position[0] = 0; sockhelp.c:319: return total_count; sockhelp.c:320:} 由于此HTTP服务程序是单线程结构,守护进程没有设计权限分离,因此需要以root用户权限监听TCP/80端口,任何缓冲区溢出可以导致以root用户权限在系统上执行任意指令。
英文描述:
Off-by-one buffer overflow in the sock_gets function in sockhelp.c for ATPhttpd 0.4b and earlier allows remote attackers to execute arbitrary code via a long HTTP GET request.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| redshift | atphttpd | * | - | - |
cpe:2.3:a:redshift:atphttpd:*:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
参考链接
cve.org
cve.org
cve.org
cve.org
exploitdb
exploitdb
cve.org
CVSS评分详情
3.1 (adp)
CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2002-1816 |
2025-11-11 15:17:25 | 2025-11-11 07:32:17 |
| NVD | nvd_CVE-2002-1816 |
2025-11-11 14:50:28 | 2025-11-11 07:41:04 |
| CNNVD | cnnvd_CNNVD-200212-489 |
2025-11-11 15:08:41 | 2025-11-11 07:48:50 |
| EXPLOITDB | exploitdb_EDB-21936 |
2025-11-11 15:05:25 | 2025-11-11 08:16:39 |
版本与语言
安全公告
变更历史
查看详细变更
- references_count: 4 -> 7
- tags_count: 0 -> 4
- data_sources: ['cnnvd', 'cve', 'nvd'] -> ['cnnvd', 'cve', 'exploitdb', 'nvd']
查看详细变更
- vulnerability_type: 未提取 -> 授权问题
- cnnvd_id: 未提取 -> CNNVD-200212-489
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- affected_products_count: 0 -> 1
- data_sources: ['cve'] -> ['cve', 'nvd']