Miggo Logo

CVE-2020-36562: shiyanhui/dht vulnerable to Uncontrolled Resource Consumption

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.41057%
Published
12/28/2022
Updated
2/3/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/shiyanhui/dhtgo<= 0.0.0-20201219151056-5a20f3199263

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The GitHub issue #57 explicitly identifies the handleRequest function in krpc.go as containing multiple unchecked type assertions that can cause panics. The vulnerability manifests when processing malicious bencoded messages with unexpected data types in key fields (like 't' or 'id'), which triggers runtime panics due to failed type assertions without proper error handling. This matches the CWE-617 (Reachable Assertion) description and the advisory's explanation of uncontrolled resource consumption through denial of service.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

*u* to un****k** typ* *ss*rtions, m*li*iously *r**t** m*ss***s **n **us* p*ni*s, w*i** m*y ** us** *s * **ni*l o* s*rvi** v**tor.

Reasoning

T** *it*u* issu* #** *xpli*itly i**nti*i*s t** `**n*l*R*qu*st` *un*tion in `krp*.*o` *s *ont*inin* multipl* un****k** typ* *ss*rtions t**t **n **us* p*ni*s. T** vuln*r**ility m*ni**sts w**n pro**ssin* m*li*ious **n*o*** m*ss***s wit* un*xp**t** **t*