Wireshark-dev: [Wireshark-dev] radius dictionary -> segfault

From: Mihaly Zachar <zmihaly@xxxxxxxxx>
Date: Thu, 10 Dec 2009 02:13:30 +0100
Hi Gents,


Maybe this is not a proper forum to post messages like this, but I have a problem with WS.

I'm using Ubuntu Jaunty and it has a WS version 1.2.2 and unfortunately when I put my dictionary file to the radius dictionary it crashes with SIG11 unfortunately.

Now I compiled the newest stable (1.2.4) but it does the same.

The interesting is that we have a really old WS (1.0.2) and that one opens the traces without problems.

Is my dictionary file is wrong ?

Please find attached my dictionary and a sample RADIUS packet from a trace of a communication between apps which are using my dictionary as well.


Any comments are welcome.

Thanks,
Misi

Attachment: crash_sample.cap
Description: application/cap

#
# Updated 97/06/13 to livingston-radius-2.01 miquels@xxxxxxxxxx
#
#	This file contains dictionary translations for parsing
#	requests and generating responses.  All transactions are
#	composed of Attribute/Value Pairs.  The value of each attribute
#	is specified as one of 4 data types.  Valid data types are:
#
#	string - 0-253 octets
#	ipaddr - 4 octets in network byte order
#	integer - 32 bit value in big endian order (high byte first)
#	date - 32 bit value in big endian order - seconds since
#					00:00:00 GMT,  Jan.  1,  1970
#
#	Enumerated values are stored in the user file with dictionary
#	VALUE translations for easy administration.
#
#	Example:
#
#	ATTRIBUTE	  VALUE
#	---------------   -----
#	Framed-Protocol = PPP
#	7		= 1	(integer encoding)
#

#
#  Modified: Mihaly Zachar, Tibor Velencei, Sandor Szabo
#  Subversion ID: $Id: dictionary 40 2009-11-13 20:10:01Z sszabo $
#  Revised: 2009.11.13.
#

VENDOR		Cisco			9
ATTRIBUTE	Cisco-AVPair		1	string	Cisco
ATTRIBUTE	h323-remote-address	23	string	Cisco
ATTRIBUTE	h323-conf-id		24	string	Cisco
ATTRIBUTE	h323-setup-time		25	string	Cisco
ATTRIBUTE	h323-call-origin	26	string	Cisco
ATTRIBUTE	h323-call-type		27	string	Cisco
ATTRIBUTE	h323-connect-time	28	string	Cisco
ATTRIBUTE	h323-disconnect-time	29	string	Cisco
ATTRIBUTE	h323-disconnect-cause	30	string	Cisco
ATTRIBUTE	h323-voice-quality	31	string	Cisco
ATTRIBUTE	h323-ivr-out		32	string	Cisco
ATTRIBUTE	h323-unknown            33      string  Cisco
ATTRIBUTE	h323-credit-time	102	string	Cisco
ATTRIBUTE	h323-return-code	103	string	Cisco
ATTRIBUTE	h323-redirect-number	106	string	Cisco
ATTRIBUTE	h323-preferred-lang	107	string	Cisco
ATTRIBUTE	h323-billing-model	109	string	Cisco
ATTRIBUTE	h323-currency		110	string	Cisco
#ATTRIBUTE	h323-incoming-conf-id   133     string  Cisco


###############################################################
#       Special attributes for own use
#
# Gamma IPDC
ATTRIBUTE       Event-Timestamp         55      integer
ATTRIBUTE       Radius-Client-Type      224     string
ATTRIBUTE       UA-Auth-Type            225     integer
ATTRIBUTE       In-Call-Limit           226     integer
ATTRIBUTE       Out-Call-Limit          227     integer
ATTRIBUTE       Caller-Channel-Limit    228     integer
ATTRIBUTE       Called-Channel-Limit    229     integer
ATTRIBUTE       Error-Code              199     integer

# Gamma Routing
ATTRIBUTE       Routing                 231     string

