News for hackers. Stuff that matters.
Re:Apple curl security incident 12604 by sre2 on Saturday March 09, 2024 @05:14AM (#39650705)
Curl has the ability to use the OS certificate store. There is also the option (at invocation) to not use any other certificate stores than the one provided by the user (at invocation). The version which is shipped by Apple does ignore this which introduces a backdoor.
Re:Apple curl security incident 12604 by threeseed on Saturday March 09, 2024 @05:24AM (#39650738)
That behaviour is also a curl configuration option i.e. with-ca-fallback.

Curl definitely should be updating man pages if it is falling back to OpenSSL CAs when --cacert is specified.

Homebrew Curl on Mac also sets this flag:

https://github.com/Homebrew/homebrew-core/blob/9cccce7a6dff7...

Re:Apple curl security incident 12604 by Retr0id on Saturday March 09, 2024 @05:30AM (#39650763)
curl (proper) doesn't do that, nor is it supposed to, that's the point
Re:Apple curl security incident 12604 by threeseed on Saturday March 09, 2024 @05:34AM (#39650779)
This behaviour is part of curl (proper) and is set via compile time flags.

And at least according to curl's code is set by default when it is built against OpenSSL:

https://github.com/curl/curl/blob/1ccf1cd9936dfa382fe1f061b6...

Re:Apple curl security incident 12604 by Retr0id on Saturday March 09, 2024 @05:47AM (#39650840)
It's not set by default. (and even when it is set, does it modify the behaviour of the --cacert option?)
Re:Apple curl security incident 12604 by bbarnett on Saturday March 09, 2024 @05:32AM (#39650768)
You mean Apple, who modified the code to work in this broken way.