Skip to content

fix(security): SSRF guard on Meta media download (Batch C) - #7

Merged
sathyaprakash000 merged 1 commit into
mainfrom
fix/ssrf-media-allowlist
May 25, 2026
Merged

fix(security): SSRF guard on Meta media download (Batch C)#7
sathyaprakash000 merged 1 commit into
mainfrom
fix/ssrf-media-allowlist

Conversation

@sathyaprakash000

@sathyaprakash000 sathyaprakash000 commented May 25, 2026

Copy link
Copy Markdown
Contributor

Batch C — SSRF (REVIEW.md P0 #3, lane 07 CRITICAL). downloadMediaBinary fetched the Graph-API-supplied URL with the Bearer token and followed redirects. Now enforces HTTPS + a Meta CDN host allowlist, redirect:'error', and a 100 MB cap. (Broadcast-link scheme check + automation dynamic_api constraint remain as HIGH follow-ups.)

…rects + size cap)

Batch C. downloadMediaBinary fetched the Graph-API-supplied URL with the Bearer
token and followed redirects, enabling SSRF to internal hosts. Now: enforce
https + a Meta CDN host allowlist (fbcdn.net/whatsapp.net/facebook.com), set
redirect:'error', and cap the response at 100 MB.

Audit ref: REVIEW.md P0 #3 (lane 07 CRITICAL).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: KingArthur000 <sathyaprakashelango@gmail.com>
@sathyaprakash000
sathyaprakash000 merged commit 0bfea5f into main May 25, 2026
9 checks passed
@sathyaprakash000
sathyaprakash000 deleted the fix/ssrf-media-allowlist branch May 25, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant