gouchaoer
V2EX  ›  PHP

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

  •  
  •   gouchaoer · Jun 10, 2020 · 2140 views
    This topic created in 2179 days ago, the information mentioned may be changed or developed.

    最近折腾开源 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 注入到处都是

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1046 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 23:09 · PVG 07:09 · LAX 16:09 · JFK 19:09
    ♥ Do have faith in what you're doing.