当前位置:网站首页>关于davwa的SQL注入时报错:Illegal mix of collations for operation ‘UNION‘原因剖析与验证
关于davwa的SQL注入时报错:Illegal mix of collations for operation ‘UNION‘原因剖析与验证
2022-06-27 19:49:00 【dfzy$_$】
项目场景:
在进行dvwa靶场注入时,发现出现这里出现了一些bug:Illegal mix of collations for operation ‘UNION’
经过查询与验证后,解决并分析了这一问题。
原因分析:
之所以会出现这个情况,是union两端的字段的collatie(排序规则)不同。即dvwa的first_name与last_name字符校对格式与information_schema的发生了冲突:


解决方案:
我们需要将dvwa中的校对规则进行修改,让其与information中的一致,即改成utf8_general_ci:
alter table users modify first_name varchar(15) character set utf8 collate utf8_general_ci
alter table users modify last_name varchar(15) character set utf8 collate utf8_general_ci
alter table users modify user varchar(15) character set utf8 collate utf8_general_ci
alter table users modify password varchar(15) character set utf8 collate utf8_general_ci
此时,就可以解决了:

边栏推荐
- Figure countdownlatch and cyclicbarrier based on AQS queue
- Test automatique de Test logiciel - test d'interface de l'introduction à la maîtrise, apprendre un peu chaque jour
- [leetcode] dynamic programming solution split integer i[silver fox]
- 扁平数组和JSON树的转换
- Software test automation test -- interface test from entry to proficiency, learn a little every day
- Summary of Web testing and app testing by bat testing experts
- 石子合并问题分析
- 大厂常用软件测试面试题三(附答案)
- How to design an elegant caching function
- AQS SOS AQS with me
猜你喜欢

Secret script of test case design without leakage -- module test

开源技术交流丨一站式全自动化运维管家ChengYing入门介绍

我想我要开始写我自己的博客了。

Codeforces Round #717 (Div. 2)

Educational Codeforces Round 108 (Rated for Div. 2)

Stm32cubeide1.9.0\stm32cubemx 6.5 f429igt6 plus lan8720a, configure eth+lwip

使用Fiddler模拟弱网测试(2G/3G)

【MySQL】数据库函数通关教程下篇(窗口函数专题)

CUDA error:out of memory caused by insufficient video memory of 6G graphics card

STM32CubeIDE1.9.0\STM32CubeMX 6.5 F429IGT6加LAN8720A,配置ETH+LWIP
随机推荐
我想我要开始写我自己的博客了。
Codeforces Round #719 (Div. 3)
xpath
使用Jmeter进行性能测试的这套步骤,涨薪2次,升职一次
Go 访问GBase 8a 数据库的一个方法
[Sword Offer II]剑指 Offer II 029. 排序的循环链表
The create database of gbase 8A takes a long time to query and is suspected to be stuck
Go from introduction to actual combat - task cancellation (note)
01 golang environment construction
C语言程序设计详细版 (学习笔记1) 看完不懂,我也没办法。
Read write separation master-slave replication of MySQL
登录凭证(cookie+session和Token令牌)
Gbase 8A OLAP analysis function cume_ Example of dist
[LeetCode]动态规划解分割数组II[Arctic Fox]
GBase 8a OLAP分析函数cume_dist的使用样例
qt base64加解密
Record a list object traversal and determine the size of the float type
YOLOv6:又快又准的目标检测框架开源啦
MONTHS_BETWEEN函数使用
哈希表-数组之和