CVE-2003-0442
CVSS4.3
发布时间 :2003-07-24 00:00:00
修订时间 :2016-10-17 22:33:54
NMCOES    

[原文]Cross-site scripting (XSS) vulnerability in the transparent SID support capability for PHP before 4.3.2 (session.use_trans_sid) allows remote attackers to insert arbitrary script via the PHPSESSID parameter.


[CNNVD]PHP Transparent会话ID跨站脚本执行漏洞(CNNVD-200307-041)

        
        PHP是一款广泛使用的脚本语言解析系统,可以方便的进行WEB开发,能嵌入到HTML中使用。
        PHP由于不充分过滤PHPSESSID URI参数,远程攻击者可以利用这个漏洞进行跨站脚本执行攻击,可能获取其他用户的敏感信息。
        PHP可以自动把SESSION ID嵌入到WEB的URL中,此功能称为:"transparent SID support",由于PHP对此ID缺少充分的过滤。如一个有漏洞的WEB站点,下面的URL会导致产生的WEB页包含脚本代码:
        " target="_blank">http://www.somesite.example/index.php?PHPSESSID=">
        此脚本由PHP生成时会如下所示:
        
        攻击者可以诱使用户访问构建的恶意URL,使的恶意脚本代码在用户浏览器上执行,可窃取目标用户SESSION ID,重定向登录页面等。
        

- CVSS (基础分值)

CVSS分值: 4.3 [中等(MEDIUM)]
机密性影响: [--]
完整性影响: [--]
可用性影响: [--]
攻击复杂度: [--]
攻击向量: [--]
身份认证: [--]

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

cpe:/o:redhat:linux:8.0Red Hat Linux 8.0
cpe:/o:redhat:linux:9.0Red Hat Linux 9.0
cpe:/a:php:php:4.3.1PHP PHP 4.3.1

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

oval:org.mitre.oval:def:485PH Cross-site Scripting Vulnerability
*OVAL详细的描述了检测该漏洞的方法,你可以从相关的OVAL定义中找到更多检测该漏洞的技术细节。

- 官方数据库链接

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

- 其它链接及资源

http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000691
(UNKNOWN)  CONECTIVA  CLSA-2003:691
http://marc.info/?l=bugtraq&m=105449314612963&w=2
(UNKNOWN)  BUGTRAQ  20030530 PHP Trans SID XSS (Was: New php release with security fixes)
http://marc.info/?l=bugtraq&m=105760591228031&w=2
(UNKNOWN)  BUGTRAQ  20030707 [OpenPKG-SA-2003.032] OpenPKG Security Advisory (php)
http://shh.thathost.com/secadv/2003-05-11-php.txt
(VENDOR_ADVISORY)  MISC  http://shh.thathost.com/secadv/2003-05-11-php.txt
http://www.ciac.org/ciac/bulletins/n-112.shtml
(UNKNOWN)  CIAC  N-112
http://www.debian.org/security/2003/dsa-351
(UNKNOWN)  DEBIAN  DSA-351
http://www.mandriva.com/security/advisories?name=MDKSA-2003:082
(UNKNOWN)  MANDRAKE  MDKSA-2003:082
http://www.redhat.com/support/errata/RHSA-2003-204.html
(VENDOR_ADVISORY)  REDHAT  RHSA-2003:204
http://www.securityfocus.com/bid/7761
(UNKNOWN)  BID  7761
http://www.securitytracker.com/id?1008653
(UNKNOWN)  SECTRACK  1008653
http://www.turbolinux.co.jp/security/2003/TLSA-2003-47j.txt
(UNKNOWN)  TURBO  TLSA-2003-47
http://xforce.iss.net/xforce/xfdb/12259
(UNKNOWN)  XF  php-session-id-xss(12259)

- 漏洞信息

PHP Transparent会话ID跨站脚本执行漏洞
中危 输入验证
2003-07-24 00:00:00 2005-10-20 00:00:00
远程  
        
        PHP是一款广泛使用的脚本语言解析系统,可以方便的进行WEB开发,能嵌入到HTML中使用。
        PHP由于不充分过滤PHPSESSID URI参数,远程攻击者可以利用这个漏洞进行跨站脚本执行攻击,可能获取其他用户的敏感信息。
        PHP可以自动把SESSION ID嵌入到WEB的URL中,此功能称为:"transparent SID support",由于PHP对此ID缺少充分的过滤。如一个有漏洞的WEB站点,下面的URL会导致产生的WEB页包含脚本代码:
        " target="_blank">http://www.somesite.example/index.php?PHPSESSID=">
        此脚本由PHP生成时会如下所示:
        
        攻击者可以诱使用户访问构建的恶意URL,使的恶意脚本代码在用户浏览器上执行,可窃取目标用户SESSION ID,重定向登录页面等。
        

- 公告与补丁

        临时解决方法:
        如果您不能立刻安装补丁或者升级,CNNVD建议您采取以下措施以降低威胁:
        * 如果不需要Transparent SID支持,可修改php.ini,设置如下选项取消:
        session.use_trans_sid=0
        厂商补丁:
        PHP
        ---
        目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载:
        PHP Upgrade PHP 4.3.2
        
        http://www.php.net/downloads.php

