Miggo Logo

CVE-2022-41925: Tailscale daemon is vulnerable to information disclosure via CSRF

3.8

CVSS Score
3.0

Basic Information

EPSS Score
0.71518%
Published
11/21/2022
Updated
1/27/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.0/AV:A/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
tailscale.com/cmdgo< 1.32.31.32.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from the peer API's lack of Host header validation (DNS rebinding) and insufficient CSRF protections. The handlePeerAPIRequest() function would be responsible for routing requests to vulnerable endpoints like /v0/env, while serveEnvVarEndpoint directly exposes sensitive environment variables. The researchers' blog post specifically mentions these endpoints being accessible via DNS rebinding, and the fix involved adding Host header allowlisting to the peer API handlers.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

* vuln*r**ility i**nti*i** in t** T*ils**l* *li*nt *llows * m*li*ious w**sit* to ****ss t** p**r *PI, w*i** **n t**n ** us** to ****ss T*ils**l* *nvironm*nt v*ri**l*s. *******t** pl*t*orms:** *ll **P*t**** T*ils**l* *li*nt v*rsions:** v*.**.* or l*t

Reasoning

T** vuln*r**ility st*ms *rom t** p**r *PI's l**k o* *ost *****r v*li**tion (*NS r**in*in*) *n* insu**i*i*nt *SR* prot**tions. T** `**n*l*P**r*PIR*qu*st()` *un*tion woul* ** r*sponsi*l* *or routin* r*qu*sts to vuln*r**l* *n*points lik* /v*/*nv, w*il*