MySQL数据库的Innodb引擎的注入

栏目: 数据库 · 发布时间: 8年前

内容简介:MySQL数据库的Innodb引擎的注入

使用场景

当目标程序过滤了关键字,如 information ,在注入时,使用select database()关键字查询出当前库名后,无法通过查询information_schema.tables表查询当前库的表名

Innodb引擎的一些特点

1 关键字@@innodb_version,会返回与@@version相似的结果

MySQL数据库的Innodb引擎的注入

2 在 MySQL 5.6以上的版本中,会在系统库 MYSQL库 中存在两张与innodb相关的表 innodb_index_statsinnodb_table_stats .

其中 innodb_index_stats 存储的是innodb引擎的库名,表名及其对应的索引名称. innodb_table_stats 存储的是innodb引擎的库名和表名,结构如下图所示 MySQL数据库的Innodb引擎的注入

注入时的利用

直接以sqli-labs为例 MySQL数据库的Innodb引擎的注入

写在最后

使用 mysql.innodb_table_stats 表注入的缺点是无法通过查询得出列名,在实际场景中,列名可通过爆破的方式获取.


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Practical Algorithms for Programmers

Practical Algorithms for Programmers

Andrew Binstock、John Rex / Addison-Wesley Professional / 1995-06-29 / USD 39.99

Most algorithm books today are either academic textbooks or rehashes of the same tired set of algorithms. Practical Algorithms for Programmers is the first book to give complete code implementations o......一起来看看 《Practical Algorithms for Programmers》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

SHA 加密
SHA 加密

SHA 加密工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具