Is there any way to disable malicious input from shelling out and running in a server?
For example, When receiving templated ERB input from a user like in the code snippet below.
Note that this is a simple proof of concept so that it can be copied on a terminal within irb
but the malicious input could be any arbitrary bash commands.
require "erb"
malicious_input_from_user = '<%= `ls` %>'
template = ERB.new(malicious_input_from_user)
template.result