web漏洞详解及修复建议
<%Dim paramSet param=Request.QueryString("dd")response.write param%>
<%Dim paramSet param=Request.QueryString("dd")response.write Server.HTMLEnCode(param)%>
<?php$aa=$_GET['dd'];echo $aa."123";?>
<?php$aa=$_GET['dd'];echo htmlspecialchars($aa)."123";?>
<%Dim oComm, oRsSet id=Request.QueryString("d")Set oConn = Server.CreateObject("ADODB.Connection")oConn.Open "Provider=MSDAORA;Password=sth;Persist Security Info=True;User ID=whats;Data Source=mescp"Set oComm = CreateObject("ADODB.Command")oComm.ActiveConnection = oConnComm.CommandType = 1oComm.CommandText = "select * from all_objects where rownum ="& idSet oRs = oComm.Execute%>
<%Dim oComm, oRsSet oConn = Server.CreateObject("ADODB.Connection")oConn.Open "Provider=MSDAORA;Password=sth;Persist Security Info=True;User ID=whats;Data Source=mescp"Set oComm = CreateObject("ADODB.Command")oComm.ActiveConnection = oConnComm.CommandType = 1oComm.CommandText = "select * from all_objects where rownum = ? "oComm.Parameters.Append oComm.CreateParameter("v1",3,1,4,100)Set oRs = oComm.Execute%>
<?php$id=$_GET['id'];$conn = mysql_connect("localhost","root","") or die ("wrong!");$sel=mysql_select_db("mydb",$conn); $sql="select * from user where id = ".id$que=mysql_query($sql,$conn);?>
<?php$id=$_GET['id'];$conn = mysql_connect("localhost","root","") or die ("wrong!");$sel=mysql_select_db("mydb",$conn);$sql="select * from user where id = :id"$stmt = $conn->prepare($sql);$stmt->execute(array(':id'=>$id));?>
<%' 期待输入sub.aspexecute request("include")%>
<%<!--#include file="sub.asp"-->%>
<%php$myvar = "varname";$x = $_GET['arg'];eval_r("\$myvar = \$x;");%>
<%php$myvar = "varname";$x = $_GET['arg'];$myvar = $x;%>
<%Dim cmdSet cmd=Request.QueryString("cmd")response.write server.createobject("wscript.shell").exec("cmd.exe /c "&cmd).stdout.readall%>
<%Dim cmdSet cmd=Request.QueryString("cmd")if cmd == "dir" thenresponse.write server.createobject("wscript.shell").exec("cmd.exe /c "& "dir").stdout.readallend if%>
<%php$myvar = "varname";$x = $_GET['arg'];// 默认通过url传入ls -al 进行执行system($x);%>
<%php$myvar = "varname";$x = $_GET['arg'];// 默认通过url传入ls -al 进行执行if($x=='/bin/ls -al'){system('/bin/ls -al');}else{return;}%>
<?php$path=$_GET['arg'];include $path.'/filename.php';?>
<?php$path='/var/www/html/common.inc';include $path.'/filename.php';?>
allow_url_fopen=offallow_url_include=off
<%Dim FileNameFileName = Request.QueryString("FileName")Response.ClearResponse.ContentType = "application/octet-stream"Response.AddHeader "content-disposition", "attachment; filename=" & FileNameSet Stream = server.CreateObject("ADODB.Stream")Stream.Type = 1Stream.OpenStream.LoadFromFile Server.MapPath(FileName)While Not Stream.EOSResponse.BinaryWrite Stream.Read(1024 * 64)WendStream.CloseSet Stream = NothingResponse.FlushResponse.End%>
<%Dim FileNameFileId = Request.QueryString("FileId")FileName = GetFileNameByID(FileId)Response.ClearResponse.ContentType = "application/octet-stream"Response.AddHeader "content-disposition", "attachment; filename=" & FileNameSet Stream = server.CreateObject("ADODB.Stream")Stream.Type = 1Stream.OpenStream.LoadFromFile Server.MapPath(FileName)While Not Stream.EOSResponse.BinaryWrite Stream.Read(1024 * 64)WendStream.CloseSet Stream = NothingResponse.FlushResponse.End%>
web漏洞详解及修复建议的更多相关文章
- NGINX高性能Web服务器详解(读书笔记)
原文地址:NGINX高性能Web服务器详解(读书笔记) 作者:夏寥寥 第4章 Nginx服务器的高级配置 4.1 针对IPv4的内核7个参数的配置优化 说明:我们可以将这些内核参数的值追加到Linu ...
- Java web Cookie详解(持久化+原理详解+共享问题+设置中文+发送多个Cookie)
Java web Cookie详解 啥是cookie? 查询有道词典得: web和饼干有啥关系? 这个谜底等等来为大家揭晓 会话技术 web中的会话技术类似于生活中两个人聊天,不过web中的会话指的是 ...
- Web.xml详解(转)
这篇文章主要是综合网上关于web.xml的一些介绍,希望对大家有所帮助,也欢迎大家一起讨论. ---题记 一. Web.xml详解: (一) web.xml加载过程(步骤) 首 ...
- Mac下Intellij IDea发布Web项目详解一
Mac下Intellij IDea发布Web项目详解一 Mac下Intellij IDea发布Java Web项目(适合第一次配置Tomcat的家伙们)详解二 Mac下Intellij IDea发布J ...
- Mac下Intellij IDea发布Java Web项目详解五 开始测试
测试前准备工作目录 Mac下Intellij IDea发布Web项目详解一 Mac下Intellij IDea发布Java Web项目(适合第一次配置Tomcat的家伙们)详解二 Mac下Intell ...
- 最锋利的Visual Studio Web开发工具扩展:Web Essentials详解
原文:最锋利的Visual Studio Web开发工具扩展:Web Essentials详解 Web Essentials是目前为止见过的最好用的VS扩展工具了,具体功能请待我一一道来. 首先,从E ...
- JAVA Eclipse使用Maven构建web项目详解(SSM框架)
tips: 启动项目后,welcome-file的链接即为测试用例 部署maven web项目 Eclipse使用Maven构建web项目详解 pom.xml添加webapp依赖: <depen ...
- Spark2.1.0——内置Web框架详解
Spark2.1.0——内置Web框架详解 任何系统都需要提供监控功能,否则在运行期间发生一些异常时,我们将会束手无策.也许有人说,可以增加日志来解决这个问题.日志只能解决你的程序逻辑在运行期的监控, ...
- 命令创建.net core3.0 web应用详解(超详细教程)
原文:命令创建.net core3.0 web应用详解(超详细教程) 你是不是曾经膜拜那些敲几行代码就可以创建项目的大神,学习了命令创建项目你也可以成为大神,其实命令创建项目很简单. 1.cmd命令行 ...
随机推荐
- myeclipse内存调整
内存调整: myeclipse.ini里配置后 1.设置Default VM Arguments 在myEclipse中,打开Windows-> Preferences->Java-> ...
- 学习笔记:Vue
https://cn.vuejs.org/v2/api/ 官网API https://cn.vuejs.org/v2/guide/ 官网教程 http://www.runoob.com/vue2/vu ...
- 学习笔记: js插件 —— SuperSlide 2 (轮播图插件,PC用)
SuperSlide 2 轮播图插件,较老.但还好用. 适用于PC,是绑定到jquery上的方法: $.slide(); 如果在实际中找不到.slide方法,请检查jquery等.js文件的引入次序 ...
- python中的jion
on将列表或元组中的每个元素连接起来,举个例子: 1 a = ["hello", "world", "dlrb"] 2 a1 = " ...
- winform 之MDI容器
MDI是指将多控件窗体在同一窗体中打开 1.设置:属性中IsMDIContainer:true; 窗体变为灰色成为MDI窗体容器 2.MDI中一般采用菜单作为打开方式 3.子级窗体在MDI中打开,需先 ...
- [C基础修炼]如何用vs2017写一个C语言hello world程序
从微软官网下载vs2017安装后,打开 文件>新建>项目>Visual C++空项目(选择名称,位置)确定>找到源文件 鼠标右击>添加>新建项>Visual ...
- Ubuntu下无法使用Secure_CRT连接服务器
虚拟机使用 1 .指令安装了SSH服务器 sudo apt-get install openssh-server 2. 输入命令 ps | grep ssh 查看SSH服务是否开启 显示服务已开启 3 ...
- react-native android app名字 app包名、图标和启动图片设置
1.设置名字 打开 android/app/src/main/res/values/strings.xml 如图,进行修改即可 2.设置图标,最简单可以直接替换,其他后在看 在上图中几个文件夹中都有一 ...
- 开源项目几点心得,Java架构必会几大技术点
关于学习架构,必须会的几点技术 1. java反射技术 2. xml文件处理 3. properties属性文件处理 4. 线程安全机制 5. annocation注解 ...
- LeetCode 题解 Search a 2D Matrix II。巧妙!
[ [1, 4, 7, 11, 15], [2, 5, 8, 12, 19], [3, 6, 9, 16, 22], [10, 13, 14, 17, 24], [18, 21, 23, 26, 30 ...