]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libcurl-security.3: mention file descriptors and forks
authorDaniel Stenberg <daniel@haxx.se>
Thu, 17 Jun 2021 08:06:57 +0000 (10:06 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 17 Jun 2021 15:11:40 +0000 (17:11 +0200)
... and move the security report section last.

Reported-by: Harry Sintonen
Closes #7270

docs/libcurl/libcurl-security.3

index 3b868e75e39f7c8ebba1e7aa65403b40507e8051..b83112f2aab613ce3ad7fc7e4e08eee3231f3c23 100644 (file)
@@ -351,10 +351,6 @@ enabled by applications that fail to properly validate server TLS/SSL
 certificates, thus enabling a malicious server to spoof a legitimate
 one. HTTPS without validated certificates is potentially as insecure as a
 plain HTTP connection.
-.SH "Report Security Problems"
-Should you detect or just suspect a security problem in libcurl or curl,
-contact the project curl security team immediately. See
-https://curl.se/dev/secprocess.html for details.
 .SH "Showing What You Do"
 Relatedly, be aware that in situations when you have problems with libcurl and
 ask someone for help, everything you reveal in order to get best possible help
@@ -383,3 +379,16 @@ that the user is otherwise not able to view (like credentials for a login
 etc), it should be noted that libcurl still might understand proxy environment
 variables that allow the user to redirect libcurl operations to use a proxy
 controlled by the user.
+.SH "File descriptors, fork and ntlm_wb"
+An application that uses libcurl and invokes `fork()` will get all file
+descriptors duplicated in the child process, including the ones libcurl
+created.
+
+libcurl itself uses `fork()` and `execl()` if told to use the
+`CURLAUTH_NTLM_WB` authentication method which then will invoke the helper
+command in a child process with file descriptors duplicated. Make sure that
+only the trusted and reliable helper program is invoked!
+.SH "Report Security Problems"
+Should you detect or just suspect a security problem in libcurl or curl,
+contact the project curl security team immediately. See
+https://curl.se/dev/secprocess.html for details.