id: CVE-2022-23944

info:
  name: Apache ShenYu Admin Unauth Access
  author: cckuakilong
  severity: critical
  description: Apache ShenYu suffers from an unauthorized access vulnerability where a user can access /plugin api without authentication. This issue affected Apache ShenYu 2.4.0 and 2.4.1.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to sensitive information and potential compromise of the Apache ShenYu admin panel.
  remediation: Upgrade to Apache ShenYu (incubating) 2.4.2 or apply the appropriate patch.
  reference:
    - https://github.com/apache/incubator-shenyu/pull/2462
    - https://nvd.nist.gov/vuln/detail/CVE-2022-23944
    - https://github.com/cckuailong/reapoc/blob/main/2022/CVE-2022-23944/vultarget/README.md
    - https://lists.apache.org/thread/dbrjnnlrf80dr0f92k5r2ysfvf1kr67y
    - http://www.openwall.com/lists/oss-security/2022/01/25/15
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
    cvss-score: 9.1
    cve-id: CVE-2022-23944
    cwe-id: CWE-306,CWE-862
    epss-score: 0.79007
    epss-percentile: 0.99546
    cpe: cpe:2.3:a:apache:shenyu:2.4.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: apache
    product: shenyu
  tags: cve,cve2022,shenyu,unauth,apache,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/plugin"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"message":"query success"'
          - '"code":200'
        condition: and

      - type: status
        status:
          - 200
# digest: 490a0046304402200130d76337cec112546d295e6824786fdae46ccbe1effbc5b359f4e5c13de5660220468f2f6fefa8ff0df34a66ad92ccdc7b51584c718bb4461b23f107408b54e153:922c64590222798bb761d5b6d8e72950