A coworker once set up a bash-based shell wrapper to provide customers with restricted access to the monitoring system. The monitoring system was written as CGI programs in C, and the shell script was there to sanitize input arguments, and that the hosts&#x2F;tests being viewed matched the customers regex pattern (say, &quot;.*\.customer\.tld&quot;).<p>The next day, I showed him how I could break out of that protection by sending a request with a parameter like &quot;host=x.customerb.tld\0.customera.tld&quot; (with a NULL byte in between).<p>We did a few more rounds of whack-a-mole until I finally managed to convince him this was a fundamentally bad idea.