Katalog CVE

CVE-2026-118657

ŚrednieCVSS 5.9
Opublikowano: Przetłumaczono: NVD NIST

Streszczenie

W frameworku Echo (Go) w wersjach przed 4.16.0 i 5.4.0 funkcja Context.Scheme bezwarunkowo ufa nagłówkom forwarded scheme od dowolnego klienta. Klient łączący się bezpośrednio przez zwykły HTTP może podać schemat HTTPS i ominąć HTTPSRedirect, ponieważ żądanie jest traktowane jako już bezpieczne. Dodatkowo, za proxy terminującym TLS przekazującym nagłówek kontrolowany przez atakującego, deklarowany schemat HTTP może stłumić nagłówek Strict-Transport-Security, mimo że przeglądarka otrzymuje odpowiedź przez HTTPS.

Ocena ryzyka

Możliwe jest obejście wymuszenia HTTPS oraz tłumienie nagłówka HSTS, co osłabia ochronę przed atakami typu downgrade i przechwytywaniem sesji. Ryzyko jest mniejsze, gdy zaufane proxy nadpisuje nagłówki i dostęp bezpośredni do backendu jest zablokowany.

Rekomendacja

Zaktualizuj framework Echo do wersji 4.16.0 lub 5.4.0 (lub nowszej). Upewnij się, że zaufane proxy nadpisuje nagłówki forwarded scheme, a bezpośredni dostęp do backendu jest zablokowany.

Inne podatności w Echo

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

Echo is a Go web framework. Prior to 4.16.0 and 5.4.0, Context.Scheme unconditionally trusts forwarded scheme headers from any client. A client that reaches Echo directly over plaintext HTTP can claim an HTTPS scheme and bypass HTTPSRedirect because the request is treated as already secure. Separately, behind a TLS-terminating proxy that passes an attacker-controlled header, a claimed HTTP scheme can suppress the Strict-Transport-Security header even though the browser receives the response over HTTPS. The practical risk is reduced when a trusted proxy overwrites the headers and direct backend access is prevented, but the framework previously had no trusted-source configuration for this decision. This issue is fixed in 4.16.0 and 5.4.0.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS