holes in retrivewap

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

    holes in retrivewap

    well here are the place u can post all the holes u find in retrivewap so the ppl who use it can fix it

    1. In the profile share plusses got a hole add this in genproc

    here are my plusses code in genproc

    genproc.php?action=plusses
    Code:
    //////////////////////////////////////////////////////////////////////Give credits
    else if($action=="plusses")
    {
        addonline(getuid_sid($sid),"Sharing Credits","");
    
    $theme = mysql_fetch_array(mysql_query("SELECT theme2 FROM ibwf_users WHERE id='".$uid."'"));
     echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"style/$theme[0]\">";
      echo "<p align=\"center\">";
      //$uid = getuid_sid($sid);
    $who=get_var(who);
    
     // $who = htmlspecialchars($_GET["who"], ENT_QUOTES);
    $ptg = htmlspecialchars($_POST["ptg"], ENT_QUOTES);
    $uid = htmlspecialchars($uid, ENT_QUOTES);
    $sid = htmlspecialchars($sid, ENT_QUOTES);
    $var = abs(intval($var));
      if($ptg<=0)
    {
       echo "WTF u trying to do hmmm<br/>";
     }else{
    $gpsf = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
      $gpst = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
      if($gpsf[0]>=$ptg){
    
        $gpsf = $gpsf[0]-$ptg;
        $gpst = $gpst[0]+$ptg;
        $res = mysql_query("UPDATE ibwf_users SET plusses='".$gpst."' WHERE id='".$who."'");
      if($res)
            {
              $ad = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
              $res = mysql_query("UPDATE ibwf_users SET plusses='".$gpsf."' WHERE id='".$uid."'");
                echo "<img src=\"images/ok.gif\" alt=\"o\"/>Credits Updated Successfully<br/>";
    
    $var = abs(intval($var));$wintext = "".getnick_uid($uid)." Shared  $ptg Credits With u..Now U hv $gpst  credits![br/][i] p.s. note: This is an automatic pm from $stitle service centre[/i]";
    $res = mysql_query("INSERT INTO ibwf_private SET text='".$wintext."', byuid='".$uid."', touid='".$who."', timesent='".time()."'");
            }else{
              echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!<br/>";
            }
          }else{
              echo "<img src=\"images/notok.gif\" alt=\"x\"/>You don't have enough Credits to give<br/>";
            }
    }
            echo "<br/>";
                    $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'"));
        $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'"));
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
      echo "</p>";
      echo xhtmlfoot();
     exit();
        }
    2. in the challnge war.php there are a hole where ppl can win a battle without even playing against u.

    3. ontop of all pages remove the following code its useless it will allow ppl to inject ur site they say it protect ur site but after i removed it the sql inject code didnt work at all
    Code:
    //protect against sql injections and remove $ sign
    if( !get_magic_quotes_gpc() )
    {
        if( is_array($_GET) )
        {
            while( list($k, $v) = each($_GET) )
            {
                if( is_array($_GET[$k]) )
                {
                    while( list($k2, $v2) = each($_GET[$k]) )
                    {
                        $_GET[$k][$k2] = addslashes($v2);
                    }
                    @reset($_GET[$k]);
                }
                else
                {
                    $_GET[$k] = addslashes($v);
                }
            }
            @reset($_GET);
        }
    
        if( is_array($_POST) )
        {
            while( list($k, $v) = each($_POST) )
            {
                if( is_array($_POST[$k]) )
                {
                    while( list($k2, $v2) = each($_POST[$k]) )
                    {
                        $_POST[$k][$k2] = addslashes($v2);
                    }
                    @reset($_POST[$k]);
                }
                else
                {
                    $_POST[$k] = addslashes($v);
                }
            }
            @reset($_POST);
        }
    }
    or there a hole in the above code or im just crazy

    4. in the index there are a code where owners can send pm to club members just a way for hackers to advertise their site so remove it or keep it ur choise.

    if there are other holes u know of do post them here
    Last edited by riderz; 14.07.10, 16:32.
    ________________
    Jacques
    jacques@gw-designs.co.za
    http://coding.biz.tm
    Come join and lets make it a place to learn all the noobies how to code
    __________________

    NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

    #2
    riderz, banks credit doesnt updated automatically. Can you please to post the code to update it automatically?

    Comment


      #3
      Dating PHP hv hole

      Comment


        #4
        what hole is in there
        ________________
        Jacques
        jacques@gw-designs.co.za
        http://coding.biz.tm
        Come join and lets make it a place to learn all the noobies how to code
        __________________

        NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

        Comment


          #5
          mmmm yep......that club pm hole and bank hole.....main hole is perm changing..donno how where the bakdoor is


          I'm Proud to be a Sri Lankan!

          Comment


            #6
            do not update it automaically... do it manually


            ....................................
            http://photomag.lk/
            ....................................

            Comment


              #7
              in the genproc.php has error.. just change the $who=get_var(who); to this.. $who = $_GET["who"]; so it will be fixed .. hope it can help..

              Originally posted by riderz View Post
              well here are the place u can post all the holes u find in retrivewap so the ppl who use it can fix it

              1. In the profile share plusses got a hole add this in genproc

              here are my plusses code in genproc

              genproc.php?action=plusses
              Code:
              //////////////////////////////////////////////////////////////////////Give credits
              else if($action=="plusses")
              {
                  addonline(getuid_sid($sid),"Sharing Credits","");
              
              $theme = mysql_fetch_array(mysql_query("SELECT theme2 FROM ibwf_users WHERE id='".$uid."'"));
               echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"style/$theme[0]\">";
                echo "<p align=\"center\">";
                //$uid = getuid_sid($sid);
              $who=get_var(who);
              
               // $who = htmlspecialchars($_GET["who"], ENT_QUOTES);
              $ptg = htmlspecialchars($_POST["ptg"], ENT_QUOTES);
              $uid = htmlspecialchars($uid, ENT_QUOTES);
              $sid = htmlspecialchars($sid, ENT_QUOTES);
              $var = abs(intval($var));
                if($ptg<=0)
              {
                 echo "WTF u trying to do hmmm<br/>";
               }else{
              $gpsf = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
                $gpst = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
                if($gpsf[0]>=$ptg){
              
                  $gpsf = $gpsf[0]-$ptg;
                  $gpst = $gpst[0]+$ptg;
                  $res = mysql_query("UPDATE ibwf_users SET plusses='".$gpst."' WHERE id='".$who."'");
                if($res)
                      {
                        $ad = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
                        $res = mysql_query("UPDATE ibwf_users SET plusses='".$gpsf."' WHERE id='".$uid."'");
                          echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"o\"/>Credits Updated Successfully<br/>";
              
              $var = abs(intval($var));$wintext = "".getnick_uid($uid)." Shared  $ptg Credits With u..Now U hv $gpst  credits![br/][i] p.s. note: This is an automatic pm from $stitle service centre[/i]";
              $res = mysql_query("INSERT INTO ibwf_private SET text='".$wintext."', byuid='".$uid."', touid='".$who."', timesent='".time()."'");
                      }else{
                        echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/>Database Error!<br/>";
                      }
                    }else{
                        echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/>You don't have enough Credits to give<br/>";
                      }
              }
                      echo "<br/>";
                              $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'"));
                  $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'"));
                  echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>";
              echo "Home</a>";
                echo "</p>";
                echo xhtmlfoot();
               exit();
                  }
              2. in the challnge war.php there are a hole where ppl can win a battle without even playing against u.

              3. ontop of all pages remove the following code its useless it will allow ppl to inject ur site they say it protect ur site but after i removed it the sql inject code didnt work at all
              Code:
              //protect against sql injections and remove $ sign
              if( !get_magic_quotes_gpc() )
              {
                  if( is_array($_GET) )
                  {
                      while( list($k, $v) = each($_GET) )
                      {
                          if( is_array($_GET[$k]) )
                          {
                              while( list($k2, $v2) = each($_GET[$k]) )
                              {
                                  $_GET[$k][$k2] = addslashes($v2);
                              }
                              @reset($_GET[$k]);
                          }
                          else
                          {
                              $_GET[$k] = addslashes($v);
                          }
                      }
                      @reset($_GET);
                  }
              
                  if( is_array($_POST) )
                  {
                      while( list($k, $v) = each($_POST) )
                      {
                          if( is_array($_POST[$k]) )
                          {
                              while( list($k2, $v2) = each($_POST[$k]) )
                              {
                                  $_POST[$k][$k2] = addslashes($v2);
                              }
                              @reset($_POST[$k]);
                          }
                          else
                          {
                              $_POST[$k] = addslashes($v);
                          }
                      }
                      @reset($_POST);
                  }
              }
              or there a hole in the above code or im just crazy

              4. in the index there are a code where owners can send pm to club members just a way for hackers to advertise their site so remove it or keep it ur choise.

              if there are other holes u know of do post them here

              Comment

              Working...
              X