ITPub博客

首页 > IT基础架构 > 网络安全 > CiscoIOSOSPFexploit(转)

CiscoIOSOSPFexploit(转)

原创 网络安全 作者:tigeerfish 时间:2007-08-09 09:49:50 0 删除 编辑
CiscoIOSOSPFexploit(转)[@more@]

  Hi there,

  attached you may find the exploit for the Cisco IOS bug ID CSCdp58462. The bug

  is long fixed, so if you still run OSPF on a old version of IOS, now is a good

  time to give your routers some attention.

  

  FX

  

  --

  FX

  Phenoelit http://www.phenoelit.de)

  672D 64B2 DE42 FCF7 8A5E E43B C0C1 A242 6D63 B564

  

  ["OoopSPF.c" (text/plain)]

  

  /* Cisco IOS IO memory exploit prove of concept

  * by FX of Phenoelit

  *http://www.phenoelit.de

  *

  * For:

  * 19C3 Chaos Communication Congress 2002 / Berlin

  * BlackHat Briefings Seattle 2003

  *

  * Cisco IOS 11.2.x to 12.0.x OSPF neighbor overflow

  * Cisco Bug CSCdp58462 causes more than 255 OSPF neighbors to overflow a IO memory

  * structure (small buffer header). The attached program is a PoC to exploit

  * this vulnerability by executing "shell code" on the router and write the

  * attached configuration into NVRAM to basicaly own the router.

  *

  * Example:

  * linux# gcc -o OoopSPF OoopSPF.c

  * linux# ./OoopSPF -s 172.16.0.0 -n 255.255.0.0 -d 172.16.1.4

  * -f ./small.config -t 0 -a 1.2.3.4 -vv

  *

  * You can see if it worked if a) the router does not crash and b) the output of

  * "show mem io" looks like this:

  * E40E38 264 E40D04 E40F6C 1 31632D8 *Packet Data*

  * E40F6C 264 E40E38 E410A0 1 31632D8 *Packet Data*

  * E410A0 264 E40F6C E411D4 1 31632D8 *Packet Data*

  * E411D4 1830400 E410A0 0 0 0 E411F8 808A8B8C [PHENOELIT]

  *

  * Exploit has to be "triggered". In LAB environment, go to the router and say

  * box# conf t

  * box(config)# buffers small perm 0

  *

  * Greets go to the Phenoelit members, the usual suspects Halvar, Johnny Cyberpunk,

  * Svoern, Scusi, Pandzilla, and Dizzy, to the #phenoelit people,

  * Gaus of PSIRT, Nico of Securite.org and Dan Kaminsky.

  *

  * $Id: OoopSPF.c,v 1.4 2003/02/20 16:38:30 root Exp root $

  */

  

  #include

  #include

  #include

  #include

  #include

  #include

  #include

  #include

  #include

  #include

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8227599/viewspace-937277/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 认识Cisco'sCEO(转)
请登录后发表评论 登录
全部评论
  • 博文量
    387
  • 访问量
    870233