From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Library:Libcurl" |
|---|
| claim | "curl_version() joins single-space-separated parts into a 300-byte static buffer: first "libcurl/<version>" (LIBCURL_NAME "/" LIBCURL_VERSION, concatenated by the compiler, so the complete text e.g. "libcurl/8.23.1-DEV" is a literal in every build), then run-time formatted backend parts (TLS backend such as OpenSSL/LibreSSL/AWS-LC/BoringSSL/quictls/Schannel/mbedTLS/wolfSSL, then zlib, brotli, zstd, c-ares, IDN, libpsl, SSH, nghttp2, HTTP/3 libs, libgsasl, GSS-API, LDAP). The backend parts come from format strings such as "zlib/%s", "brotli/%u.%u.%u", "zstd/%u.%u.%u", so only the formats (not the full banner) are in the binary. Searching the literal "libcurl/" followed by digits finds the curl version, but note that other software embeds the same string (user-agent headers, bindings), so confirm with the formats or exports." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Libcurl" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "string search for libcurl/<digits>, plus the "zlib/%s"-style formats" |
|---|
| indicator | "libcurl/8.x.y literal; zlib/%s; brotli/%u.%u.%u; zstd/%u.%u.%u" |
|---|
| table | "LIBCURL_NAME is "libcurl" (lib/urldata.h:1234)" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "curl_version() assembly of the src[] parts" |
|---|
| repo | "https://github.com/curl/curl" |
|---|
| commit | "7ab9cad703d11b6d9f43e6b4290e6bce6d5ab5e4" |
|---|
| path | "lib/version.c" |
|---|
| lines | "140-275" |
|---|
|
| type | "source" |
|---|
| detail | "OSSL_PACKAGE selection and the TLS banner part" |
|---|
| repo | "https://github.com/curl/curl" |
|---|
| commit | "7ab9cad703d11b6d9f43e6b4290e6bce6d5ab5e4" |
|---|
| path | "lib/vtls/openssl.c" |
|---|
| lines | "153-163, 5479-5502" |
|---|
|
| type | "source" |
|---|
| detail | "src[i++] = LIBCURL_NAME "/" LIBCURL_VERSION; at line 198 is adjacent literal concatenation; static char out[300] at line 142; "zlib/%s" line 204, brotli/zstd formats lines 84 and 95" |
|---|
| repo | "https://github.com/curl/curl" |
|---|
| commit | "7ab9cad703d11b6d9f43e6b4290e6bce6d5ab5e4" |
|---|
| path | "lib/version.c" |
|---|
| lines | "84, 95, 142, 198, 204" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "curl_version banner" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T04:49:51.303Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T02:39:27.805Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read lib/version.c at the cited commit: line 198 src[i++] = LIBCURL_NAME "/" LIBCURL_VERSION (adjacent literals), zlib/%s formatted at run time (line 204); urldata.h:1234 LIBCURL_NAME "libcurl"; curlver.h LIBCURL_VERSION "8.23.1-DEV"." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T02:27:49.135Z" |
|---|
| summary | "The first banner part is a complete compile-time literal, so 'libcurl/<version>' is searchable in a binary; only the backend parts are formatted at run time" |
|---|
| changed | | "claim" |
| "data" |
| "evidence" |
|
|---|
|
|
|---|