Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-fcr8-4r9f-r66m

Опубликовано: 17 янв. 2025
Источник: github
Github: Прошло ревью
CVSS4: 8.6

Описание

nbgrader's frame-ancestors: self grants all users access to formgrader

Impact

Enabling frame-ancestors: 'self' grants any JupyterHub user the ability to extract formgrader content by sending malicious links to users with access to formgrader, at least when using the default JupyterHub configuration of enable_subdomains = False.

#1915 disables a protection which would allow user Alice to craft a page embedding formgrader in an IFrame. If Bob visits that page, his credentials will be sent and the formgrader page loaded. Because Alice's page is on the same Origin as the formgrader iframe, Javasript on Alice's page has full access to the contents of the page served by formgrader using Bob's credentials.

Workarounds

  • Disable frame-ancestors: self, or
  • enable per-user and per-service subdomains with JupyterHub.enable_subdomains = True (then even if embedding in an IFrame is allowed, the host page does not have access to the contents of the frame).

References

JupyterHub documentation on why and when frame-ancestors: self is insecure, and why it was disabled by default: https://jupyterhub.readthedocs.io/en/stable/explanation/websecurity.html#:~:text=frame-ancestors

Пакеты

Наименование

nbgrader

pip
Затронутые версииВерсия исправления

= 0.9.4

0.9.5

EPSS

Процентиль: 44%
0.00217
Низкий

8.6 High

CVSS4

Дефекты

CWE-1021
CWE-668

Связанные уязвимости

nvd
около 1 года назад

nbgrader is a system for assigning and grading notebooks. Enabling frame-ancestors: 'self' grants any JupyterHub user the ability to extract formgrader content by sending malicious links to users with access to formgrader, at least when using the default JupyterHub configuration of `enable_subdomains = False`. #1915 disables a protection which would allow user Alice to craft a page embedding formgrader in an IFrame. If Bob visits that page, his credentials will be sent and the formgrader page loaded. Because Alice's page is on the same Origin as the formgrader iframe, Javasript on Alice's page has _full access_ to the contents of the page served by formgrader using Bob's credentials. This issue has been addressed in release 0.9.5 and all users are advised to upgrade. Users unable to upgrade may disable `frame-ancestors: self`, or enable per-user and per-service subdomains with `JupyterHub.enable_subdomains = True` (then even if embedding in an IFrame is allowed, the host page does not

EPSS

Процентиль: 44%
0.00217
Низкий

8.6 High

CVSS4

Дефекты

CWE-1021
CWE-668