【IOT安全】IDA-NO-MCP审计+fuzz六个SQL注入

admin 2026-08-12 04:35:45 网络安全文章 来源:ZONE.CI 全球网 0 阅读模式

文章总结: 本文详细介绍了对IoT设备进行安全审计的过程,通过SSH进入设备、批量反编译二进制文件、模糊搜索SQL拼接关键字等步骤,成功发现了六个SQL注入漏洞。文章提供了具体的操作命令和思路,展示了从定位目标应用到发现注入点的完整流程,对IoT安全研究人员具有实践参考价值。 综合评分: 85 文章分类: IoT安全,漏洞分析,渗透测试,安全工具


cover_image

【IOT安全】IDA-NO-MCP审计+fuzz六个SQL注入

原创

挖个洞先 挖个洞先

挖个洞先

2026年8月4日 23:28 北京

在小说阅读器读本章

去阅读

 夜深忽梦少年事,梦啼妆泪红阑干。——《琵琶行》 

何意味

01

操作步骤

1、ssh进入设备,定位打开了.db的进程

for&nbsp;p&nbsp;in&nbsp;/proc/[0-9]*;&nbsp;do&nbsp; pid=${p#/proc/}&nbsp; hits=$(ls&nbsp;-l&nbsp;"$p/fd"&nbsp;2>/dev/null | sed -n&nbsp;'s/.*-> //p'&nbsp;| grep&nbsp;'\.db'&nbsp;||&nbsp;true)&nbsp; [ -z&nbsp;"$hits"&nbsp;] &&&nbsp;continue&nbsp; cmd=$(tr&nbsp;'\0'&nbsp;' '&nbsp;<&nbsp;"$p/cmdline"&nbsp;2>/dev/null)&nbsp; exe=$(readlink&nbsp;"$p/exe"&nbsp;2>/dev/null)&nbsp; dbs=$(echo&nbsp;"$hits"&nbsp;| sed&nbsp;'s/-wal$//;s/-shm$//'&nbsp;|&nbsp;sort&nbsp;-u)&nbsp;&nbsp;echo&nbsp;"PID=$pid"&nbsp;&nbsp;echo&nbsp;" &nbsp;CMD=$cmd"&nbsp;&nbsp;echo&nbsp;" &nbsp;EXE=$exe"&nbsp;&nbsp;echo&nbsp;"$dbs"&nbsp;| sed&nbsp;'s/^/ &nbsp;DB /'done

2、cv全部二进制文件到本地,调用ida脚本批量反编译

https://github.com/P4nda0s/IDA-NO-MCP

3、模糊搜索sql拼接关键字定位目标应用列名scene_label_arr

like&nbsp;'%#{}#%'Get-ChildItem&nbsp;-Recurse&nbsp;-Include&nbsp;*.c,strings.txt&nbsp;*_export_for_ai&nbsp;|&nbsp;&nbsp;Select-String&nbsp;-SimpleMatch&nbsp;-Pattern&nbsp;"like '%#{}#%'"

4、查看哪些函数引用scene_label_arr

Select-String&nbsp;-Path decompile\*.c&nbsp;-Pattern&nbsp;'scene_label_arr like'&nbsp;-List

5、跟callers定位handler进入66736C.c,确认注入点path参数

path后续流向getOrderFilterStr → strings.txt双引号拼接where path=”{}”

6、枚举出库名main

7、strings中提取接口继续第二个注入

Select-String&nbsp;-Path&nbsp;strings.txt&nbsp;-Pattern&nbsp;'/xxx/'&nbsp;|&nbsp;ForEach-Object&nbsp;{&nbsp;if&nbsp;($_.Line&nbsp;-match&nbsp;'/xxx/[^ ]+') {&nbsp;$matches[0] } } |&nbsp;Sort-Object&nbsp;-Unique

8、接口拼接驼峰法fuzz到handler

/v1/site/map/downloadSiteAlbumMapDownloadSelect-String -Path function_index.txt -Pattern&nbsp;'SiteAlbumMapDownload'

9、用户可控字段name字符串数组型参数存在注入点

10、构造数据包,注入出库名

11、依此类推挖了六个SQL注入


免责声明:

本文所载程序、技术方法仅面向合法合规的安全研究与教学场景,旨在提升网络安全防护能力,具有明确的技术研究属性。

任何单位或个人未经授权,将本文内容用于攻击、破坏等非法用途的,由此引发的全部法律责任、民事赔偿及连带责任,均由行为人独立承担,本站不承担任何连带责任。

本站内容均为技术交流与知识分享目的发布,若存在版权侵权或其他异议,请通过邮件联系处理,具体联系方式可点击页面上方的联系我

本文转载自:挖个洞先 挖个洞先 挖个洞先《【IOT安全】IDA-NO-MCP审计+fuzz六个SQL注入》

评论:0   参与:  0