Bugs in lavalair

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    it was a joke as sweetangel post was soooooo off topic lol

    Comment


      #17
      why should turn register_globals off?
      Last edited by nazmul; 12.12.11, 09:29. Reason: icon

      Comment


        #18
        If you use globals off and you don't have already declared the variables in the script, it can be changed via browser like:

        <?php

        if ($isAuth)
        // blah blah

        ?>
        On browser the "hacker" can put : file.php?isAuth=1

        And the code debugging will be more harder...

        <?php

        $user = isset($_GET['user']) ? (int) $_GET['user'] : 0;
        echo $user;
        ?>
        vs
        <?php
        echo $user;
        ?>
        <?php unlink('World/Europe/Romania.country'); ?>

        Comment


          #19
          i0nutzxp@ yeah.. bt when i declared my $user variable like $_GET['user'], no ques abt that and it safe enough.

          Comment


            #20
            Originally posted by nazmul View Post
            i0nutzxp@ yeah.. bt when i declared my $user variable like $_GET['user'], no ques abt that and it safe enough.
            Well, he's just trying to explain to you what you asked and you replied with some nonsense. So, there remains nothing else to you than Google that and see yourself how terribly wrong you are.
            <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

            Comment


              #21
              Originally posted by CreativityKills View Post
              Turn register globals off and
              PHP Code:
              $who = (int) $_GET['who']; 
              Thats right.. that mean if some change $who=string things, it will return to integer only.... there will nothing happen when some try to add + or any command on that.. =)
              our lfe is simple words....
              http://mygenkz.net
              ewanz06@yahoo.com
              PHP Code:
              $output="i am NOoob....";
              $newfile="ewanz.txt";
              $file fopen ($newfile"w");
              fwrite($file$output);
              fclose ($file); 

              Comment

              Working...
              X