Server-Side Request Forgery (SSRF), is a vulnerability that allows an attacker to induce the server-side of the application to make requests to arbitrary locations, leading to unauthorized access to internal services or files within the application or even external functions of other services.
Examples of this vulnerability are:
  • /media.php?query=../../v1/settings
  • ?link=
  • stockApi=http://localhost/admin
However, this vulnerability is not limited to HTTP protocol, you can perform requests to different protocols such as file://, phar://, gopher://, data://, dict://, etc.
Finally, this vulnerability is hard to find in the wild and requires manual analysis to find a valid input. So there is no special trick to finding them.

Filter bypass

Commonly, most applications with SSRF behaviour are built with defences trying to prevent malicious exploitation. In order to bypass these defences, there are several approaches.

Black List bypass

Some applications might block input containing hostnames like or localhost, which can be circumvented using the following techniques:
  • Alternative representation of 2130706433, 017700000001, 127.1
  • Registering a domain/subdomain that resolves into
  • Obfuscate the blocked string using URL encoding or case variation.

White List bypass

In this case, the application only allows input that contains, begins or ends with a certain string. In this case, you can circumvent the filter with the following techniques:
  • URL encoding.
  • Combinations of all of the above.


Last modified 10mo ago