- 漏洞信息 (22696)

PHP 4.x Transparent Session ID Cross Site Scripting Vulnerability (EDBID:22696)
php remote
2003-05-30 Verified
0 Sverre H. Huseby
N/A [点击下载]
source: http://www.securityfocus.com/bid/7761/info

A cross-site scripting vulnerability has been discovered in PHP. The problem occurs due to insufficient sanitization of the PHPSESSID URI parameter. An attacker may be capable of exploiting this vulnerability by constructing a malicious link containing script code embedded within this variable.

Successful exploitation of this issue would allow an attacker to execute arbitrary script code in a victim's browser within the context of the visited website. This may allow for the theft of sensitive information or other attacks. 

http://www.example.org/index.php?PHPSESSID="><script>...</script> 		

- 漏洞信息

4758
PHP session.use_trans_sid PHPSESSID Parameter XSS
Remote / Network Access Input Manipulation
Loss of Integrity
Exploit Public

- 漏洞描述

PHP contains a flaw that allows a remote cross site scripting attack. This flaw exists because the application does not validate PHPSESSID variables upon submission to the index.php script. This could allow a user to create a specially crafted URL that would execute arbitrary code in a user's browser within the trust relationship between the browser and the server, leading to a loss of integrity.

- 时间线

2003-02-20 2003-02-19
Unknow Unknow

- 解决方案

Upgrade to version 4.3.2 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

- 相关参考

- 漏洞作者

- 漏洞信息

PHP Transparent Session ID Cross Site Scripting Vulnerability
Input Validation Error 7761
Yes No
2003-05-30 12:00:00 2009-07-11 10:06:00
The discovery of this vulnerability has been credited to Sverre H. Huseby.

- 受影响的程序版本

PHP PHP 4.3.1
+ Mandriva Linux Mandrake 9.1 ppc
+ Mandriva Linux Mandrake 9.1
+ OpenPKG OpenPKG Current
+ S.u.S.E. Linux Personal 8.2
PHP PHP 4.3
PHP PHP 4.2.3
+ EnGarde Secure Linux 1.0.1
+ MandrakeSoft Corporate Server 2.1 x86_64
+ MandrakeSoft Corporate Server 2.1
+ Mandriva Linux Mandrake 9.0
+ Turbolinux Turbolinux Server 8.0
+ Turbolinux Turbolinux Server 7.0
+ Turbolinux Turbolinux Workstation 8.0
+ Turbolinux Turbolinux Workstation 7.0
PHP PHP 4.2.2
+ Gentoo Linux 1.4 _rc1
+ Gentoo Linux 1.2
+ OpenPKG OpenPKG 1.1
+ RedHat Linux 8.0 i386
+ RedHat Linux 8.0
+ S.u.S.E. Linux 8.1
PHP PHP 4.2.1
- FreeBSD FreeBSD 4.6
- FreeBSD FreeBSD 4.5
- FreeBSD FreeBSD 4.4
- FreeBSD FreeBSD 4.3
+ Slackware Linux 8.1
PHP PHP 4.2 .0
PHP PHP 4.1.2
+ Apple Mac OS X 10.1.5
+ Apple Mac OS X 10.1.4
+ Apple Mac OS X 10.1.3
+ Apple Mac OS X 10.1.2
+ Apple Mac OS X 10.1.1
+ Apple Mac OS X 10.1
+ Apple Mac OS X 10.1
+ Apple Mac OS X 10.0.4
+ Apple Mac OS X 10.0.3
+ Apple Mac OS X 10.0.2
+ Apple Mac OS X 10.0.1
+ Apple Mac OS X 10.0
+ Debian Linux 3.0 sparc
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 alpha
+ MandrakeSoft Multi Network Firewall 2.0
+ MandrakeSoft Single Network Firewall 7.2
+ Mandriva Linux Mandrake 8.2 ppc
+ Mandriva Linux Mandrake 8.2
PHP PHP 4.1.1
+ Conectiva Linux 7.0
PHP PHP 4.1 .0
+ S.u.S.E. Linux 8.0 i386
+ S.u.S.E. Linux 8.0
PHP PHP 4.0.7
PHP PHP 4.0.6
+ Caldera OpenLinux Server 3.1.1
+ Caldera OpenLinux Server 3.1
+ Caldera OpenLinux Workstation 3.1.1
+ Caldera OpenLinux Workstation 3.1
+ HP Secure OS software for Linux 1.0
- IBM AIX 4.3.3
- IBM AIX 4.3.2
- IBM AIX 4.3.1
- IBM AIX 4.3
- IBM AIX 5.1
+ MandrakeSoft Corporate Server 1.0.1
+ Mandriva Linux Mandrake 8.1 ia64
+ Mandriva Linux Mandrake 8.1
+ Mandriva Linux Mandrake 8.0 ppc
+ Mandriva Linux Mandrake 8.0
+ Mandriva Linux Mandrake 7.2
+ Mandriva Linux Mandrake 7.1
+ RedHat Linux 7.2 ia64
+ RedHat Linux 7.2 i386
+ RedHat Linux 7.2
+ RedHat Linux 7.1 ia64
+ RedHat Linux 7.1 i386
+ RedHat Linux 7.1 alpha
+ RedHat Linux 7.1
+ RedHat Linux 7.0 i386
+ RedHat Linux 7.0 alpha
+ RedHat Linux 7.0
+ S.u.S.E. Linux 7.3 sparc
+ S.u.S.E. Linux 7.3 ppc
+ S.u.S.E. Linux 7.3 i386
+ S.u.S.E. Linux 7.3
+ S.u.S.E. Linux 7.2 i386
+ S.u.S.E. Linux 7.2
+ Sun Cobalt RaQ 550
+ Sun LX50
+ Trustix Secure Linux 1.5
PHP PHP 4.0.5
PHP PHP 4.0.4
+ Compaq Compaq Secure Web Server PHP 1.0
+ Conectiva Linux 6.0
+ Guardian Digital Engarde Secure Linux 1.0.1
+ S.u.S.E. Linux 7.2
+ S.u.S.E. Linux 7.1 x86
+ S.u.S.E. Linux 7.1 sparc
+ S.u.S.E. Linux 7.1 ppc
+ S.u.S.E. Linux 7.1 alpha
+ S.u.S.E. Linux 7.1
+ S.u.S.E. Linux 7.0 sparc
+ S.u.S.E. Linux 7.0 ppc
+ S.u.S.E. Linux 7.0 i386
+ S.u.S.E. Linux 7.0 alpha
+ S.u.S.E. Linux 7.0
PHP PHP 4.0.3
+ Debian Linux 2.2 sparc
+ Debian Linux 2.2 powerpc
+ Debian Linux 2.2 IA-32
+ Debian Linux 2.2 arm
+ Debian Linux 2.2 alpha
+ Debian Linux 2.2 68k
+ Debian Linux 2.2
+ Sun Cobalt Control Station 4100CS
+ Sun Cobalt Qube3 Japanese 4000WGJ
+ Sun Cobalt Qube3 Japanese w/ Caching and RAID 4100WGJ
+ Sun Cobalt Qube3 Japanese w/Caching 4010WGJ
+ Sun Cobalt RaQ XTR 3500R
+ Sun Cobalt RaQ XTR Japanese 3500R-ja
PHP PHP 4.0.2
PHP PHP 4.0.1
+ Sun Cobalt Qube3 4000WG
+ Sun Cobalt Qube3 w/ Caching and RAID 4100WG
+ Sun Cobalt Qube3 w/Caching 4010WG
+ Sun Cobalt RaQ4 3001R
+ Sun Cobalt RaQ4 Japanese RAID 3100R-ja
+ Sun Cobalt RaQ4 RAID 3100R
PHP PHP 4.0 0
OpenPKG OpenPKG 1.2
OpenPKG OpenPKG 1.1
OpenPKG OpenPKG 1.0
Conectiva Linux 9.0
Conectiva Linux 8.0
Conectiva Linux 7.0
PHP PHP 4.3.2

