Chaining Origin IP Leak to Blind SSRF
The WordPress XML-RPC pingback endpoint was reachable on the server's origin IP, which bypassed Cloudflare and Wordfence. An attacker could make the server send outbound requests to arbitrary hosts, enabling blind SSRF for internal reconnaissance and potential cloud metadata access.
medium.com
Published on medium.com
Many developers believe that putting a site behind Cloudflare is enough to secure it. However, if your origin IP is exposed, your security posture can crumble quickly.
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
Likely the origin server was directly reachable and the legacy XML-RPC pingback method was enabled, so requests bypassed the CDN/WAF and the server performed outbound fetches on the attacker's behalf.
Impact
The server could be used for internal reconnaissance and, if migrated to cloud, to reach metadata endpoints and steal temporary credentials; the WAF did not block the request because traffic hit the origin IP directly.
What the attacker needed
Origin IP is directly reachable; xmlrpc.php is enabled; pingback.ping is accepted
The fix
Disable xmlrpc.php or block the pingback.ping method, and restrict the origin IP to accept traffic only from Cloudflare's IP ranges at the firewall.
How it was found
- Find the origin IP address of the Cloudflare-protected site.
- Send a POST request with a pingback.ping method call to xmlrpc.php on the origin IP.
- Observe a faultCode of 0 in the response.
- Confirm an out-of-band DNS callback on an interactsh listener.
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.
A server-side request forgery (SSRF) is when a website is tricked into making a request to another computer on the attacker's behalf. Here, a built-in WordPress feature that checks links was left on, and because the server's real address was exposed, the attacker could ask it to contact any address they chose. The attacker could not see the replies, but they could still use the server to probe internal systems.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.