Re:Curl audit: How a joke led to significant findings
by andrewmcwatters on Tuesday February 14, 2023 @10:51AM
(#34791071)
Boy if they only used Rust, then these curl commands that no one would ever enter would have been memory safe.
[ Parent
| on HN ]
Re:Curl audit: How a joke led to significant findings
by woodruffw on Tuesday February 14, 2023 @10:55AM
(#34791162)
`curl` is widely integrated via its CLI: you'll find all kinds of programs (from simple shell scripts to actual compiled binaries) that interact with `curl` through command-line arguments. So the attacker model here isn't "nobody would type this" it's "does your SoHo router or other software shell out to cURL in an attacker-controllable way."
Re:Curl audit: How a joke led to significant findings
by verall on Tuesday February 14, 2023 @12:54PM
(#34793135)
If an attacker could control the curl CLI on your SoHo router, couldn't they just direct it to download their evil payload, and then use one of a million more common problems to run the evil? Or directly exfiltrate data through HTTP requests made by curl? I don't think anyone runs curl as root so there is no privilege escalation.
Seriously I can't understand the threat model here.
Re:Curl audit: How a joke led to significant findings
by woodruffw on Tuesday February 14, 2023 @01:13PM
(#34793478)
There are different scopes: it's not the case that every controllable CLI invocation is also one where an attacker could change the URL entirely. There are cases where they might only be able to change the behavior of a single flag or option, or a subrange of characters in a specific protocol's URLs, etc.
I think the realistic attack model here is:
1. SoHo router that has a public accessible endpoint that takes inputs boiling down to "safe" cURL flags;
2. Those flags can actually induce memory corruption;
3. An attacker is able to execute arbitrary remote code in the context of the cURL subprocess through a payload packed into the "safe" flag.
Re:Curl audit: How a joke led to significant findings
by bolanyo on Tuesday February 14, 2023 @11:24AM
(#34791666)
your car has libcurl on it, but not Rust.
Re:Curl audit: How a joke led to significant findings
by tomjakubowski on Tuesday February 14, 2023 @11:52AM
(#34792138)
Re:Curl audit: How a joke led to significant findings
by justinsaccount on Tuesday February 14, 2023 @11:53AM
(#34792152)
Most people actively avoid having rust anywhere near their cars.
Re:Curl audit: How a joke led to significant findings
by leafario2 on Tuesday February 14, 2023 @11:57AM
(#34792218)
There are quite some cars that do, actually :)
Re:Curl audit: How a joke led to significant findings
by dralley on Tuesday February 14, 2023 @12:37PM
(#34792906)
VW is using Rust in the entertainment system. There is both interest and a bit of actual adoption.
Re:Curl audit: How a joke led to significant findings
by varjag on Tuesday February 14, 2023 @02:29PM
(#34794658)
As an ID.4 owner I can only remark it does not appear to help them.