[SECURITY] HTTP tools: add SSRF protection #133
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From Audit #131 — Severity: HIGH
uni-wizard/tools/network_tools.pyhttp_get()andhttp_post()accept arbitrary URLs with zero validation. Can be used to probe internal services, cloud metadata endpoints, or localhost.Fix
Port the SSRF protection from
hermes-agent/tools/url_safety.py(already merged in PR #59). Before any HTTP request, validate the resolved IP:Add validation at the top of
http_get()andhttp_post().Acceptance Criteria
http_get("http://169.254.169.254/")returns blocked error🏷️ Automated Triage Check
Timestamp: 2026-03-31T03:30:04.165101
Agent: Allegro Heartbeat
This issue has been identified as needing triage:
Checklist
Context
Automated triage from Allegro 15-minute heartbeat