您的位置 首页 php

PHPCMS漏洞之v9宽字节注入问题

PHPCMS漏洞之v9宽字节注入问题

关于阿里云提示“phpcmsv9宽字节注入问题”的漏洞修复方案

PHPCMS漏洞之v9宽字节注入问题

简介:

漏洞名称:phpcmsv9宽字节注入问题

漏洞描述:phpcmsv9.5.9以后版本开始默认使用mysqli支持,在phpcms/modules/pay/respond.php中,因为代码逻辑不够严谨,

导致宽字节注入。【注意:该补丁为云盾自研代码修复方案,云盾会根据您当前代码是否符合云盾自研的修复模式进行检测,

如果您自行采取了底层/框架统一修复、或者使用了其他的修复方案,可能会导致您虽然已经修复了该漏洞,云盾依然报告存在

漏洞,遇到该情况可选择忽略该漏洞提示】

阿里云漏洞提示。

解决办法:

1、打开www/phpcms/modules/pay/respond.php,代码第14行左右;

2、找到respond_get()替换成下面的代码,代码如下:

PHPCMS漏洞之v9宽字节注入问题

publicfunctionrespond_get(){

if($_GET['code']){

$code=mysql_real_escape_string($_GET['code']);//注意修改

$payment=$this->get_by_code($code);//注意修改

if(!$payment)showmessage(L('payment_failed'));

$cfg=unserialize_ config ($payment['config']);

$pay_name=ucwords($payment['pay_code']);

pc_base::load_app_class('pay_factory','',0);

$payment_handler=newpay_factory($pay_name,$cfg);

$return_data=$payment_handler->receive();

if($return_data){

if($return_data['order_status']==0){

$this->update_member_amount_by_sn($return_data['order_id']);

}

$this->update_recode_status_by_sn($return_data['order_id'],$return_data['order_status']);

showmessage(L('pay_success'),APP_PATH.'index.php?m=pay&c= deposit ');

}else{

showmessage(L('pay_failed'),APP_PATH.'index.php?m=pay&c=deposit');

}

}else{

showmessage(L('pay_success'));

}

} 

添加后的代码,截图示例如下:

PHPCMS漏洞之v9宽字节注入问题

3、然后,将修改好的文件,上传到服务器对应文件位置,直接覆盖;

4、最后,登录阿里云后台,点击验证(截图如下),即可完成漏洞修复。

以上就是关于“phpcmsv9宽字节注入问题”漏洞修复的全部内容。

文章来源:智云一二三科技

文章标题:PHPCMS漏洞之v9宽字节注入问题

文章地址:https://www.zhihuclub.com/78654.shtml

关于作者: 智云科技

热门文章

评论已关闭

28条评论

  1. of Dbol per day also requires the consumption of a lot of water approximately six liters per day

  2. Several other triggers are known to elicit MC degranulation, including emotions, stress, alcohol, heat and physical stimuli such as friction or pressure

  3. diltiazem will increase the level or effect of doxorubicin liposomal by affecting hepatic intestinal enzyme CYP3A4 metabolism 5 cells ER negative and even those that are ubiquitous have been found to be expressed in different levels within these cells

  4. Altered effector functions of tumor associated CD4 T cells is essential for B Raf inhibitor mediated restoration of antitumor immunity

  5. Additionally, we also evaluated the effects of BSHXF on Mmp13 mRNA and protein expression in chondrogenic ATDC5 cells through real time PCR and Western blot respectively pentobarbital and doxepin both increase sedation

  6. Toft SГёrensen, and the Program for Clinical Research Infrastructure established by the Lundbeck and the Novo Nordisk Foundations awarded to H

  7. Consult the labeling of all concurrently used drugs to obtain further information about interactions with oral contraceptives or the potential for enzyme alterations

  8. viagra naproxen sodium and alcohol Demand for flash memory storage products have surged with the popularity of smartphones and tablets as they are typically much faster than traditional hard disk drives

  9. Clemente rYhxBBHYGELjwnlQr 6 4 2022 When tested under standard susceptibility testing conditions, the very same strain was highly sensitive to rifampin and azithromycin

  10. Randomized patients received daily oral administration of 4 Histopathologic analysis and IHC stains

  11. In this study, we showed that MYC driven, androgen independent proliferation of prostate cancer cells requires OGT If it were me, I wouldn t do another round, but neither my ob or re has ever suggested that so I m no sure

  12. 4 when it is between 10 and 20 million In the breast tissue, tamoxifen principally acts as a competitive antagonist of estrogen receptors

  13. Metformin is an oral anti- hyperglycemic drug that acts as an insulin sensitizer in the treatment of diabetes mellitus type 2

网站地图