POJIA破甲
地图 / 49: Cookie-jar save transfers group access to a different GID

49: Cookie-jar save transfers group access to a different GID

访问控制 / Improper Preservation of Permissions / #3973194

厂商
curl
严重程度
未评级
赏金
—
弱点
Improper Preservation of Permissions
研究员
@giant_anteater
披露日期
2026-09-08
资产
https://github.com/curl/curl
CVE
CVE-2022-32207

该报告还没有中文解读。

原文摘录

摘自原文(5725 字符中的一小部分)
`Curl_fopen()` copies the old cookie jar's permission bits onto a newly created temp file, but the temp file may receive a different GID (the process's primary group instead of the old file's group). After rename, group-permission bits that were intended for one group now authorize a different …
原文中的代码
if(sb.st_uid != geteuid())
  sb.st_mode = 0;
/* ... */
fd = curlx_open(tempstore, O_WRONLY | O_CREAT | O_EXCL,
                S_IRUSR | S_IWUSR | sb.st_mode);

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

时间线

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