请高手帮我看看。我这段代码里有漏洞吗..我扫描时老是提醒Exist XSS

同城同梦 同城同梦 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
<%
dim keyword
keyword=trim(request("keyword"))
if instr(keyword,";") or instr(keyword,"and") or instr(keyword,"start") or instr(keyword,"select")or instr(keyword,"%") then
response.write "对不起,不能搜索!"
end if
%>
<!--#include file="../inc/conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>xx</title>
<META NAME="ROBOTS" content="ALL">
</head>
<body>
<!-- #include file="../inc/head.asp" -->
<%
keyword=trim(request("keyword"))
user_pro=clng(trim(request("user_pro")))
unit_type=clng(trim(request("unit_type")))
page=clng(trim(request("page")))
%>
<div class="clr"></div>
<div id="users_d">
<div id="users_d_left">
<%
dim strSql,rs
strSql="select * from [user] where "
if user_pro<>"" then strSql=strSql & " user_pro='" & user_pro & "' and"
if unit_type<>"" then strSql=strSql & " unit_type='" & unit_type & "' and"
strSql=strSql & " unit_name like '%" & keyword & "%' order by reg_time desc"
.
.
..
...

<form action="user_sch.asp" method="post" name="pageform">
<input type="hidden" name="keyword" value="<%= keyword %>" />
<input type="hidden" name="user_pro" value="<%= user_pro %>" />
<input type="hidden" name="page" />
共有[<b><%= totalrec %></b>]条记录,<%= page %>/<%= rs.pageCount %>页。
.
.
.
.
.
</form>
<%
else
response.Write "<br><br><br><br><br> <font color=red>对不起,没有搜索到您要 </font><font color=#000000><b>"&keyword&"</b></font> <font color=red>的资料,请重新填写关键词!<br><br><br><br></font>"
end if
%>
...全文

相关推荐

PHP过滤器 filter_has_var() 函数用法实例分析

主要介绍了PHP过滤器 filter_has_var() 函数用法,结合实例形式分析了PHP过滤器 filter_has_var() 函数基本功能、原理、用法及操作注意事项,需要的朋友可以参考下

weixin_38623009

Python Web安全渗透测试工具集成源码拆解:从脚本到工程化扫描器

Web安全渗透测试常从零散脚本起步,但缺乏统一入口和结果汇总。工程化工具集通过HTTP请求封装、线程池调度和模块化检测,实现目录扫描、SQL注入检测等能力,提升可维护性与扩展性。这类Python项目适合毕业设计或转行渗透测试者,帮助理解扫描器如何组织请求、判断漏洞并生成报告。本文拆解一套集成源码的骨架、配置与避坑细节,助你二次开发。

weixin_34056162

PHP过滤器的实现方法第1/2页

要想在PHP中实现一个类似过滤器的功能,因为我的需求是这样的,有个开发好了的OA系统,要集成到我们的应用中,OA要对外来的数据进行过滤,在给自己处理。

weixin_38591223

PHP Filter过滤器全面解析

PHP 过滤器用于验证和过滤来自非安全来源的数据。本文给大家全面解析PHP Filter过滤器的相关知识,非常不错,感兴趣的朋友一起学习吧

weixin_38679233

IIS&amp;Apache 攻击记录分析篇

每个网管最黑暗的时候莫过于服务器被攻击后的束手无策,其实服务器遭受攻击后,服务器的记录文件详细地记录了黑客活动的蛛丝马迹。

weixin_38565801
评论 4
收藏 已收藏
分享
返回顶部
同城同梦
ASP 28,401 成员 356,940 内容