当前位置:网站首页>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 the markdown editor of CSDN input mathematical formulas--- Latex syntax summary
- The standby database has been delayed. Check that the MRP is wait_ for_ Log, apply after restarting MRP_ Log but wait again later_ for_ log
- 服务器防御DDOS的方法,杭州高防IP段103.219.39.x
- 5g NR system messages
- paddle一个由三个卷积层组成的网络完成cifar10数据集的图像分类任务
- DNS series (I): why does the updated DNS record not take effect?
- 第一讲:链表中环的入口结点
- 韦东山第三期课程内容概要
- SQL knowledge summary 004: Postgres terminal command summary
- Notice on organizing the second round of the Southwest Division (Sichuan) of the 2021-2022 National Youth electronic information intelligent innovation competition
猜你喜欢

Reptile practice (VIII): reptile expression pack

An error is reported during the process of setting up ADG. Rman-03009 ora-03113

Kubernetes Static Pod (静态Pod)

SQL knowledge summary 004: Postgres terminal command summary
![[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

Where is the big data open source project, one-stop fully automated full life cycle operation and maintenance steward Chengying (background)?

Relevant methods of sorting arrays in JS (if you want to understand arrays, it's enough to read this article)

从Starfish OS持续对SFO的通缩消耗,长远看SFO的价值

Development of a horse tourism website (realization of login, registration and exit function)

They gathered at the 2022 ecug con just for "China's technological power"
随机推荐
Lecture 1: the entry node of the link in the linked list
Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades(KDD20)
The method of server defense against DDoS, Hangzhou advanced anti DDoS IP section 103.219.39 x
ABAP ALV LVC模板
Codeforces Round #804 (Div. 2)(A~D)
Notice on organizing the second round of the Southwest Division (Sichuan) of the 2021-2022 National Youth electronic information intelligent innovation competition
从Starfish OS持续对SFO的通缩消耗,长远看SFO的价值
1293_ Implementation analysis of xtask resumeall() interface in FreeRTOS
[研发人员必备]paddle 如何制作自己的数据集,并显示。
Scrapy framework
Su embedded training - Day3
Qt添加资源文件,为QAction添加图标,建立信号槽函数并实现
Two small problems in creating user registration interface
paddle一个由三个卷积层组成的网络完成cifar10数据集的图像分类任务
Is Zhou Hongyi, 52, still young?
【GO记录】从零开始GO语言——用GO语言做一个示波器(一)GO语言基础
Installation and configuration of sublime Text3
Qt不同类之间建立信号槽,并传递参数
手写一个模拟的ReentrantLock
取消select的默认样式的向下箭头和设置select默认字样