mirror of
https://github.com/curl/curl.git
synced 2025-02-05 14:30:10 +08:00
ConnectionExists: for NTLM re-use, require credentials to match
CVE-2015-3143 Bug: http://curl.haxx.se/docs/adv_20150422A.html Reported-by: Paras Sethia
This commit is contained in:
parent
6088fbce06
commit
31be461c6b
@ -3209,7 +3209,7 @@ ConnectionExists(struct SessionHandle *data,
|
||||
}
|
||||
|
||||
if((!(needle->handler->flags & PROTOPT_CREDSPERREQUEST)) ||
|
||||
wantNTLMhttp) {
|
||||
(wantNTLMhttp || check->ntlm.state != NTLMSTATE_NONE)) {
|
||||
/* This protocol requires credentials per connection or is HTTP+NTLM,
|
||||
so verify that we're using the same name and password as well */
|
||||
if(!strequal(needle->user, check->user) ||
|
||||
|
Loading…
Reference in New Issue
Block a user