BIWEB bug and repair

Source: Internet
Author: User

 

Biweb php open-source enterprise website building system (bug correction version ),

BIWEB portal PHP open source website building system,

BIWEB mall system PHP open source site building system.

 

1. Inclusion of kill

 

/Wap/detail. php, X, X...

$ ObjWebInit = new wap (); if (empty ($ _ GET ['page']) {

$ IntPage = 1;

} Else {

$ IntPage = intval ($ _ GET ['page']);

}

 

If (empty ($ _ GET ['cpage']) {

$ IntCPage = 1;

} Else {

$ IntCPage = intval ($ _ GET ['cpage']);

}

 

If (! Empty ($ _ GET ['mod']) {

$ StrModuleID = strval ($ _ GET ['mod']);

Include_once ('../'. $ strModuleID. '/config/var. inc. php ');

$ ObjWebInit-> setDBG ($ arrGPdoDB );

$ ObjWebInit-> db ();

 

Exp:

Http://www.bkjia.com/biwebcorp/wap/list. php? Mod = uploadfile/201112/20111218025615648 .jpg% 00

 

 

2.

PHP open-source enterprise website construction system (bug correction version) XSS

Message \ include \ index. inc. php

If ($ _ SERVER ["REQUEST_METHOD"] = "POST "){

 

If (empty ($ _ POST ['Contact ']) check: AlertExit ('Sorry, name is required! ',-1 );

If (empty ($ _ POST ['tel ']) check: AlertExit ('Sorry, the contact number is required! ',-1 );

.......

$ StrIP = check: getip ();

$ _ POST ['user _ ip'] = $ strIP;

$ ObjWebInit-> saveInfo ($ _ POST, 0); saveInfo function

Function saveInfo ($ arrData, $ intModify = 0 ){

$ Arr = array ();

$ Arr = check: SqlInjection ($ this-> saveTableFieldG ($ arrData ));

.......

 

} SqlInjection function

Static function SqlInjection ($ ParamValue, $ enforce = false ){

If (! Get_magic_quotes_gpc () | $ enforce ){

If (is_array ($ ParamValue )){

Foreach ($ ParamValue as $ key => $ value ){

$ ParamValue [$ key] = addslashes ($ value );

}

} Else {

$ ParamValue = addslashes ($ ParamValue );

}

}

Return $ ParamValue;

} Portal website PHP open-source website building system xss a big mess ..

 

 

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.