CVE-2005-0255 (CNNVD-200505-034)
中文标题:
Mozilla Firefox和Mozilla浏览器字符串处理堆破坏漏洞
英文标题:
String handling functions in Mozilla 1.7.3, Firefox 1.0, and Thunderbird before 1.0.2, such as the n...
漏洞描述
中文描述:
Mozilla是一款开放源码的Web浏览器。 Mozilla 1.7.3和Firefox 1.0中的实现中存在漏洞,远程利用漏洞可能允许攻击者导致堆破坏,造成执行任意代码。 漏洞存在于依赖mozilla/xpcom/string/src/nsTSubstring.cpp文件中函数的字符串处理函数(如nsCSubstring::Append)中。某些函数(如nsTSubstring_CharT::Replace())不能检查重新划定字符串大小函数的返回值。 xpcom/string/src/nsTSubstring.cpp: [1] size_type length = tuple.Length(); cutStart = PR_MIN(cutStart, Length()); [2] ReplacePrep(cutStart, cutLength, length); [3] if (length > 0) tuple.WriteTo(mData + cutStart, length); 在[1]中,长度被设置为将要拷贝的字符串的长度,并于[2]传送给ReplacePrep()。如果这个函数执行的重新分配失败,则将mData设为固定的地址。 mData = NS_CONST_CAST(char_type*, char_traits::sEmptyBuffer); mLength = 0; xpcom/string/src/nsSubstring.cpp中设置了sEmptyBuffer的值: static const PRUnichar gNullChar = 0; const char* nsCharTraits<char> ::sEmptyBuffer = (const char*) &gNullChar; 因为没有检查返回值,如果函数失效的话,mData就指向已知的内存位置。通过导致内存消耗直到出现内存耗尽的情况出现,并控制要附加的字符串的值,就可能在[3]导致在已知位置放置任意数据,允许执行任意代码。
英文描述:
String handling functions in Mozilla 1.7.3, Firefox 1.0, and Thunderbird before 1.0.2, such as the nsTSubstring_CharT::Replace function, do not properly check the return values of other functions that resize the string, which allows remote attackers to cause a denial of service and possibly execute arbitrary code by forcing an out-of-memory state that causes a reallocation to fail and return a pointer to a fixed address, which leads to heap corruption.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| mozilla | firefox | 1.0 | - | - |
cpe:2.3:a:mozilla:firefox:1.0:*:*:*:*:*:*:*
|
| mozilla | mozilla | 1.7.3 | - | - |
cpe:2.3:a:mozilla:mozilla:1.7.3:*:*:*:*:*:*:*
|
| mozilla | thunderbird | 0.1 | - | - |
cpe:2.3:a:mozilla:thunderbird:0.1:*:*:*:*:*:*:*
|
| mozilla | thunderbird | 0.2 | - | - |
cpe:2.3:a:mozilla:thunderbird:0.2:*:*:*:*:*:*:*
|
| mozilla | thunderbird | 0.3 | - | - |
cpe:2.3:a:mozilla:thunderbird:0.3:*:*:*:*:*:*:*
|
| mozilla | thunderbird | 0.4 | - | - |
cpe:2.3:a:mozilla:thunderbird:0.4:*:*:*:*:*:*:*
|
| mozilla | thunderbird | 0.5 | - | - |
cpe:2.3:a:mozilla:thunderbird:0.5:*:*:*:*:*:*:*
|
| mozilla | thunderbird | 0.6 | - | - |
cpe:2.3:a:mozilla:thunderbird:0.6:*:*:*:*:*:*:*
|
| mozilla | thunderbird | 0.7 | - | - |
cpe:2.3:a:mozilla:thunderbird:0.7:*:*:*:*:*:*:*
|
| mozilla | thunderbird | 0.8 | - | - |
cpe:2.3:a:mozilla:thunderbird:0.8:*:*:*:*:*:*:*
|
| mozilla | thunderbird | 0.9 | - | - |
cpe:2.3:a:mozilla:thunderbird:0.9:*:*:*:*:*:*:*
|
| mozilla | thunderbird | 1.0 | - | - |
cpe:2.3:a:mozilla:thunderbird:1.0:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
参考链接
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
CVSS评分详情
AV:N/AC:L/Au:N/C:N/I:N/A:P
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2005-0255 |
2025-11-11 15:17:32 | 2025-11-11 07:32:24 |
| NVD | nvd_CVE-2005-0255 |
2025-11-11 14:51:18 | 2025-11-11 07:41:10 |
| CNNVD | cnnvd_CNNVD-200505-034 |
2025-11-11 15:08:46 | 2025-11-11 07:48:57 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 授权问题
- cnnvd_id: 未提取 -> CNNVD-200505-034
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- cvss_score: 未提取 -> 5.0
- cvss_vector: NOT_EXTRACTED -> AV:N/AC:L/Au:N/C:N/I:N/A:P
- cvss_version: NOT_EXTRACTED -> 2.0
- affected_products_count: 0 -> 12
- data_sources: ['cve'] -> ['cve', 'nvd']