CVE-2003-1054
CVSS5.0
发布时间 :2003-04-16 00:00:00
修订时间 :2008-09-05 16:35:55
NMCOES    

[原文]mod_access_referer 1.0.2 allows remote attackers to cause a denial of service (crash) via a malformed Referer header that is missing a hostname, as parsed by the ap_parse_uri_components function in Apache, which triggers a null dereference.


[CNNVD]Apache Mod_Access_Referer NULL指针引用远程拒绝服务攻击漏洞(CNNVD-200304-113)

        
        Apache Mod_Access_Referer模块可实现基于"Referer" HTTP头字段的访问控制。
        Mod_Access_Referer模块解析非法HTTP Referer头字段时存在问题,远程攻击者可以利用这个漏洞对Apache进行拒绝服务攻击。
        在find_allowdeny()函数中,uri_components结构的"uptr"由Apache ap_parse_uri_components函数初始化,这个结构"hostname"指针回提供给is_ip()函数用于判断由referer字段的值是否为IP地址或主机名。相关代码如下:
         --- -snip snip- ---
         ap_parse_uri_components (r->pool,
         ap_table_get
         (r->headers_in,
         "Referer"),
         &uptr);
         if (!is_ip (uptr.hostname)) {
         --- -snip snip- ---
        static int
        is_ip (const char *host)
        {
         /* this just tests if it matches [\d.]* */
         /* XX is a better test needed? */
         while ((*host == '.') || ap_isdigit (*host))
         host++;
        
         return (*host == '\0');
        }
         --- -snip snip- ---
        当服务器接收到不正确的referer头字段,ap_parse_uri_components会不初始化uptr.hostname指针,这就导致is_ip()会读取NULL指针而发生段错误,产生服务崩溃。
        

- CVSS (基础分值)

CVSS分值: 5 [中等(MEDIUM)]
机密性影响: NONE [对系统的机密性无影响]
完整性影响: NONE [不会对系统完整性产生影响]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

- CPE (受影响的平台与产品)

产品及版本信息(CPE)暂不可用

- OVAL (用于检测的技术细节)

未找到相关OVAL定义

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2003-1054
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2003-1054
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200304-113
(官方数据源) CNNVD

- 其它链接及资源

http://www.securityfocus.com/bid/7375
(VENDOR_ADVISORY)  BID  7375
http://sourceforge.net/project/shownotes.php?release_id=151905
(PATCH)  MISC  http://sourceforge.net/project/shownotes.php?release_id=151905
http://lists.grok.org.uk/pipermail/full-disclosure/2003-April/004555.html
(VENDOR_ADVISORY)  FULLDISC  20030416 [VulnWatch] Apache mod_access_referer denial of service issue
http://www.vuxml.org/freebsd/af747389-42ba-11d9-bd37-00065be4b5b6.html
(VENDOR_ADVISORY)  CONFIRM  http://www.vuxml.org/freebsd/af747389-42ba-11d9-bd37-00065be4b5b6.html
http://secunia.com/advisories/8612
(VENDOR_ADVISORY)  SECUNIA  8612

- 漏洞信息

Apache Mod_Access_Referer NULL指针引用远程拒绝服务攻击漏洞
中危 其他
2003-04-16 00:00:00 2005-10-20 00:00:00
远程  
        
        Apache Mod_Access_Referer模块可实现基于"Referer" HTTP头字段的访问控制。
        Mod_Access_Referer模块解析非法HTTP Referer头字段时存在问题,远程攻击者可以利用这个漏洞对Apache进行拒绝服务攻击。
        在find_allowdeny()函数中,uri_components结构的"uptr"由Apache ap_parse_uri_components函数初始化,这个结构"hostname"指针回提供给is_ip()函数用于判断由referer字段的值是否为IP地址或主机名。相关代码如下:
         --- -snip snip- ---
         ap_parse_uri_components (r->pool,
         ap_table_get
         (r->headers_in,
         "Referer"),
         &uptr);
         if (!is_ip (uptr.hostname)) {
         --- -snip snip- ---
        static int
        is_ip (const char *host)
        {
         /* this just tests if it matches [\d.]* */
         /* XX is a better test needed? */
         while ((*host == '.') || ap_isdigit (*host))
         host++;
        
         return (*host == '\0');
        }
         --- -snip snip- ---
        当服务器接收到不正确的referer头字段,ap_parse_uri_components会不初始化uptr.hostname指针,这就导致is_ip()会读取NULL指针而发生段错误,产生服务崩溃。
        

- 公告与补丁

        临时解决方法:
        如果您不能立刻安装补丁或者升级,CNNVD建议您采取以下措施以降低威胁:
        * 非官方补丁如下:
        
        http://sourceforge.net/project/showfiles.php?group_id=924&release_id=151905

        厂商补丁:
        mod_access_referer
        ------------------
        目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本:
        
        http://accessreferer.sourceforge.net/

- 漏洞信息 (22505)

Apache Mod_Access_Referer 1.0.2 NULL Pointer Dereference Denial of Service Vulnerability (EDBID:22505)
multiple remote
2003-04-16 Verified
0 zillion
N/A [点击下载]
source: http://www.securityfocus.com/bid/7375/info

A vulnerability has been reported for the mod_access_referer Apache module. The problem occurs when parsing invalid HTTP referer header fields. If this vulnerability were to be triggered, it may be possible to trigger a NULL pointer dereference, effectively causing Apache to segfault.

Referer: ://its-missing-http.com 		

- 漏洞信息

13737
mod_access_referer for Apache HTTP Server Malformed Referer DoS
Denial of Service
Loss of Availability

- 漏洞描述

Unknown or Incomplete

- 时间线

2003-04-16 Unknow
Unknow Unknow

- 解决方案

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

Apache Mod_Access_Referer NULL Pointer Dereference Denial of Service Vulnerability
Failure to Handle Exceptional Conditions 7375
Yes No
2003-04-16 12:00:00 2009-07-11 09:06:00
The discovery of this vulnerability has been credited to zillion <zillion@safemode.org>.

- 受影响的程序版本

mod_access_referer mod_access_referer 1.0.2
- Apache Software Foundation Apache 2.0.45
- Apache Software Foundation Apache 2.0.44
- Apache Software Foundation Apache 2.0.43
- Apache Software Foundation Apache 2.0.42
- Apache Software Foundation Apache 2.0.41
- Apache Software Foundation Apache 2.0.40
- Apache Software Foundation Apache 2.0.39
- Apache Software Foundation Apache 2.0.38
- Apache Software Foundation Apache 2.0.37
- Apache Software Foundation Apache 2.0.36
- Apache Software Foundation Apache 2.0.35
- Apache Software Foundation Apache 2.0.32
- Apache Software Foundation Apache 2.0.28
- Apache Software Foundation Apache 2.0
- Apache Software Foundation Apache 1.3.27
- Apache Software Foundation Apache 1.3.26
- Apache Software Foundation Apache 1.3.25
- Apache Software Foundation Apache 1.3.24
- Apache Software Foundation Apache 1.3.23
- Apache Software Foundation Apache 1.3.22
- Apache Software Foundation Apache 1.3.20
- Apache Software Foundation Apache 1.3.19
- Apache Software Foundation Apache 1.3.18
- Apache Software Foundation Apache 1.3.17
- Apache Software Foundation Apache 1.3.14
- Apache Software Foundation Apache 1.3.12
- Apache Software Foundation Apache 1.3.11
- Apache Software Foundation Apache 1.3.9
- Apache Software Foundation Apache 1.3.6
- Apache Software Foundation Apache 1.3.4
- Apache Software Foundation Apache 1.3.3
- Apache Software Foundation Apache 1.3.1
- Apache Software Foundation Apache 1.3

- 漏洞讨论

A vulnerability has been reported for the mod_access_referer Apache module. The problem occurs when parsing invalid HTTP referer header fields. If this vulnerability were to be triggered, it may be possible to trigger a NULL pointer dereference, effectively causing Apache to segfault.

- 漏洞利用

The following proof of concept HTTP referer header field has been made available:

Referer: ://its-missing-http.com

- 解决方案

Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: vuldb@securityfocus.com <mailto:vuldb@securityfocus.com>.

- 相关参考

 

 

关于SCAP中文社区

SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

版权声明

CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站