Miggo Logo

CVE-2025-22952: Memos Server-Side Request Forgery (SSRF)

9.8

CVSS Score
3.1

Basic Information

EPSS Score
0.95928%
Published
2/27/2025
Updated
3/3/2025
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/usememos/memosgo<= 0.24.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stemmed from two key issues: 1) GetHTMLMeta used http.Get(), which follows redirects by default without validating intermediate URLs. Attackers could exploit this by chaining redirects to internal endpoints. 2) The original validateURL function only checked the initial host's IP, not resolved IPs from DNS queries. The commit f17774cb introduced a custom HTTP client with redirect validation and enhanced DNS-based IP checks, confirming these were the missing safeguards.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*l*stio m*mos v*.**.* is vuln*r**l* to S*rv*r-Si** R*qu*st *or**ry (SSR*) *u* to insu**i*i*nt v*li**tion o* us*r-suppli** URLs, w*i** **n ** *xploit** to p*r*orm SSR* *tt**ks.

Reasoning

T** vuln*r**ility st*mm** *rom two k*y issu*s: *) `**t*TMLM*t*` us** `*ttp.**t()`, w*i** *ollows r**ir**ts *y ****ult wit*out v*li**tin* int*rm**i*t* URLs. *tt**k*rs *oul* *xploit t*is *y ***inin* r**ir**ts to int*rn*l *n*points. *) T** ori*in*l `v*l