phpMyID XSS vulnerability

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1052460 漏洞类型
发布时间 2008-10-05 更新时间 2008-10-05
CVE编号 N/A CNNVD-ID N/A
漏洞平台 N/A CVSS评分 N/A
|漏洞来源
https://cxsecurity.com/issue/WLB-2008100015
|漏洞详情
漏洞细节尚未披露
|漏洞EXP
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Subject: XSS vulnerability in phpMyID
Credits: Raphael Geissert <atomo64_at_gmail&#46;com>
Release date: 2008-10-27
Affects: v0.9 [23-Jul-2008]

Resources:
    * Homepage: http://siege.org/projects/phpMyID/
    * Demo: http://phpmyid.com

Background:
    phpMyID is a single user OpenID identity provider implemented in PHP.

Problem description:
    The MyID.php script does not sanitize the input it is supposed to be given
    by the site where the user wants to be authenticated. When the return_to
    address does not have the same "root" as trust_root it aborts, opening a
    hole for XSS attacks. 

Impact:
    A user can be tricked and redirected to its vulnerable identity provider,
    place where the specially crafted data exploits the security hole.

Example exploit:
    MyID.php?openid_mode=checkid_immediate&openid_return_to=bar
            &openid_trust_root=%3Cscript%3Ewindow.alert%28%29%3B%3C%2Fscript%3E
            &openid_identity=foo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkjeokkACgkQYy49rUbZzlrT4gCgiJx+DciYJ/gwGvofowlGHLUa
dXIAnRJKr7xKJG71jmabclNAx/GEmLa9
=A51u
-----END PGP SIGNATURE-----