Cross-User Lock/Unlock via Absolute DAV Path
该报告还没有中文解读。
原文摘录
摘自原文(12069 字符中的一小部分)
Any authenticated user can lock or unlock files they do not own by targeting absolute WebDAV paths of other users. The DAV plugin resolves files from the absolute request URI without verifying that the `<userId>` path segment matches the authenticated session user. This enables:
原文中的代码
public function httpLock(RequestInterface $request, ResponseInterface $response) {
if ($request->getHeader('X-User-Lock')) {
$lockType = (int)($request->getHeader('X-User-Lock-Type') ?? ILock::TYPE_USER);
$response->setHeader('Content-Type', 'application/xml; charset=utf-8'); …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 Nextcloud 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @0x0doteth · 版权归作者与 Nextcloud 所有