llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · apollo-server-core

GHSA-2FVV-QXRQ-7JQ6

apollo-server-core vulnerable to URL-based XSS attack affecting IE11 on default landing page

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -8 d de la divulgación
Exposición1.555 dDesde la divulgación, 18 ago 2022, 1:55 p. m.
Detección1.551 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de la severidad declarada por GHSA (media) y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Sin drama: ventana de mantenimiento y listo.Ni fuego ni humo: solo una tarea pendiente.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 3.10.1
Monitoreo
Detectada
10 ago 22
18 ago 22
17 nov 26
21 nov 26
10 ago 22
5 sept 23
30 sept 24
26 oct 25
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 3.10.1 apollo-server-core · -8 d desde divulgación
Divulgación Publicada GHSA-2FVV-QXRQ-7JQ6 divulgada
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Impact

The default landing page contained HTML to display a sample `curl` command which is made visible if the full landing page bundle could not be fetched from Apollo's CDN. The server's URL is directly interpolated into this command inside the browser from `window.location.href`. On some older browsers such as IE11, this value is not URI-encoded. On such browsers, opening a malicious URL pointing at an Apollo Router could cause execution of attacker-controlled JavaScript.

This only affects Apollo Server with the default landing page https://www.apollographql.com/docs/apollo-server/api/plugin/landing-pages/ enabled. Old browsers visiting your server may be affected if ANY of these apply:
- You do not pass any landing page plugin to the `plugins` option of `new ApolloServer`.
- You pass `ApolloServerPluginLandingPageLocalDefault()` or `ApolloServerPluginLandingPageProductionDefault()` to the `plugins` option of `new ApolloServer`.

Browsers visiting your server are NOT affected if ANY of these apply:
- You pass `ApolloServerPluginLandingPageDisabled()` to the `plugins` option of `new ApolloServer`.
- You pass `ApolloServerPluginLandingPageGraphQLPlayground()` to the `plugins` option of `new ApolloServer`.
- You pass a custom plugin implementing the `renderLandingPage` hook to the `plugins` option of `new ApolloServer`.

This issue was introduced in v3.0.0 when the landing page feature was added.

### Patches
To avoid this, the sample `curl` command has been removed in release 3.10.1.

Workarounds

Disabling the landing page removes the possibility of exploit:

import { ApolloServerPluginLandingPageDisabled } from 'apollo-server-core';

new ApolloServer({
  plugins: [ApolloServerPluginLandingPageDisabled()],
  // ...
});

### See also
A similar issue exists in the landing page of Apollo Router. See the corresponding Apollo Router security advisory https://github.com/apollographql/router/security/advisories/GHSA-p5q6-hhww-f999.

### For more information
If you have any questions or comments about this advisory:
* Open an issue in the Apollo Server repository https://github.com/apollographql/apollo-server/
* Email us at [security@apollographql.com](mailto:security@apollographql.com)

Credits

This issue was discovered by Adrian Denkiewicz of Doyensec https://doyensec.com/research.html.

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Versiones

Rangos afectados

Afectada Corregida Última
apollo-server-core≥ 3.0.0 < 3.10.1
3.0.0
3.10.1
3.13.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npmapollo-server-core
Corregida 3.10.1 -8 d 3.13.0 no afectada
Versiones corregidas3.10.1
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Otrahttps://github.com/apollographql/apollo-server/security/advisories/GHSA-2fvv-qxrq-7jq6
Otrahttps://github.com/apollographql/apollo-server/commit/68a439b6e3af9edc8a2480092f2d49f058be1e64
Otrahttps://github.com/apollographql/apollo-server

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.