# Gamma Recording
ATTRIBUTE       Recording-Type-Calling  232     integer
ATTRIBUTE       Recording-Type-Called   233     integer
ATTRIBUTE       Recording-Recorded      235     integer
ATTRIBUTE       Called-Dtmf             237     string

# Gamma CDR
ATTRIBUTE       Vendor-Id               252     integer
ATTRIBUTE       Vendor-Connection-Id    253     integer
ATTRIBUTE       Invite-Time             239     integer
ATTRIBUTE       Pdd                     240     integer
ATTRIBUTE       Connect-Time            241     integer
ATTRIBUTE       Disconnect-Time         242     integer
ATTRIBUTE       Disconnect-Reason       243     integer
ATTRIBUTE       Call-Id                 244     string
ATTRIBUTE       Dialed-Number           234     string
ATTRIBUTE       Account-Id              249     string
ATTRIBUTE       E164-Number             247     string
ATTRIBUTE       Sequence-Number         251     string
ATTRIBUTE       Last-Sequence-Number    200     integer
ATTRIBUTE       IP-Address              201     string 

# Gamma Voicemail
ATTRIBUTE       Voicemail-Enabled       246     integer

# Gamma General
ATTRIBUTE       B2bua-Id                230     integer
ATTRIBUTE       Status                  238     string
ATTRIBUTE       Filename                218     string
ATTRIBUTE       Timeout                 212     integer
ATTRIBUTE       Interruptable           219     integer
ATTRIBUTE       Exit                    214     integer
ATTRIBUTE       Item-Type               215     integer
ATTRIBUTE       Repeat                  216     integer
ATTRIBUTE       Query-Type              250     integer
ATTRIBUTE       Retransmit              254     integer
ATTRIBUTE       Size                    223     integer
ATTRIBUTE       Key                     209     string
ATTRIBUTE       Internal-Call-Id        245     string
ATTRIBUTE       Calling-Dtmf            236     string
ATTRIBUTE       Wait-Time               248     integer
ATTRIBUTE       E-Mail-Address          198     string
ATTRIBUTE       CC-E-Mail-Address       197     string
ATTRIBUTE       SMS-Destination         196     string
ATTRIBUTE       Call-Control-Level      210     integer
ATTRIBUTE       Alert-Type              195     string

# Gamma Call Control
ATTRIBUTE       IVR-Item                217     string
ATTRIBUTE       Divert-Item             220     string
ATTRIBUTE       Announcement            205     integer
ATTRIBUTE       Repeat-Num              203     integer
ATTRIBUTE       Call-Plan-Id            202     integer

# Gamma Call Queue
ATTRIBUTE       Call-Queue-Item         222     string
ATTRIBUTE       Exit-Type               204     integer

#
#  Notification CDR's special attributes and general attributes
#

###############################################################


