2 ms·
I'm looking at these CVEs thinking "How could curl have a CVE", and to be fair, some of these do seem theoretically significant if combined with other software
by pcthrowaway 4y ago
I'm looking at these CVEs thinking "How could curl have a CVE", and to be fair, some of these do seem theoretically significant if combined with other software bugs.
But some of these just look like regular bugs. For example, https://curl.se/docs/CVE-2022-27778.html https://curl.se/docs/CVE-2022-27778.html
curl might remove the wrong file when --no-clobber is used together with --remove-on-error.
The --remove-on-error option tells curl to remove the output file when it returns an error, and not leave a partial file behind. The --no-clobber option prevents curl from overwriting a file if it already exists, and instead appends a number to the name to create a new unused file name.
If curl adds a number to not "clobber" the output and an error occurs during transfer, the remove on error logic would remove the original file name without the added number.
Which seems like at worst it deletes a previous version of a file fetched with curl, and leaves a partial file, rather than deleting the partial file. I understand there's perhaps a very unlikely scenario in which this could lead to a system being compromised, but it depends on too many other factors that are also increasingly unlikely, it seems on the order of likelihood of reversing SHA-256
- stefan_ 4y agoIt's a C library that includes support for all kind of arcane and useless protocols and operates on a string-based programming model with a lot of magic. It is a prime fucking target for all kinds of CVEs.
- hsbauauvhabzb 4y agoIntegrity and availability are security too. I would call arbitrary file delete a security issue even if it could only be triggered by a non malicious actor.