Bug Bounty — Pwning Payment Gateways: Unauthenticated Non-Blind
An unauthenticated Apple Pay merchant validation endpoint accepted a caller-supplied URL and made a server-side POST request to it without host allowlisting. Because the upstream response was relayed back to the caller, an attacker could read responses from arbitrary external or internal services.
Published on medium.com
Hello, hackers! In this writeup, I am thrilled to share a recent high-impact finding: an unauthenticated, non-blind Server-Side Request Forgery (SSRF) vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The backend trusted a client-supplied URL for a server-side request and did not restrict it to Apple-owned hosts, schemes, or addresses.
Impact
An attacker could potentially reach cloud metadata for credentials, scan internal networks, and read internal responses, though the author limited testing to an external server.
What the attacker needed
No authentication needed; attacker-controlled external server; network egress from backend
The fix
The endpoint should require authentication and enforce a strict allowlist of Apple-owned HTTPS hosts, rejecting raw IPs and blocking egress to internal ranges.
How it was found
- Set up an external listener to capture the outbound request and return a spoofed JSON response.
- Send an unauthenticated POST to the ApplePaySession endpoint with the listener URL in the request body.
- Observe the target backend making a POST request to the listener with internal headers and merchant metadata.
- Receive the spoofed JSON relayed back in the API response, confirming non-blind SSRF.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Server-Side Request Forgery (SSRF) happens when a server is tricked into fetching a URL chosen by the user. Here, the payment endpoint was meant to talk only to Apple, but it would talk to any address the caller gave it. Since it also passed the reply back, the attacker could see what the server saw.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.