V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
gouchaoer
V2EX  ›  PHP

花钱买了个 SuiteCRM 的插件,教科书般的 sql 注入

  •  
  •   gouchaoer · 2020-06-10 15:53:16 +08:00 · 1472 次点击
    这是一个创建于 1387 天前的主题,其中的信息可能已经有所发展或是发生改变。

    最近折腾开源 CRM,需要找个 portal,就买了这个: https://store.suitecrm.com/addons/customer-support-portal-for-suitecrm

    一装上之后用 git 检查新增了哪些文件,结果发现:

    in the "in.php" file:
    
    $item_ab = $_POST["ab"];
    $sq1w = "select (contacts.id)as idd,(contacts.first_name)as fa,(contacts.last_name) as la  from contacts_cases,contacts,cases where contacts.id=contact_id and cases.id=case_id and cases.id='".$item_ab ."'";
    
    

    类似的 sql 注入到处都是

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1713 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 16:42 · PVG 00:42 · LAX 09:42 · JFK 12:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.