Skip to main content

SRF in /api/proxy-image — backend fetches arbitrary user-controlled URLs with no host validation

The image block feature in profile customization stores a user supplied URL and renders it through /api/proxy-image?url=.... On render, the flackle backend (Flacklebot/1.0) fetches that URL server-side. The application performs scheme validation (http/https only) but no host validation, any URL not blocked by the edge WAF is fetched by the backend, including loopback, RFC1918, and link-local addresses.


An authenticated user can cause flackle’s backend to issue arbitrary outbound HTTP(S) requests from its own network position. Depending on backend network topology, this allows:

  • Probing internal services reachable from the egress host (any port, any internal IP)

  • Reaching cloud metadata endpoints via WAF-bypass techniques (DNS rebinding, HTTP redirect chains, alternate IP encodings such as decimal/octal/IPv6-mapped forms, or DNS names that resolve to private IPs)

  • Pivoting through internal admin interfaces that trust source IP

  • Port scanning the backend’s internal network (503/502/timing differences distinguish open vs. closed ports)

Proof of concept

  1. Save an image block via PUT /api/users/blocks with a URL pointing to an external listener the reporter controls:

    {"blocks":[{"id":"<block-uuid>","type":"image","order":0,"url":"https://<attacker-listener>/path"}]}
  2. Load the profile page.

  3. The external listener records an incoming GET from flackle infrastructure:

    • Source: datacenter IPv6, Leesburg VA region

    • User-Agent: Flacklebot/1.0 (+https://flackle.com)

    • Accept: image/jpeg,image/png,image/gif,image/webp,image/avif,image/x-icon,image/vnd.microsoft.icon

Discovered through normal use of the image block feature. Each probed address received only one proof of concept request. No attempt was made to extract data from internal services beyond observing connection behavior. Happy to re-send full details (listener logs, timestamps for log correlation, screenshots) via a private channel if one is available if not, I can share here on request.

Status: Rejected

Log in to comment and vote

No comments yet

Be the first to share your thoughts.