GHSA-w42g-7vfc-xf37: Introspection in schema validation in Apollo Server
Оценка Noroxi
Приоритет: Наблюдать (оценка срочности 0/100)
- В отслеживаемых источниках (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) нет публичного эксплойта или записей об эксплуатации.
- Исправленная версия: apollo-server (npm) 2.14.2; apollo-server-azure-functions (npm) 2.14.2; apollo-server-cache-memcached (npm) 2.14.2.
Пока низкий приоритет. Обновитесь до apollo-server (npm) 2.14.2; apollo-server-azure-functions (npm) 2.14.2; apollo-server-cache-memcached (npm) 2.14.2 или новее.
Формируется автоматически по данным записи: CVSS (NVD и CNA), CISA KEV и SSVC, FIRST EPSS, источники эксплойтов, исправленные версии. Как мы считаем
Первоисточники: OSV
We encourage all users of Apollo Server to read this advisory in its entirety to understand the impact. The _Resolution_ section contains details on patched versions. ### Impact If `subscriptions: false` is passed to the `ApolloServer` constructor options, there is no impact. If implementors were not expecting validation rules to be enforced on the WebSocket subscriptions transport **and** are unconcerned about introspection being enabled on the WebSocket subscriptions transport (or were not expecting that), then this advisory is not applicable. If `introspection: true` is passed to the `ApolloServer` constructor options, the impact is limited to user-provided validation rules (i.e., using `validationRules`) since there would be no expectation that introspection was disabled. The enforcement of user-provided validation rules on the HTTP transport is working as intended and is unaffected by this advisory. Similarly, disabling introspection on the HTTP transport is working as intended and is unaffected by this advisory. > **Note:** Unless `subscriptions: false` is explicitly passed to the constructor parameters of `new ApolloServer({ ... })`, **subscriptions are enabled by default, whether or not there is a `Subscription` type present in the schema.** As an alternative to upgrading to a patched version, see the _Workarounds_ section below to disable subscriptions if it is not necessary. In cases where `subscriptions: false` is **not** explicitly set, the subscription server **is impacted** since validation rules which are enforced on the main request pipeline within Apollo Server were not being passed to the `SubscriptionServer.create` invocation ([seen here, prior to the patch](https://github.com/apollographql/apollo-server/blob/7d6f23443e52a90deb74f152f34bb76eea78ee19/packages/apollo-server-core/src/ApolloServer.ts#L677-L726)). The omitted validation rules for the subscription server include any `validationRules` passed by implementors to the `ApolloServer` constructor which were expected to be enforced on the subscriptions WebSocket endpoint. **Additionally**, because an internal [`NoIntrospection`](https://github.com/apollographql/apollo-server/blob/7d6f23443/packages/apollo-server-core/src/ApolloServer.ts#L77-L88) validation rule is used to disable introspection, it would have been possible to introspect a server on the WebSocket endpoint that the `SubscriptionServer` creates even though it was not possible on other transports (e.g. HTTP). **The severity of risk depends on whether sensitive information is being stored in the schema itself.** The contents of schema descriptions, or secrets which might be revealed by the names of types or field names within those types, will determine the risk to individual implementors. ### Affected packages The bug existed in `apollo-server-core` versions prior to version 2.14.2, however, this means all integration packages (e.g., `apollo-server-express`, etc.) prior to version 2.14.2 which depend on `apollo-server-core` for their subscriptions support are affected. This includes the `apollo-server` package that automatically provides an Express server. Therefore, for officially published Apollo Server packages, the full list of affected packages includes: `apollo-server`, `apollo-server-azure-functions`, `apollo-server-cache-memcached`, `apollo-server-core`, `apollo-server-cloud-functions`, `apollo-server-cloudflare`, `apollo-server-express`, `apollo-server-fastify`, `apollo-server-hapi`, `apollo-server-koa`, `apollo-server-lambda`, and `apollo-server-micro`. > Note: The full list included here doesn't fit into the box provided by the GitHub Security Advisories form. ### Resolution The problem is resolved in Apollo Server versions 2.14.2 or higher. If upgrading is not an option, see _Workarounds_ below. When upgrading, ensure that the affected integration package (e.g., `apollo-server-express`) **and** the `apollo-server-core` package are both updated to the patched versions. (The version numbers should both be 2.14.2.) ### Workarounds Upgrading to a patched version is the recommended solution. If upgrading is not an option, subscriptions can be disabled with `subscriptions: false` to resolve the impact. **Disabling subscriptions in this way will disable _all_ subscriptions support and the WebSocket transport**: ```js const server = new ApolloServer({ subscriptions: false, /* Other options, such as typeDefs, resolvers, schema, etc. */ }); ``` ### For more information If you have any questions or comments about this advisory, please [open an issue](https://github.com/apollographql/apollo-server/issues/new) and the maintainers will try to assist. ### Credit and appreciation Apollo fully believes in ethical disclosure of vulnerabilities by security researchers who notify us with details and provide us time to address and fix the issues before publicly disclosing. Credit for this discovery goes to the team at [Bitwala](https://www.bitwala.com/), who reported the concern to us responsibly after discovering it during their own auditing.
- Опубликовано
- 5 июн. 2020 г.
- Обновлено
- 31 авг. 2020 г.
- EPSS
- —
- CWE
- —
Инструменты для отчёта
Оценка срочности
0
Пока низкий приоритет.
- CVSS
- 0 / 40 · —
- CISA KEV
- 0 / 30 · Нет в списке
- EPSS
- 0 / 30 · —
Узнайте, когда запись изменится
- Нет в KEV: эксплуатация в реальных атаках не зафиксирована
- Публичного эксплойта нет
- Исправление выпущено
Если что-то из этого изменится, сообщим в ежедневной сводке.
Затронута ли ваша версия? ПроверьтеАнализ Noroxi
Что это значит для вашей инфраструктуры?
Оценка выше формируется автоматически по данным записи и не знает вашей среды. Наша команда проверит на ваших системах, действительно ли уязвимость эксплуатируема и какой меры достаточно.
Мы используем этот продукт, нужна помощьЗатронутые системы
Затронута ли ваша версия?
Выберите продукт и введите свою версию. Она сравнивается с диапазонами этой записи прямо в браузере и никуда не отправляется.
| Вендор | Продукт | CPE |
|---|---|---|
| npm | apollo-server | pkg:npm/apollo-server |
| npm | apollo-server-azure-functions | pkg:npm/apollo-server-azure-functions |
| npm | apollo-server-cache-memcached | pkg:npm/apollo-server-cache-memcached |
| npm | apollo-server-core | pkg:npm/apollo-server-core |
| npm | apollo-server-cloud-functions | pkg:npm/apollo-server-cloud-functions |
| npm | apollo-server-cloudflare | pkg:npm/apollo-server-cloudflare |
| npm | apollo-server-express | pkg:npm/apollo-server-express |
| npm | apollo-server-fastify | pkg:npm/apollo-server-fastify |
| npm | apollo-server-hapi | pkg:npm/apollo-server-hapi |
| npm | apollo-server-koa | pkg:npm/apollo-server-koa |
| npm | apollo-server-lambda | pkg:npm/apollo-server-lambda |
| npm | apollo-server-micro | pkg:npm/apollo-server-micro |
Затронутые пакеты
Данные OSV и GitHub Advisory: экосистема, пакет и диапазон. Сопоставление SBOM использует эту таблицу.
| Экосистема | Пакет | Затронутый диапазон | Исправление |
|---|---|---|---|
| npm | apollo-server | до 2.14.2 | 2.14.2 |
| npm | apollo-server-azure-functions | до 2.14.2 | 2.14.2 |
| npm | apollo-server-cache-memcached | до 2.14.2 | 2.14.2 |
| npm | apollo-server-cloud-functions | до 2.14.2 | 2.14.2 |
| npm | apollo-server-cloudflare | до 2.14.2 | 2.14.2 |
| npm | apollo-server-core | до 2.14.2 | 2.14.2 |
| npm | apollo-server-express | до 2.14.2 | 2.14.2 |
| npm | apollo-server-fastify | до 2.14.2 | 2.14.2 |
| npm | apollo-server-hapi | до 2.14.2 | 2.14.2 |
| npm | apollo-server-koa | до 2.14.2 | 2.14.2 |
| npm | apollo-server-lambda | до 2.14.2 | 2.14.2 |
| npm | apollo-server-micro | до 2.14.2 | 2.14.2 |
Тот же продукт
npm: все записиДругие записи с наивысшей оценкой для того же основного продукта.
- GHSA-2p3c-p3qw-69r4The graphql-upload library included in Apollo Server 2 is vulnerable to CSRF mutations0Наблюдать
- GHSA-qm7x-rc44-rrqwCross-site Scripting Vulnerability in GraphQL Playground (distributed by Apollo Server)0Наблюдать
Исправление
На какую версию обновиться
Версии с исправлением по данным вендора, реестров пакетов и Microsoft. Перед обновлением сверьтесь с бюллетенем вендора.
| Продукт / пакет | Исправленная версия | Источник |
|---|---|---|
| npm:apollo-server | 2.14.2 | Реестр пакетов (OSV) |
| npm:apollo-server-azure-functions | 2.14.2 | Реестр пакетов (OSV) |
| npm:apollo-server-cache-memcached | 2.14.2 | Реестр пакетов (OSV) |
| npm:apollo-server-cloud-functions | 2.14.2 | Реестр пакетов (OSV) |
| npm:apollo-server-cloudflare | 2.14.2 | Реестр пакетов (OSV) |
| npm:apollo-server-core | 2.14.2 | Реестр пакетов (OSV) |
| npm:apollo-server-express | 2.14.2 | Реестр пакетов (OSV) |
| npm:apollo-server-fastify | 2.14.2 | Реестр пакетов (OSV) |
| npm:apollo-server-hapi | 2.14.2 | Реестр пакетов (OSV) |
| npm:apollo-server-koa | 2.14.2 | Реестр пакетов (OSV) |
| npm:apollo-server-lambda | 2.14.2 | Реестр пакетов (OSV) |
| npm:apollo-server-micro | 2.14.2 | Реестр пакетов (OSV) |
Статус эксплойта
Публичный эксплойт неизвестен
Публичный эксплойт пока не обнаружен. Это не значит, что вы в безопасности, лишь что порог чуть выше.
Контекст для исследователя
Для пентестеров и исследователей: профиль атаки, расхождение оценок, хронология, коммиты исправлений, авторы, кандидаты в варианты и цепочки, охват bug bounty. Всё выводится из имеющихся данных; без кода эксплойтов.
Хронология
От публикации до сегодня: proof of concept, модуль Metasploit, CISA KEV и запись об исправлении. Даты — как сообщают источники.
Кроме публикации датированных событий нет.
Ссылки на патчи и коммиты
Коммиты, PR и diff среди источников. Отправная точка для patch-diff и поиска вариантов; это исправления, не эксплойты.
В записи нет: истории EPSS · указания авторов находки · кандидатов в варианты и цепочки · публичной программы вознаграждений.
Технические детали
Для этой записи нет вектора CVSS, условия атаки вывести нельзя.
Класс уязвимости (CWE)
—
Контекст атаки
Шаблоны атак MITRE CAPEC и техники ATT&CK для этого класса уязвимости (CWE). Отправная точка для правил обнаружения и threat hunting.
У MITRE нет сопоставления CAPEC/ATT&CK для этого CWE.
Журнал изменений (2)
- Исправление✗ → ✓
- CVSS5.5 → —
Для отслеживаемых записей эти изменения приходят и как уведомления. →
Источники
Показать все источники (ещё 14)Свернуть
- github.com/apollographql/apollo-server/commit/e2e816316f5c28a03de2ee1589edb2b10c358114
- github.com/advisories/GHSA-w42g-7vfc-xf37
- www.npmjs.com/advisories/1525
- www.npmjs.com/advisories/1526
- www.npmjs.com/advisories/1527
- www.npmjs.com/advisories/1528
- www.npmjs.com/advisories/1529
- www.npmjs.com/advisories/1530
- www.npmjs.com/advisories/1531
- www.npmjs.com/advisories/1532
- www.npmjs.com/advisories/1533
- www.npmjs.com/advisories/1534
- www.npmjs.com/advisories/1535
- www.npmjs.com/advisories/1536
Рекомендации вендоров и официальные записи. Ссылки на эксплойты/PoC намеренно исключены.