#
#	Following are the proper new names. Use these.
#
ATTRIBUTE	User-Name		1	string
ATTRIBUTE	Password		2	string
ATTRIBUTE	CHAP-Password		3	string
ATTRIBUTE	NAS-IP-Address		4	ipaddr
ATTRIBUTE	NAS-Port-Id		5	integer
ATTRIBUTE	Service-Type		6	integer
ATTRIBUTE	Framed-Protocol		7	integer
ATTRIBUTE	Framed-IP-Address	8	ipaddr
ATTRIBUTE	Framed-IP-Netmask	9	ipaddr
ATTRIBUTE	Framed-Routing		10	integer
ATTRIBUTE	Filter-Id		11	string
ATTRIBUTE	Framed-MTU		12	integer
ATTRIBUTE	Framed-Compression	13	integer
ATTRIBUTE	Login-IP-Host		14	ipaddr
ATTRIBUTE	Login-Service		15	integer
ATTRIBUTE	Login-TCP-Port		16	integer
ATTRIBUTE	Reply-Message		18	string
ATTRIBUTE	Callback-Number		19	string
ATTRIBUTE	Callback-Id		20	string
ATTRIBUTE	Framed-Route		22	string
ATTRIBUTE	Framed-IPX-Network	23	ipaddr
ATTRIBUTE	State			24	string
ATTRIBUTE	Vendor-Specific		26	string
ATTRIBUTE	Session-Timeout		27	integer
ATTRIBUTE	Idle-Timeout		28	integer
ATTRIBUTE	Termination-Action	29	integer
ATTRIBUTE	Called-Station-Id	30	string
ATTRIBUTE	Calling-Station-Id	31	string
ATTRIBUTE	Acct-Status-Type	40	integer
ATTRIBUTE	Acct-Delay-Time		41	integer
ATTRIBUTE	Acct-Input-Octets	42	integer
ATTRIBUTE	Acct-Output-Octets	43	integer
ATTRIBUTE	Acct-Session-Id		44	string
ATTRIBUTE	Acct-Authentic		45	integer
ATTRIBUTE	Acct-Session-Time	46	integer
ATTRIBUTE	Acct-Terminate-Cause	49	integer
ATTRIBUTE	NAS-Port-Type		61	integer
ATTRIBUTE	Port-Limit		62	integer
ATTRIBUTE	Connect-Info		77	string

#
#	Experimental Non Protocol Attributes used by Cistron-Radiusd
#
ATTRIBUTE	Huntgroup-Name		221	string
ATTRIBUTE	User-Category		1029	string
ATTRIBUTE	Group-Name		1030	string
ATTRIBUTE	Simultaneous-Use	1034	integer
ATTRIBUTE	Strip-User-Name		1035	integer
ATTRIBUTE	Fall-Through		1036	integer
ATTRIBUTE	Add-Port-To-IP-Address	1037	integer
ATTRIBUTE	Exec-Program		1038	string
ATTRIBUTE	Exec-Program-Wait	1039	string
ATTRIBUTE	Hint			1040	string

#
#	Non-Protocol Attributes
#	These attributes are used internally by the server
#
ATTRIBUTE	Expiration		  21	date
ATTRIBUTE	Auth-Type		1000	integer
ATTRIBUTE	Menu			1001	string
ATTRIBUTE	Termination-Menu	1002	string
ATTRIBUTE	Prefix			1003	string
ATTRIBUTE	Suffix			1004	string
ATTRIBUTE	Group			1005	string
ATTRIBUTE	Crypt-Password		1006	string
ATTRIBUTE	Connect-Rate		1007	integer


#
#	Experiment SIP-specific attributes:
#	These attributes are tied between client & server
#
ATTRIBUTE	Sip-Method			101	integer
ATTRIBUTE	Sip-Response-Code		102	integer
ATTRIBUTE	Sip-CSeq			103	string
ATTRIBUTE	Sip-To-Tag			104	string
ATTRIBUTE	Sip-From-Tag			105	string
ATTRIBUTE	Sip-Branch-ID			106	string
ATTRIBUTE	Sip-Translated-Request-URI	107	string
ATTRIBUTE	Sip-Source-IP-Address		108	ipaddr
ATTRIBUTE	Sip-Source-Port			109	integer
ATTRIBUTE   	Sip-User-ID	            	110	string
ATTRIBUTE   	Sip-User-Realm 			111	string
ATTRIBUTE   	Sip-User-Nonce 			112	string
ATTRIBUTE   	Sip-User-Method			113	string
ATTRIBUTE   	Sip-User-Digest-URI     	114	string
ATTRIBUTE	Sip-User-Nonce-Count 		115	string
ATTRIBUTE	Sip-User-QOP			116	string
ATTRIBUTE	Sip-User-Opaque			117	string
ATTRIBUTE	Sip-User-Response		118	string
ATTRIBUTE   	Sip-User-CNonce			119	string

ATTRIBUTE	Sip-URI-User			208	string
ATTRIBUTE	Sip-Group			211	string
ATTRIBUTE	Sip-RPId			213	string

