提交 #803270: NousResearch hermes-agent 0.8.0 Path Write Protection Bypass信息

标题NousResearch hermes-agent 0.8.0 Path Write Protection Bypass
描述The write_file and patch tools in hermes-agent include a sensitive path protection mechanism that blocks writes to system directories (e.g., /etc/, /boot/). However, on macOS, /etc is a symlink to /private/etc. The protection check uses os.path.realpath() to resolve the target path, which transforms /etc/hosts into /private/etc/hosts. Since the blocklist only contains /etc/ (not /private/etc/), the check fails to match, and writes to system configuration files are allowed on macOS.
来源⚠️ https://github.com/NousResearch/hermes-agent/issues/8734
用户
 Yu_Bao (UID 89348)
提交2026-04-13 04時31分 (2 月前)
管理2026-04-29 12時44分 (16 days later)
状态已接受
VulDB条目360121 [NousResearch hermes-agent 0.8.0 tools/file_tools.py _check_sensitive_path 权限提升]
积分20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!