简单说清楚什么是SQL Injection?

最近看完了《The Pragmatic Programmer: 20th Anniversary Edition, 2nd Edition: Your Journey to Mastery》,在第7章:While You Are Coding的footnotes中,提到了一幅漫画:

这不仅用简单的方式说清楚了什么是SQL Injection,而且这个网站还提供各种编程语言下的SQL Injection示例。

其实如果你熟悉Shell脚本,我也一个更简单的例子来演示injection。虽然不是SQL Injection,而是Shell脚本注入,但意思是一样的。

bash 复制代码
$ ls *.out
a.out

$ cat a.sh
eval "ls -l $*"

$ ./a.sh "*.c;rm *.out"
-rw-r--r-- 1 oracle oinstall 67 Mar  1 05:29 a.c

$ ls *.out
ls: cannot access '*.out': No such file or directory
相关推荐
zgxme1 天前
Iceberg Rest Catalog + OSS 实践踩坑记录:Polaris x-amz-content-sha256 报错 与 Nessie 配置
iceberg·database
DBA圈小圈2 天前
【KingbaseES】V8R6查询长事务语句
数据库·postgresql·database
码农12138号3 天前
Bugku 2023 HackINI Virtual Shop 和 2023 HackINI Virtual Shop 2
web安全·sqlite·sql注入
TT哇3 天前
【Database Navigator 插件】idea 社区版连接 mysql 数据库
java·数据库·mysql·intellij-idea·database
码农12138号4 天前
网络安全-SQL注入
数据库·web安全·sql注入
汤愈韬4 天前
防火墙双机热备HRP
网络协议·security·huawei
dingdingfish5 天前
Oracle 《数据库 2 天开发人员指南》第1章:2天Oracle数据库开发介绍
oracle·database·developer·guide·intro
dingdingfish5 天前
Oracle 《数据库 2 天开发人员指南》第2章:连接与探索Oracle数据库
oracle·database·developer·connect·guide·explore
宝桥南山7 天前
Azure - 尝试使用一下Kusto Query Language(KQL)
sql·microsoft·微软·database·azure·powerbi
dingdingfish8 天前
Oracle 数据库 2 天开发人员指南 翻译及读书笔记
oracle·database·developer·19c·guide