mirror of
https://github.com/curl/curl.git
synced 2026-05-30 11:27:29 +03:00
ftp: when failing to do a secure GSSAPI login, fail hard
... instead of switching to cleartext. For the sake of security. Reported-by: Harry Sintonen Bug: https://hackerone.com/reports/1590102 Closes #8963
This commit is contained in:
parent
21ea13cfe1
commit
6754f99398
1 changed files with 5 additions and 4 deletions
|
|
@ -2702,10 +2702,11 @@ static CURLcode ftp_statemachine(struct Curl_easy *data,
|
|||
set a valid level */
|
||||
Curl_sec_request_prot(conn, data->set.str[STRING_KRB_LEVEL]);
|
||||
|
||||
if(Curl_sec_login(data, conn))
|
||||
infof(data, "Logging in with password in cleartext");
|
||||
else
|
||||
infof(data, "Authentication successful");
|
||||
if(Curl_sec_login(data, conn)) {
|
||||
failf(data, "secure login failed");
|
||||
return CURLE_WEIRD_SERVER_REPLY;
|
||||
}
|
||||
infof(data, "Authentication successful");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue