Jump to content
php.lv forumi

SMS veikals


Ernijs_E

Recommended Posts

Maigi izsakoties ļoti bēdīgas kvalitātes skripts. Neskatoties uz netpoint.changelog.txt minēto

1.0.1:
- [fix] sql inject fix

 

SQL injekcija kodā tomēr rēgojas.

 

..
}elseif(isset($_GET['gief'])){
   $id = $_GET['gief'];
   $query = mysql_query("SELECT * FROM shop_links WHERE id = '$id'") or die (mysql_error());
..

 

Tāpat arī ģeniālais piegājiens check_result f-jā:

$prices = array ('15','25','35','50','60','75','95','150','200','250','300');

function check_result($code) {
   global $prices, $ntp_user_id;
   foreach($prices as $i => $key){
       $answer = file_get_contents("http://sms.techpoint.lv/confirm.php?code=$code&id=$ntp_user_id&price=$key", FALSE, NULL, 0, 140);
       if ($answer == 'key_ok') {
           return $key;
       }
   }
}

 

Tas nozīmē, ka pie rezultāta pārbaudes notiek maksimums 11 (!!!!) HTTP requesti vienas lapas ielādes laikā. Pilnīgs vājprāts!

 

Attiecīgi stipri apšaubu vēlmi šo topiku pinot.

Link to comment
Share on other sites

es te nesen papeetiiju kaadi sms sniedzeeji lv vispaar ir (ir pat diezgan liela izvēle).. daudzi itkā ir apmierināti ar to techpoint bet es paskatiijos vinju paraugus un nospriedu ka šitik "gudri" tie ir vnk jāmāk sataisīt..

 

ja runaa par injekcijām tās ir bez maz vai uz katra soļa..

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...