]> git.ipfire.org Git - thirdparty/curl.git/commit
ftp,imap,pop3: do not ignore --ssl-reqd
authorPatrick Monnerat <patrick@monnerat.net>
Wed, 8 Sep 2021 09:56:22 +0000 (11:56 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 13 Sep 2021 14:51:31 +0000 (16:51 +0200)
commit364f174724ef115c63d5e5dc1d3342c8a43b1cca
tree9856fb764ee026d4c55c9525496b541a79af7800
parent43157490a5054bd24256fe12876931e8abc9df49
ftp,imap,pop3: do not ignore --ssl-reqd

In imap and pop3, check if TLS is required even when capabilities
request has failed.

In ftp, ignore preauthentication (230 status of server greeting) if TLS
is required.

Bug: https://curl.se/docs/CVE-2021-22946.html

CVE-2021-22946
lib/ftp.c
lib/imap.c
lib/pop3.c
tests/data/Makefile.inc
tests/data/test984 [new file with mode: 0644]
tests/data/test985 [new file with mode: 0644]
tests/data/test986 [new file with mode: 0644]