On some sites such as WriteCodeOnline, sprintf
, vsprintf
and other related formatted string functions are disabled for security reasons:
Warning: vsprintf() has been disabled for security reasons on line 1
I'm wondering what these security reasons are. I've already read the Wikipedia article on Uncontrolled format string but it only addresses the aspects of using printf
in C.
What are the security issues of executing *printf
on PHP? Obviously the function isn't meant for preventing SQL injections, but that's a matter of using the correct tool for the job.
echo
if the input is untrusted