Jupyter Enterprise Gateway запускает удаленные ядра Jupyter Notebook в распределенных кластерах, таких как Apache Spark, Kubernetes и Docker Swarm. В версиях 2.0.0rc2 и выше, до 3.3.0, переменные среды (KERNEL_XXX), используемые во время рендеринга манифеста Kubernetes, уязвимы для внедрения шаблонов на стороне сервера (SSTI). Включив выражения шаблона Jinja2, можно выполнять код Python и команды ОС в службе Enterprise Gateway.
Код может использовать или украсть токен сервисной учетной записи Kubernetes, который может украсть секреты Kubernetes и использоваться для полной компрометации кластера Kubernetes путем планирования привилегированного модуля или модуля с монтированием тома HostPath. Эта проблема исправлена в версии 3.3.0.
Показать оригинальное описание (EN)
Jupyter Enterprise Gateway launches remote Jupyter Notebook kernels across distributed clusters like Apache Spark, Kubernetes, and Docker Swarm. In versions 2.0.0rc2 and above, prior to 3.3.0, the environment variables (KERNEL_XXX) used during the rendering of the Kubernetes manifest are vulnerable to Server Side Template Injection (SSTI). By including Jinja2 template expressions it is possible to execution Python code and OS Commands in the Enterprise Gateway service. The code can use or steal the Kubernetes service account token, which can steal Kubernetes secrets and be used to fully compromise the Kubernetes cluster by scheduling a privileged pod or a pod with a hostPath volume mount. This issue has been fixed in version 3.3.0.
Характеристики атаки
Последствия
Строка CVSS v4.0
Тип уязвимости (CWE)
Уязвимые продукты 3
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Jupyter Enterprise_Gateway
cpe:2.3:a:jupyter:enterprise_gateway:*:*:*:*:*:*:*:*
|
2.1.0
|
3.3.0
|
|
Jupyter Enterprise_Gateway
cpe:2.3:a:jupyter:enterprise_gateway:2.0.0:-:*:*:*:*:*:*
|
— | — |
|
Jupyter Enterprise_Gateway
cpe:2.3:a:jupyter:enterprise_gateway:2.0.0:rc2:*:*:*:*:*:*
|
— | — |