<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Common Gateway Interface - Page 20 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Common_Gateway_Interface&amp;p=19">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Common_Gateway_Interface&amp;p=21">3.Next</a>
</p>
<p>of other scripts at the time, this script made use of a function: <code>escape_shell_cmd()</code>. The function was supposed to sanitize its argument, which came from user input and then pass the input to the Unix shell, to be run in the security context of the Web server. The script did not correctly sanitize all input and allowed new lines to be passed to the shell, which effectively allowed multiple commands to be run. The results of these commands were then displayed on the Web server. If the security context of the Web server allowed it,</p><p>
<a accesskey="1" href="page.php?w=Common_Gateway_Interface&amp;p=19">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Common_Gateway_Interface&amp;p=21">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
