POJIA破甲
地图 / Format string vulnerability, curl_msnprintf() function

Format string vulnerability, curl_msnprintf() function

代码执行 / Use of Externally-Controlled Format String / #2990139

厂商
curl
严重程度
低危
赏金
—
弱点
Use of Externally-Controlled Format String
研究员
@orcahack
披露日期
2025-02-20
资产
https://github.com/curl/curl
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(5913 字符中的一小部分)
A vulnerability has been identified in the curl library’s formatted output functions (specifically in curl_msnprintf and its related functions). When a malicious (attacker-controlled) format string containing the %hn conversion specifier is passed, the function incorrectly attempts to write the …
原文中的代码
#include <stdio.h>
#include <curl/mprintf.h>

int main(void) {
    char buffer[256];
    const char *malicious_format = "%hnuked"; 
    printf("Using malicious format string: \"%s\"\n", malicious_format);
    curl_msnprintf(buffer, sizeof(buffer), malicious_format);
    printf("Formatted output: …

默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。

时间线

  • 报告提交
  • 公开披露
阅读 HackerOne 原文 ↗作者 @orcahack · 版权归作者与 curl 所有

同类报告

CVE-2022-40604: Apache Airflow: Format String VulnerabilityInternet Bug Bounty · 2025-01-18 · $8,000Exploitable Format String Vulnerability in curl_mfprintf Functioncurl · 2024-11-06INI Format string injection in Revive Adserver 6.0.4 settingsRevive Adserver · 2026-01-14Translation discovery crashes on crafted filenames (regex substitution injection)Weblate · 2026-10-30Format String Vulnerability in the EdgeSwitch restricted CLIUbiquiti Inc. · 2018-06-19██████████ running a vulnerable log4jU.S. Dept Of Defense · 2022-01-19