CVE-2022-32207: Unpreserved file permissions
该报告还没有中文解读。
原文摘录
摘自原文(2911 字符中的一小部分)
Summary: Curl fails to preserve file permissions when writing: - `CURLOPT_COOKIEJAR` database - `CURLOPT_ALTSVC` database - `CURLOPT_HSTS` database
原文中的代码
/* If old file is a regular file attempt creating a new file with same ownership */
struct stat st;
if (stat(filename, &st) != -1 && S_ISREG(st.st_mode)) {
FILE *file;
int fd;
struct stat nst;
fd = open(tempstore, O_CREAT | O_EXCL, 0700);
if (fd == -1)
goto fail; …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 curl 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @nyymi · 版权归作者与 curl 所有