- 不受影响的程序版本

PHP PHP 4.3.2

- 漏洞讨论

A cross-site scripting vulnerability has been discovered in PHP. The problem occurs due to insufficient sanitization of the PHPSESSID URI parameter. An attacker may be capable of exploiting this vulnerability by constructing a malicious link containing script code embedded within this variable.

Successful exploitation of this issue would allow an attacker to execute arbitrary script code in a victim's browser within the context of the visited website. This may allow for the theft of sensitive information or other attacks.

- 漏洞利用

The following proof of concept URL has been made available:

http://www.example.org/index.php?PHPSESSID="&gt;&lt;script&gt;...&lt;/script&gt;

- 解决方案

This vulnerability has been addressed in the PHP 4.3.2 release. Users are urged to upgrade as soon as possible.

TurboLinux has released advisory (TLSA-2003-8-25) to address this issue. Users are advised to use the turbopkg tool to apply updates. Further information is available in the referenced advisory.

Mandrake has released a new security advisory, (MDKSA-2003:082). Information on obtaining and applying fixes can be found in the referenced advisory.

Debian has released a new security advisory, (DSA 351-1 ). Information on obtaining and applying fixes can be found in the referenced advisory.

Red Hat has released advisory RHSA-2003:204-01 to address this issue.

OpenPKG has released a new security advisory, OpenPKG-SA-2003.032. Information on obtaining and applying fixes can be found in the referenced advisory.

Conectiva has released a new security advisory, CLA-2003:691. Information on obtaining and applying fixes can be found in the referenced advisory.

Yellow Dog has released a security advisory regarding these issues. Information on obtaining and applying fixes can be found in the referenced advisory.

TurboLinux has released advisory TLSA-2003-47 to address this issue.


PHP PHP 4.0 0

PHP PHP 4.0.1

PHP PHP 4.0.2

PHP PHP 4.0.3

PHP PHP 4.0.4

PHP PHP 4.0.5

PHP PHP 4.0.6

PHP PHP 4.0.7

PHP PHP 4.1 .0

PHP PHP 4.1.1

PHP PHP 4.1.2

关于SCAP中文社区

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

版权声明

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