CVE-2026-53519
Beschrijving NL
Nezha Monitoring is een zelf-hostable, lichtgewicht, servers en websites monitoring en O&M tool. Voorafgaand aan versie 2.0.13 behandelt fallbackToFrontend in de NoRoute-handler van het dashboard elke URL waarvan de ruwe tekenreeks begint met /dashboard als een admin-frontend assetverzoek. De controle gebruikt strings.HasPrefix, geen pad-segment match, dus de invoer /dashboard../data/config.yaml wordt geaccepteerd; strings.TrimPrefix verlaat ../data/config.yaml; en path.Join ("admin-dist", "../data/config.yaml") normaliseert naar data/config.yaml — die os.Stat vindt en http.ServeFile retourneert. Geen authenticatie vereist. Dit probleem is gepatcht in versie 2.0.13.
Origineel (Engels) tonen
Nezha Monitoring is a self-hostable, lightweight, servers and websites monitoring and O&M tool. Prior to version 2.0.13, fallbackToFrontend in the dashboard's NoRoute handler treats any URL whose raw string starts with /dashboard as an admin-frontend asset request. The check uses strings.HasPrefix, not a path-segment match, so the input /dashboard../data/config.yaml is accepted; strings.TrimPrefix leaves ../data/config.yaml; and path.Join("admin-dist", "../data/config.yaml") normalizes to data/config.yaml — which os.Stat finds and http.ServeFile returns. No authentication required. This issue has been patched in version 2.0.13.