49: Cookie-jar save transfers group access to a different GID
访问控制 / Improper Preservation of Permissions / #3973194
该报告还没有中文解读。
原文摘录
摘自原文(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 所有