GHSA-PM8X-MX56-G395
Arbitrary file write in the Qwik dev server via `POST /__image_fix`
Texto original en inglés · Ver en español
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-PM8X-MX56-G395 divulgada · CVSS 8.3 (GitHub) | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Description
The Qwik Vite development server exposes a default-enabled, unauthenticated `/__image_fix` endpoint that modifies local files without validating the requesting origin. Its file path is not confined to the project directory, and supplied image dimensions are inserted into source text without validation. Files writable by the development server can be modified if they contain `<img` at the specified position.
Impact
This issue permits unauthorized modification of eligible files, including files outside the project directory. Modification of executable project source can lead to arbitrary code execution with the development server process’s permissions, compromising accessible files and credentials. Injected changes may also persist in project source and enter subsequent builds. Exposure is limited to development servers with the endpoint enabled; production deployments are unaffected.
### Credits
- Thai Son Dinh (sondt) from VinSOC Labs
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npm@qwik.dev/core |
Sin parche | — | — | 0.0.0 afectada |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/QwikDev/qwik/security/advisories/GHSA-pm8x-mx56-g395Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
