Gửi #812228: NousResearch hermes-agent 5157f5427f19488b31c6fdebbacd15d798ce7f63 OS Command Injection (CWE-78)thông tin

tiêu đềNousResearch hermes-agent 5157f5427f19488b31c6fdebbacd15d798ce7f63 OS Command Injection (CWE-78)
Mô tả# Technical Details A Terminal Tool Command Detection bypass exists in the `detect_dangerous_command` pattern matching checking in `tools/approval.py` of hermes-agent. The application fails to semantically comprehend alternate UNIX execution routines, maintaining purely syntactical feature verification. It blocks `curl xxx | bash` but fails to block semantic equivalents like `eval $(curl...)`. # Vulnerable Code File: tools/approval.py Method: detect_dangerous_command (Regex Patterns) Why: The `DANGEROUS_PATTERNS` regex list explicitly targets piping content to execution `(r'\b(curl|wget)\b.*\|\s*(ba)?sh\b')`. Wrapping remote downloads in command substitutions dispatched through `eval` subverts the syntactic pattern analysis without altering semantic execution, thereby evading the interactive confirmation prompt flow. # Reproduction 1. Prompt the Agent into using the `terminal_tool` executing an alternate command style: e.g., `eval $(curl...)`. 2. The regex verification engine attempts matching the input command and returns safe natively. 3. The execution is handed to `bash` without prompting user confirmation interfaces. 4. The shell interprets `eval` and silently executes the remote text. # Impact - Remote Code Execution (RCE) via prompt injection. - Total neutralization of the agent's built-in sandbox and prompt approval mechanisms, functioning effectively as silent zero-click payload execution.
Nguồn⚠️ https://gist.github.com/YLChen-007/75fb10319693e86106ced2ef3a472c80
Người dùng
 Eric-i (UID 97584)
Đệ trình24/04/2026 15:01 (cách đây 1 tháng)
Kiểm duyệt23/05/2026 12:33 (29 days later)
Trạng tháiđược chấp nhận
Mục VulDB365330 [NousResearch hermes-agent đến 5157f5427f19488b31c6fdebbacd15d798ce7f63 terminal_tool tools/approval.py detect_dangerous_command nâng cao đặc quyền]
điểm20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!