ATTRIBUTE	Digest-Response			206	string
ATTRIBUTE 	Digest-Attributes		207	string
ATTRIBUTE	Digest-Realm			1063	string
ATTRIBUTE	Digest-Nonce			1064	string
ATTRIBUTE	Digest-Method			1065	string
ATTRIBUTE	Digest-URI			1066	string
ATTRIBUTE	Digest-QOP			1067	string
ATTRIBUTE	Digest-Algorithm		1068	string
ATTRIBUTE	Digest-Body-Digest		1069	string
ATTRIBUTE	Digest-CNonce			1070	string
ATTRIBUTE	Digest-Nonce-Count		1071	string
ATTRIBUTE	Digest-User-Name		1072	string



#
#	Integer Translations
#


#################################################################
#
#       Gamma Values
#

VALUE           UA-Auth-Type            Digest                 0
VALUE           UA-Auth-Type            IP-Auth                1
VALUE           UA-Auth-Type            None                   2

VALUE           Recording-Type-Calling  Off                    0
VALUE           Recording-Type-Calling  On                     1
VALUE           Recording-Type-Calling  Optional               2

VALUE           Recording-Type-Called   Off                    0
VALUE           Recording-Type-Called   On                     1
VALUE           Recording-Type-Called   Optional               2

VALUE           Recording-Recorded      No                     0
VALUE           Recording-Recorded      Yes                    1

VALUE           Voicemail-Enabled       No                     0
VALUE           Voicemail-Enabled       Yes                    1

VALUE           Query-Type              VOICEMAIL              1
VALUE           Query-Type              CALL-CONTROL           2
VALUE           Query-Type              CALL-QUEUE             3
VALUE           Query-Type              CDR                    4
VALUE           Query-Type              RECORDING              5
VALUE           Query-Type              CALL-CONTROL-BYE       6
VALUE           Query-Type              NOTIFICATION           7

VALUE           Interruptable           No                     0
VALUE           Interruptable           Yes                    1

VALUE           Exit                    No                     0
VALUE           Exit                    Yes                    1

VALUE           Item-Type               Announcement           1
VALUE           Item-Type               Destination            2
VALUE           Item-Type               IVR                    3
VALUE           Item-Type               Voicemail-To-E-mail    4
VALUE           Item-Type               Call-Queue             5
VALUE           Item-Type               Ping                   6
VALUE           Item-Type               Bye                    7

VALUE           Repeat                  No                     0
VALUE           Repeat                  Yes                    1

VALUE           Announcement            No                     0
VALUE           Announcement            Yes                    1

VALUE           Exit-Type               Answered               1
VALUE           Exit-Type               Abandoned              2
VALUE           Exit-Type               Overflow               3
VALUE           Exit-Type               Breakout               4

VALUE           Alert-Type              No-Alert               0
VALUE           Alert-Type              Alert-On-Busy          1
VALUE           Alert-Type              Alert-On-No-Answer     2
VALUE           Alert-Type              Always-Alert           3

#################################################################


#	SIP types
VALUE		Sip-Method		Other			0
VALUE           Sip-Method		Invite			1
VALUE		Sip-Method		Cancel			2
VALUE		Sip-Method		Ack			3
VALUE           Sip-Method		Bye			4

VALUE           Sip-Response-Code       Other                   0
VALUE           Sip-Response-Code       Invite                  1
VALUE           Sip-Response-Code       Cancel                  2
VALUE           Sip-Response-Code       Ack                     3
VALUE           Sip-Response-Code       Bye                     4





#	User Types

VALUE		Service-Type		Login-User		1
VALUE		Service-Type		Framed-User		2
VALUE		Service-Type		Callback-Login-User	3
VALUE		Service-Type		Callback-Framed-User	4
VALUE		Service-Type		Outbound-User		5
VALUE		Service-Type		Administrative-User	6
VALUE		Service-Type		NAS-Prompt-User		7
VALUE		Service-Type		Call-Check		10
VALUE		Service-Type		Group-Check		12
VALUE		Service-Type		Sip-Session		15

