• <b id="l3qpx"><abbr id="l3qpx"></abbr></b>
  • <th id="l3qpx"><progress id="l3qpx"></progress></th>
      <th id="l3qpx"></th>
      <dd id="l3qpx"><font id="l3qpx"></font></dd>
      <th id="l3qpx"></th>
      0712-2888027 189-8648-0214
      微信公眾號

      孝感風信網絡科技有限公司微信公眾號

      當前位置:主頁 > 技術支持 > PHPCMS > PHPCMS V9 /phpcms/modules/member/index.php phpcms注入漏洞修復補丁

      PHPCMS V9 /phpcms/modules/member/index.php phpcms注入漏洞修復補丁

      時間:2016-05-10來源:風信官網 點擊: 1190次
      漏洞名稱:phpcms注入漏洞

      文件路徑:/phpcms/modules/member/index.php

      修復方法來源于網絡,由風信網整理提供。

      源代碼大概615行:

      if(empty($_SESSION['connectid'])) {
      //判斷驗證碼
      $code = isset($_POST['code']) && trim($_POST['code']) ? trim($_POST['code']) : showmessage(L('input_code'), HTTP_REFERER);
      if ($_SESSION['code'] != strtolower($code)) {
          $_SESSION['code'] = '';
          showmessage(L('code_error'), HTTP_REFERER);
      }
      $_SESSION['code'] = '';
      }

      $username = isset($_POST['username']) && is_username($_POST['username']) ? trim($_POST['username']) : showmessage(L('username_empty'), HTTP_REFERER);
      $password = isset($_POST['password']) && trim($_POST['password']) ? trim($_POST['password']) : showmessage(L('password_empty'), HTTP_REFERER);

      針對phpsso模塊添加過濾代碼,最好的方式應該是將轉義和過濾放在數(shù)據庫操作的前一步,這樣可以極有效緩解SQL注入帶來的問題

      修改代碼:

      $password = isset($_POST['password']) && trim($_POST['password']) ? trim($_POST['password']) : showmessage(L('password_empty'), HTTP_REFERER);

      改為:

      $password = isset($_POST[‘password‘]) && trim($_POST[‘password‘]) ? addslashes(urldecode(trim($_POST[‘password‘]))) : showmessage(L(‘password_empty‘), HTTP_REFERER);
      熱門關鍵詞: PHPCMS modules member index.ph
      欄目列表
      推薦內容
      熱點內容
      展開
      欧美一区二区三区免费A级视频,亚洲精品中文字幕综合,动漫精品中文字幕无码第一页,1024亚洲国产综合 亚太影院 柯西贝尔-游戏赚网
    1. <b id="l3qpx"><abbr id="l3qpx"></abbr></b>
    2. <th id="l3qpx"><progress id="l3qpx"></progress></th>
        <th id="l3qpx"></th>
        <dd id="l3qpx"><font id="l3qpx"></font></dd>
        <th id="l3qpx"></th>