Format string vulnerability, curl_msnprintf() function
代码执行 / Use of Externally-Controlled Format String / #2990139
该报告还没有中文解读。
原文摘录
摘自原文(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 所有