#	Framed Protocols

VALUE		Framed-Protocol		PPP			1
VALUE		Framed-Protocol		SLIP			2

#	Framed Routing Values

VALUE		Framed-Routing		None			0
VALUE		Framed-Routing		Broadcast		1
VALUE		Framed-Routing		Listen			2
VALUE		Framed-Routing		Broadcast-Listen	3

#	Framed Compression Types

VALUE		Framed-Compression	None			0
VALUE		Framed-Compression	Van-Jacobson-TCP-IP	1

#	Login Services

VALUE		Login-Service		Telnet			0
VALUE		Login-Service		Rlogin			1
VALUE		Login-Service		TCP-Clear		2
VALUE		Login-Service		PortMaster		3

#	Status Types

VALUE		Acct-Status-Type	Start			1
VALUE		Acct-Status-Type	Stop			2
VALUE		Acct-Status-Type	Alive			3
VALUE		Acct-Status-Type	Accounting-On		7
VALUE		Acct-Status-Type	Accounting-Off		8
VALUE		Acct-Status-Type	Failed			15

#	Authentication Types

VALUE		Acct-Authentic		RADIUS			1
VALUE		Acct-Authentic		Local			2
VALUE		Acct-Authentic		PowerLink128		100

#	Termination Options

VALUE		Termination-Action	Default			0
VALUE		Termination-Action	RADIUS-Request		1

#	NAS Port Types, available in 3.3.1 and later

VALUE		NAS-Port-Type		Async			0
VALUE		NAS-Port-Type		Sync			1
VALUE		NAS-Port-Type		ISDN			2
VALUE		NAS-Port-Type		ISDN-V120		3
VALUE		NAS-Port-Type		ISDN-V110		4

#	Acct Terminate Causes, available in 3.3.2 and later

VALUE           Acct-Terminate-Cause    User-Request            1
VALUE           Acct-Terminate-Cause    Lost-Carrier            2
VALUE           Acct-Terminate-Cause    Lost-Service            3
VALUE           Acct-Terminate-Cause    Idle-Timeout            4
VALUE           Acct-Terminate-Cause    Session-Timeout         5
VALUE           Acct-Terminate-Cause    Admin-Reset             6
VALUE           Acct-Terminate-Cause    Admin-Reboot            7
VALUE           Acct-Terminate-Cause    Port-Error              8
VALUE           Acct-Terminate-Cause    NAS-Error               9
VALUE           Acct-Terminate-Cause    NAS-Request             10
VALUE           Acct-Terminate-Cause    NAS-Reboot              11
VALUE           Acct-Terminate-Cause    Port-Unneeded           12
VALUE           Acct-Terminate-Cause    Port-Preempted          13
VALUE           Acct-Terminate-Cause    Port-Suspended          14
VALUE           Acct-Terminate-Cause    Service-Unavailable     15
VALUE           Acct-Terminate-Cause    Callback                16
VALUE           Acct-Terminate-Cause    User-Error              17
VALUE           Acct-Terminate-Cause    Host-Request            18

#
#	Non-Protocol Integer Translations
#

VALUE		Auth-Type		Local			0
VALUE		Auth-Type		System			1
VALUE		Auth-Type		SecurID			2
VALUE		Auth-Type		Crypt-Local		3
VALUE		Auth-Type		Reject			4

#
#	Cistron extensions
#
VALUE		Auth-Type		Pam			253
VALUE		Auth-Type		None			254

#
#	Experimental Non-Protocol Integer Translations for Cistron-Radiusd
#
VALUE		Fall-Through		No			0
VALUE		Fall-Through		Yes			1
VALUE		Add-Port-To-IP-Address	No			0
VALUE		Add-Port-To-IP-Address	Yes			1

#
#	Configuration Values
#	uncomment these two lines to turn account expiration on
#

#VALUE		Server-Config		Password-Expiration	30
#VALUE		Server-Config		Password-Warning	5