CVE-2023-32001: fopen race condition
业务逻辑 / TOCTOU 竞态条件 / #2039870
该报告还没有中文解读。
原文摘录
摘自原文(5070 字符中的一小部分)
As we can see in the following curl code (line 59-61 https://github.com/curl/curl/blob/fb802b521af997230b65174a559f5c419520e142/lib/fopen.c ):
原文中的代码
if(stat(filename, &sb) == -1 || !S_ISREG(sb.st_mode)) {
/* a non-regular file, fallback to direct fopen() */
*fh = fopen(filename, FOPEN_WRITETEXT);
...
}
...默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @selmelc · 版权归作者与 curl 所有