OSV 1.4.0 · github-reviewed · 修改于 2026-08-25 23:02
发布时间
2026-08-25 23:02
GitHub 审查时间
2026-08-25 23:02
NVD 发布时间
—
源文件
advisories/github-reviewed/2026/08/GHSA-hmfx-4v44-9qw9/GHSA-hmfx-4v44-9qw9.json
The webhook_url field in the Jobs API silently passes validation when DNS resolution fails (socket.gaierror), enabling DNS rebinding attacks. An attacker's domain can initially resolve to a public IP (passing validation) then switch to an internal IP before the server makes the HTTP request.
The validator catches socket.gaierror and silently allows the URL:
# src/praisonai/praisonai/jobs/models.py:55
try:
ip = socket.gethostbyname(hostname)
ip_obj = ipaddress.ip_address(ip)
if ip_obj.is_private or ip_obj.is_loopback:
raise ValueError("private address")
except socket.gaierror:
pass # BUG: DNS failure silently ignored → SSRF bypass
The HTTP call is made later with no re-validation:
# src/praisonai/praisonai/jobs/executor.py:402
async with httpx.AsyncClient() as client:
await client.post(job.webhook_url, ...) # no second IP check
DNS rebinding flow:
attacker.com with TTL=1s → resolves to 1.2.3.4 (public IP)webhook_url=http://attacker.com/callbackattacker.com → 127.0.0.1127.0.0.1 → internal SSRFUnresolvable domain bypass (no DNS rebinding required):
curl -X POST http://:8005/api/v1/runs \
-d '{"prompt":"run","webhook_url":"http://unresolvable.internal/cb","agent_yaml":"..."}'
# Validation: gaierror → pass → URL accepted
SSRF to internal HTTP services: admin panels, databases, and cloud metadata APIs (e.g., http://169.254.169.254/). Exploitable without authentication.