hermes-agent/gateway
Teknium d65468e7ff
fix(security): SSRF guard yuanbao media download_url (#54470)
yuanbao_media.download_url() fetched model-supplied (outbound) and inbound
image/file URLs server-side via httpx with follow_redirects=True and no
SSRF check. A model response containing <img src="http://169.254.169.254/...">
routed through ImageUrlHandler -> download_url and would fetch cloud-metadata
endpoints; same for inbound media.

Add an is_safe_url() pre-flight plus an async redirect event-hook that
re-validates every 30x target, matching the cache_image_from_url() guard in
gateway/platforms/base.py. The other gateway adapters already guard their
URL-fetch paths; this was the remaining unguarded one.
2026-06-28 15:29:59 -07:00
..
assets
…
builtin_hooks
…
platforms fix(security): SSRF guard yuanbao media download_url (#54470) 2026-06-28 15:29:59 -07:00
relay
…
__init__.py
…
authz_mixin.py fix(telegram): apply bot auth policy to Telegram sources 2026-06-28 00:57:03 -07:00
cgroup_cleanup.py fix: satisfy ruff encoding + windows-footgun lints for cgroup reaper 2026-06-28 02:05:50 -07:00
channel_directory.py
…
code_skew.py
…
config.py fix(gateway): make bg-process reset TTL configurable + surface session-scoped processes 2026-06-27 20:45:43 -07:00
delivery.py
…
display_config.py
…
drain_control.py
…
hooks.py
…
kanban_watchers.py
…
memory_monitor.py
…
message_timestamps.py
…
mirror.py
…
pairing.py
…
platform_registry.py perf(startup): lazy-load gateway platform adapters (#54448) 2026-06-28 15:11:59 -07:00
response_filters.py
…
restart.py
…
rich_sent_store.py
…
run.py fix(gateway): preserve sessions across restarts (#54442) 2026-06-28 15:10:39 -07:00
runtime_footer.py
…
scale_to_zero.py
…
session.py fix(gateway): preserve sessions across restarts (#54442) 2026-06-28 15:10:39 -07:00
session_context.py
…
shutdown_forensics.py
…
slash_access.py
…
slash_commands.py fix(gateway): clear stale base_url on model switches 2026-06-27 21:23:25 -07:00
status.py fix(windows): cover remaining console-flash spawn legs (#54417) 2026-06-28 13:49:08 -07:00
sticker_cache.py
…
stream_consumer.py
…
stream_dispatch.py
…
stream_events.py
…
whatsapp_identity.py fix(whatsapp): resolve LID aliases on modern platforms/ session layout 2026-06-28 02:05:26 -07:00