This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Nam.Nguyen
Recipients Nam.Nguyen
Date 2017-05-29.04:04:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
Reported by Orange Tsai:

==========
Hi, Python Security Team

import urllib
from urlparse import urlparse

url = 'http://127.0.0.1#@evil.com/'
print urlparse(url).netloc          # 127.0.0.1
print urllib.urlopen(url).read()    # will access evil.com


I have tested on the latest version of Python 2.7.13.
==========
History
Date User Action Args
2017-05-29 04:04:12Nam.Nguyensetrecipients: + Nam.Nguyen
2017-05-29 04:04:12Nam.Nguyensetmessageid: <[email protected]>
2017-05-29 04:04:12Nam.Nguyenlinkissue30500 messages
2017-05-29 04:04:11Nam.Nguyencreate