mirror of
https://github.com/curl/curl.git
synced 2026-08-02 04:40:28 +03:00
ftp: CURLOPT_FTP_SKIP_PASV_IP by default
The command line tool also independently sets --ftp-skip-pasv-ip by default. Ten test cases updated to adapt the modified --libcurl output. Bug: https://curl.se/docs/CVE-2020-8284.html CVE-2020-8284 Reported-by: Varnavas Papaioannou
This commit is contained in:
parent
abd846c374
commit
ec9cc725d5
14 changed files with 18 additions and 3 deletions
|
|
@ -10,4 +10,6 @@ to curl's PASV command when curl connects the data connection. Instead curl
|
|||
will re-use the same IP address it already uses for the control
|
||||
connection.
|
||||
|
||||
Since curl 7.74.0 this option is enabled by default.
|
||||
|
||||
This option has no effect if PORT, EPRT or EPSV is used instead of PASV.
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
.\" * | (__| |_| | _ <| |___
|
||||
.\" * \___|\___/|_| \_\_____|
|
||||
.\" *
|
||||
.\" * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
.\" * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
.\" *
|
||||
.\" * This software is licensed as described in the file COPYING, which
|
||||
.\" * you should have received as part of this distribution. The terms
|
||||
|
|
@ -35,11 +35,13 @@ address it already uses for the control connection. But it will use the port
|
|||
number from the 227-response.
|
||||
|
||||
This option thus allows libcurl to work around broken server installations
|
||||
that due to NATs, firewalls or incompetence report the wrong IP address back.
|
||||
that due to NATs, firewalls or incompetence report the wrong IP address
|
||||
back. Setting the option also reduces the risk for various sorts of client
|
||||
abuse by malicious servers.
|
||||
|
||||
This option has no effect if PORT, EPRT or EPSV is used instead of PASV.
|
||||
.SH DEFAULT
|
||||
0
|
||||
1 since 7.74.0, was 0 before then.
|
||||
.SH PROTOCOLS
|
||||
FTP
|
||||
.SH EXAMPLE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue