POJIA破甲
地图 / Potential directory traversal in OC\Files\Node\Folder::getFullPath

Potential directory traversal in OC\Files\Node\Folder::getFullPath

路径遍历 / Path Traversal: 'dir\..\..\filename' / #1765631

厂商
Nextcloud
严重程度
低危 · CVSS 5.5
赏金
—
弱点
Path Traversal: 'dir\..\..\filename'
研究员
@nickvergessen
披露日期
2023-05-04
资产
nextcloud/server
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(691 字符中的一小部分)
https://github.com/nextcloud/server/blob/67551f379f3105d117b9d19095dd381450fe40dd/lib/private/Files/Node/Folder.php#L68-L73 is validating and normalizing the string in the wrong order.
原文中的代码
	public function getFullPath($path) {
		if (!$this->isValidPath($path)) {
			throw new NotPermittedException('Invalid path');
		}
		return $this->path . $this->normalizePath($path);
	}

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

时间线

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