首页 > 系统相关 >漏洞复现Jupyter Notebook未授权访问 getshell

漏洞复现Jupyter Notebook未授权访问 getshell

时间:2024-10-24 14:47:43浏览次数:3  
标签:getshell Jupyter ip 代码 访问 Notebook your

一、 Jupyter Notebook介绍

Jupyter Notebook(此前被称为 IPython notebook)是基于网页的用于交互计算的应用程序,是一个交互式笔记本,支持运行 40 多种编程语言。Jupyter Notebook是以网页的形式打开,可以在网页页面中直接编写代码和运行代码,代码的运行结果也会直接在代码块下显示。

二、Jupyter Notebook 未授权访问介绍

如果管理员未为Jupyter Notebook配置密码,将导致未授权访问漏洞,游客可在其中创建一个console并执行任意Python代码和命令。

三、靶场搭建

靶机:IP:your ip

攻击机:kali ip:your ip

直接使用 vluhub 环境了

cd /vulhub/jupyter/notebook-rce
docker-compose up -d

四、漏洞复现

靶场环境搭建好之后,访问 your ip:8888 将看到 Jupyter Notebook 的Web管理界面,没有要求填写密码。

利用Terminal执行命令

选择new->>Teminal常见一个控制台

反弹shell到kali

公网监听

五、漏洞修复

1、开启身份验证,防止未经授权用户访问。
2、访问控制策略,限制IP访问,绑定固定IP。

标签:getshell,Jupyter,ip,代码,访问,Notebook,your
From: https://blog.csdn.net/2401_86120759/article/details/143209357

相关文章

  • C10-08-宽字节注入-mysql注入之getshell-sqlmap
    一宽字节注入利用宽字节注入实现“库名-表名”的注入过程。靶场环境:容器镜像:area39/pikachu宽字节概念1、如果一个字符的大小是一个字节的,称为窄字节;2、如果一个字符的大小是两个及以上字节的,称为宽字节;像GB2312、GBK、GB18030、BIG5、Shift_JIS等编码都是常见的宽字节......
  • 全局安装一次jupyter notebook,服务于所有虚拟环境
    全局安装一次jupyternotebook,服务于所有虚拟环境contentYou'reabsolutelyright!InstallingJupyterseparatelyforeveryvirtualenvironmentcanbeinefficient.Fortunately,there'sawaytoavoidduplicatingJupyterinstallationsacrossenvironmentsbylevera......
  • Windows环境Jupyter Notebook无法访问npm和node(暂未解决)
    Windows环境JupyterNotebook无法访问npm和nodecontentTheissuemayarisefromusingNode.jsandnpmthroughNVM(NodeVersionManager),whichinstallstheminuser-specificdirectories.Whilethissetupworks,JupyterNotebookorCondamightnotcorrectlydet......
  • 探索 Jupyter 核心:nbformat 库的神秘力量
    文章目录探索Jupyter核心:nbformat库的神秘力量1.背景介绍:为何选择nbformat?2.`nbformat`是什么?3.如何安装`nbformat`?4.简单的库函数使用方法4.1读取Notebook文件4.2修改Notebook中的单元格4.3添加Markdown单元格4.4写入Notebook文件4.5验证Notebo......
  • 如何在 Jupyter Notebook 执行和学习 SQL 语句(上)—— 基本原理详解和相关库安装篇
            近期我找工作很多岗位问到sql,由于我简历上有写,加上我实习的时候确实运用了,所以我还是准备复习一下SQL语句,常见的内容,主要包括一些内容,比如SQL基础(主要是取数select,毕竟用的时候基本上不会让我一个实习生进行一个删除之类的操作)和一些进阶的用法比如窗口函数之......
  • jupyter notebook里添加conda虚拟环境
    情况描述有时clone的项目中包含demo.ipynb文件,需要启动jupyter-notebook运行,此文记录将虚拟环境导入到jupyter中。1.下载并运行jupyter-notebook#在base环境当中安装jupyterpipinstalljupyter#base环境下运行jupyterjupyternotebook#jupyternotebook可选参数2.......
  • Jupyter Notebook 中同时使用 Python 和 R
    要在JupyterNotebook中同时使用Python和R,可以通过rpy2库来实现。以下是具体步骤:安装rpy2(如果尚未安装):pipinstallrpy2在JupyterNotebook中加载R包:可以在Python代码单元中使用rpy2的importr函数来加载R包。下面是一个示例代码,展示如何加载neuroba......
  • Jupyter - Magic Function Usage
     %%writefiledata_preparation/v0.pydevice='cuda'iftorch.cuda.is_available()else'cpu'#OurdatawasinNumpyarrays,butweneedtotransformthem#intoPyTorch'sTensorsandthenwesendthemtothechosendevicex_tr......
  • COMM 337 Python code in your notebook
    COMM337:Homework2DUEDATE:Oct2,202412:00pmThisisHW2Pythonassignment.Thereare13problems.Eachproblemis7pointsandthetotalis100points(9forfollowingfile/printformat).Instructions:Latesubmissionswillnotbeaccepted.Submit......
  • Jupyter - autoreload
     %reload_extautoreload%autoreload2 Usage¶Thefollowingmagiccommandsareprovided:%autoreload, %autoreload nowReloadallmodules(exceptthoseexcludedby %aimport)automaticallynow.%autoreload 0, %autoreload offDisableautomatic......