mirror of
https://github.com/curl/curl.git
synced 2024-12-09 06:30:06 +08:00
docs: mention indirect effects of --insecure
Warn users that disabling certficate verification allows servers to "pollute" curl with data it trusts. Reported-by: Harry Sintonen Closes #10126
This commit is contained in:
parent
07dfbc08bf
commit
ee583c68d4
@ -26,3 +26,8 @@ For SFTP and SCP, this option makes curl skip the *known_hosts* verification.
|
||||
".ssh" subdirectory, which contains host names and their public keys.
|
||||
|
||||
**WARNING**: using this option makes the transfer insecure.
|
||||
|
||||
When curl uses secure protocols it trusts responses and allows for example
|
||||
HSTS and Alt-Svc information to be stored and used subsequently. Using
|
||||
--insecure can make curl trust and use such information from malicious
|
||||
servers.
|
||||
|
@ -67,6 +67,17 @@ The default value for this option is 2.
|
||||
This option controls checking the server's certificate's claimed identity.
|
||||
The server could be lying. To control lying, see
|
||||
\fICURLOPT_SSL_VERIFYPEER(3)\fP.
|
||||
|
||||
WARNING: disabling verification of the certificate allows bad guys to
|
||||
man-in-the-middle the communication without you knowing it. Disabling
|
||||
verification makes the communication insecure. Just having encryption on a
|
||||
transfer is not enough as you cannot be sure that you are communicating with
|
||||
the correct end-point.
|
||||
|
||||
When libcurl uses secure protocols it trusts responses and allows for example
|
||||
HSTS and Alt-Svc information to be stored and used subsequently. Disabling
|
||||
certificate verification can make libcurl trust and use such information from
|
||||
malicious servers.
|
||||
.SH LIMITATIONS
|
||||
Secure Transport: If \fIverify\fP value is 0, then SNI is also disabled. SNI is
|
||||
a TLS extension that sends the hostname to the server. The server may use that
|
||||
|
@ -61,6 +61,11 @@ man-in-the-middle the communication without you knowing it. Disabling
|
||||
verification makes the communication insecure. Just having encryption on a
|
||||
transfer is not enough as you cannot be sure that you are communicating with
|
||||
the correct end-point.
|
||||
|
||||
When libcurl uses secure protocols it trusts responses and allows for example
|
||||
HSTS and Alt-Svc information to be stored and used subsequently. Disabling
|
||||
certificate verification can make libcurl trust and use such information from
|
||||
malicious servers.
|
||||
.SH DEFAULT
|
||||
By default, curl assumes a value of 1.
|
||||
.SH PROTOCOLS
|
||||
|
Loading…
Reference in New Issue
Block a user