CVE-2025-12999
Integridad no verificada en Eclipse Open VSX
En resumen
Un atacante remoto, sin usuario ni contraseña, podría modificar información o el sistema sin que nadie haga nada.
Cómo se ataca
- Se puede atacar por la red, incluso desde internet si el servicio está expuesto.
- No requiere condiciones especiales: el ataque se puede repetir de forma confiable.
- Depende de que el sistema esté en una configuración o estado particular.
- No necesita usuario ni contraseña.
- No necesita que nadie haga nada: ni abrir un archivo ni hacer clic.
Qué puede lograr el atacante
- Modificar información o el sistema; en los casos graves, ejecutar sus propios programas.
- Hacer más lento o interrumpir parte del servicio.
- Afectar gravemente a otros sistemas que dependen del vulnerable.
Cómo corregirla
- Revise si usa alguno de los productos y versiones de la lista «A qué afecta».
- Aplique la actualización o la mitigación que indica el fabricante.
- Si no puede actualizar ya, reduzca la exposición: que el servicio no sea accesible desde internet, o desactive la función afectada.
- Como pudo explotarse antes de corregirla, revise los registros del equipo en busca de accesos o cambios extraños.
Recomendaciones para este tipo de fallo
- Aplicar la actualización del fabricante.
- Para quien desarrolla: firmar y verificar actualizaciones y mensajes, comprobar el origen (Origin) en WebSockets y postMessage, y usar canales cifrados y autenticados.
A qué afecta
Eclipse Foundation · Eclipse Open VSX
desde 0.6.0 hasta 1.1.2 inclusive
Qué es: Verificación insuficiente del origen o la integridad de los datos
El sistema no comprueba que los datos vengan de quien dicen ni que no hayan sido alterados, y el atacante entrega datos o actualizaciones falsas.
Una actualización que se descarga sin verificar su firma, un mensaje de otra aplicación o de otro sitio que se acepta sin comprobar su origen, o un WebSocket que acepta conexiones de cualquier página. El atacante sustituye los datos legítimos por los suyos.
Guía completa: dónde aparece, cómo se corrige y qué evitarDescripción oficial (en inglés)
UrlUtil.getBaseUrl builds the absolute URLs in a response — download links, icons, asset and API URLs — from the X-Forwarded-Host, X-Forwarded-Proto and X-Forwarded-Prefix request headers, with no check on whether the sender was a trusted proxy, falling back to the client-supplied Host header. Those responses are cached under keys that do not include the host (extension.json since 0.6.0, namespace.details.json since 0.9.0, sitemap since 0.14.5, latest.extension.version.vscode since 0.34.2). A single request carrying a forged header therefore places attacker-chosen URLs into an entry served to every other client for the lifetime of that entry — one hour by default, and cluster-wide where ovsx.redis.enabled is set. The VSIX download URL, its signature URL and the public key URL are all derived from the same base URL, so extension signing does not limit the impact: an attacker who poisons an entry supplies the package, the signature over it, and the key used to verify it. Exploitability depends on deployment topology. A server reachable directly by clients, or fronted by a proxy that relays the client's X-Forwarded-Host rather than overwriting it, is exploitable by an unauthenticated remote attacker. A proxy that overwrites the header is not. An unauthenticated attacker can poison Open VSX's per-extension metadata cache with attacker-controlled download, signature, and public-key URLs by supplying a crafted X-Forwarded-Host header, causing downstream VS Code-compatible editors to fetch and install a malicious VSIX. Workarounds (unpatched versions) 1. Configure the reverse proxy to set rather than relay X-Forwarded-Host, X-Forwarded-Proto and X-Forwarded-Prefix — note that nginx's $host is the client's Host header and is not a safe value. 2. Ensure the server is not reachable except through that proxy. 3. Flush the caches afterwards; poisoned entries survive the configuration change.