Menu

PHP security

2002-08-19
2002-08-19
  • Raymond Bosman

    Raymond Bosman - 2002-08-19

    Arbritary commands can be injected and executed in PHP

     
    • Raymond Bosman

      Raymond Bosman - 2002-08-19

      <PRE>
      This is a reaction from the documentation:
      Arbritary Command Injection/Execution :: ALL VERSIONS

      Probably another solution to prevent unauthorised access (by using variables from the global stack) are functions and classes. Each variable in a function is default local.

      For example:

      authorise ();

      function authorise ()
      {
        // read $auth from database, cookie.
        if ($auth == yes)
        {
          runsql();
          header("Location:confirm.htm");
        }
      }

      </PRE>

       

Log in to post a comment.

MongoDB Logo MongoDB