Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Lib/xmlrpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1167,8 +1167,9 @@ def single_request(self, host, handler, request_body, verbose=False):
#Discard any response data and raise exception
if resp.getheader("content-length", ""):
resp.read()
uname = f'{host.split(':')[0]}@{host.split('@')[1]}'
raise ProtocolError(
host + handler,
uname + handler,
resp.status, resp.reason,
dict(resp.getheaders())
)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fixed security issue where passwords might get leaked because of
``ProtocolError`` thrown by the :meth:`xmlrpc.client.Transport.single_request`
in the :mod:`xmlrpc.client`
Loading