first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
BIN
jupyter/notebook-rce/1.png
Normal file
BIN
jupyter/notebook-rce/1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
BIN
jupyter/notebook-rce/2.png
Normal file
BIN
jupyter/notebook-rce/2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
27
jupyter/notebook-rce/README.md
Normal file
27
jupyter/notebook-rce/README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# Jupyter Notebook Unauthorized Access
|
||||
|
||||
[中文版本(Chinese version)](README.zh-cn.md)
|
||||
|
||||
The Jupyter Notebook (previous IPython notebook) is a web-based interactive computing platform.
|
||||
|
||||
If the administrator doesn't configure a password for Jupyter Notebook, this will lead to an unauthorized access vulnerability where attackers can create a console and execute arbitrary Python code and commands.
|
||||
|
||||
## Vulnerable environment
|
||||
|
||||
Execute following command to start a Jupyter Notebook server:
|
||||
|
||||
```
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
After the server is started, you can see the index of Jupyter Notebook on `http://your-ip:8888`.
|
||||
|
||||
## Vulnerability Reproduce
|
||||
|
||||
Click "New" -> "Terminal" to create a console:
|
||||
|
||||

|
||||
|
||||
Execute arbitrary commands in this console:
|
||||
|
||||

|
25
jupyter/notebook-rce/README.zh-cn.md
Normal file
25
jupyter/notebook-rce/README.zh-cn.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# Jupyter Notebook 未授权访问漏洞
|
||||
|
||||
Jupyter Notebook(此前被称为 IPython notebook)是一个交互式笔记本,支持运行 40 多种编程语言。
|
||||
|
||||
如果管理员未为Jupyter Notebook配置密码,将导致未授权访问漏洞,游客可在其中创建一个console并执行任意Python代码和命令。
|
||||
|
||||
## 环境运行
|
||||
|
||||
运行测试环境:
|
||||
|
||||
```
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
运行后,访问`http://your-ip:8888`将看到Jupyter Notebook的Web管理界面,并没有要求填写密码。
|
||||
|
||||
## 漏洞复现
|
||||
|
||||
选择 new -> terminal 即可创建一个控制台:
|
||||
|
||||

|
||||
|
||||
直接执行任意命令:
|
||||
|
||||

|
7
jupyter/notebook-rce/docker-compose.yml
Normal file
7
jupyter/notebook-rce/docker-compose.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
version: '2'
|
||||
services:
|
||||
web:
|
||||
image: vulhub/jupyter-notebook:5.2.2
|
||||
command: start-notebook.sh --NotebookApp.token=''
|
||||
ports:
|
||||
- "8888:8888"
|
Reference in New Issue
Block a user