[asterisk-bugs] [Asterisk 0014386]: [patch] 1.2.31.1 changes create storm of IAX2 register authentication retries

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jun 4 14:29:12 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14386 
====================================================================== 
Reported By:                sabbathbh
Assigned To:                dvossel
====================================================================== 
Project:                    Asterisk
Issue ID:                   14386
Category:                   Channels/chan_iax2
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Asterisk Version:           1.2.X 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 170690 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-02-02 09:05 CST
Last Modified:              2009-06-04 14:29 CDT
====================================================================== 
Summary:                    [patch] 1.2.31.1 changes create storm of IAX2
register authentication retries
Description: 
The changes on chan_iax2.c from 1.2.30.4 to 1.2.31.1 created this bug:

If "A" tries to register on "B" and the RSA key from "A" does not match
the key on "inkeys" on "B", "B" do not send a "REGREJ", instead it sends a
"REGAUTH" with a new "CHALLENGE", then "A" send a new "REGREQ" for this
"CHALLENGE" with the same wrong RSA key and it loops forever on this (with
a storm of REGREQ <--> REGAUTH packets).

The console from the server ("B") will be flooded with this:

Feb  2 12:00:35 NOTICE[24093]: chan_iax2.c:5436 register_verify: Host
planetfoneclient failed RSA authentication with inkeys 'planetfoneclient'
Feb  2 12:00:35 NOTICE[24093]: chan_iax2.c:5436 register_verify: Host
planetfoneclient failed RSA authentication with inkeys 'planetfoneclient'
Feb  2 12:00:35 NOTICE[24093]: chan_iax2.c:5436 register_verify: Host
planetfoneclient failed RSA authentication with inkeys 'planetfoneclient'
Feb  2 12:00:35 NOTICE[24093]: chan_iax2.c:5436 register_verify: Host
planetfoneclient failed RSA authentication with inkeys 'planetfoneclient'
Feb  2 12:00:35 NOTICE[24093]: chan_iax2.c:5436 register_verify: Host
planetfoneclient failed RSA authentication with inkeys 'planetfoneclient'
Feb  2 12:00:35 NOTICE[24093]: chan_iax2.c:5436 register_verify: Host
planetfoneclient failed RSA authentication with inkeys 'planetfoneclient'
Feb  2 12:00:35 NOTICE[24093]: chan_iax2.c:5436 register_verify: Host
planetfoneclient failed RSA authentication with inkeys 'planetfoneclient'
Feb  2 12:00:35 NOTICE[24093]: chan_iax2.c:5436 register_verify: Host
planetfoneclient failed RSA authentication with inkeys 'planetfoneclient'
Feb  2 12:00:35 NOTICE[24093]: chan_iax2.c:5436 register_verify: Host
planetfoneclient failed RSA authentication with inkeys 'planetfoneclient'
Feb  2 12:00:35 NOTICE[24093]: chan_iax2.c:5436 register_verify: Host
planetfoneclient failed RSA authentication with inkeys 'planetfoneclient'

See the IAX2 debug on additional information.

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

---------------------------------------------------------------------- 
 (0106006) svnbot (reporter) - 2009-06-04 14:29
 https://issues.asterisk.org/view.php?id=14386#c106006 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 199188

U   tags/1.2.33/apps/app_chanspy.c
U   tags/1.2.33/channels/chan_iax2.c

------------------------------------------------------------------------
r199188 | dvossel | 2009-06-04 14:29:11 -0500 (Thu, 04 Jun 2009) | 10
lines

IAX2 REGAUTH loop

IAX was not sending REGREJ to terminate invalid registrations.  Instead it
sent another REGAUTH if the authentication challenge failed.  This caused a
loop of REGREQ and REGAUTH frames.  This patch also fixes some compile
errors that occured using gcc v4.3.2.

(Related to Security fix AST-2009-001)

(closes issue https://issues.asterisk.org/view.php?id=14386)
Reported by: sabbathbh


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=199188 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-04 14:29 svnbot         Checkin                                      
2009-06-04 14:29 svnbot         Note Added: 0106006                          
======================================================================




More information about the asterisk-bugs mailing list