Miggo Logo

CVE-2024-40634: Argo CD Unauthenticated Denial of Service (DoS) Vulnerability via /api/webhook Endpoint

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.75006%
Published
7/22/2024
Updated
8/7/2024
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/argoproj/argo-cdgo>= 1.0.0, <= 1.8.7
github.com/argoproj/argo-cd/v2go< 2.9.202.9.20
github.com/argoproj/argo-cd/v2go>= 2.10.0, < 2.10.152.10.15
github.com/argoproj/argo-cd/v2go>= 2.11.0, < 2.11.62.11.6

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from missing request size validation in the webhook handler. The key vulnerable function is ArgoCDWebhookHandler.Handler which processed requests using r.Body without size constraints. The fix added http.MaxBytesReader to enforce limits. NewHandler was vulnerable because it didn't pass size limit configuration to the handler initially. Both functions are directly referenced in the security patches and commit diffs showing the introduction of maxWebhookPayloadSizeB parameter and MaxBytesReader usage.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Summ*ry T*is r*port **t*ils * s**urity vuln*r**ility in *r*o **, w**r* *n un*ut**nti**t** *tt**k*r **n s*n* * sp**i*lly *r**t** l*r** JSON p*ylo** to t** /*pi/w***ook *n*point, **usin* *x**ssiv* m*mory *llo**tion t**t l***s to s*rvi** *isruption

Reasoning

T** vuln*r**ility st*ms *rom missin* r*qu*st siz* v*li**tion in t** w***ook **n*l*r. T** k*y vuln*r**l* *un*tion is *r*o**W***ook**n*l*r.**n*l*r w*i** pro**ss** r*qu*sts usin* r.*o*y wit*out siz* *onstr*ints. T** *ix ***** *ttp.M*x*yt*sR****r to *n*o