[Home]

Summary:ASTERISK-23139: Security: Remote crash in res_pjsip_exten_state
Reporter:Mark Michelson (mmichelson)Labels:Security
Date Opened:2014-01-14 13:33:29.000-0600Date Closed:2014-03-10 15:17:06
Priority:CriticalRegression?
Status:Closed/CompleteComponents:Resources/res_pjsip_exten_state
Versions:12.0.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) ASTERISK-23139.patch
Description:It is possible to crash Asterisk by sending a SUBSCRIBE request to Asterisk for the presence Event that has no Accept headers.

This is because res_pjsip_exten_state.c was originally written with the (correct) assumption that res_pjsip_pubsub.c would filter out any SUBSCRIBE requests that had no Accept headers. However, when handles_default_accept support was added, res_pjsip_exten_state.c did not have the assumption removed.

For the person that writes the security report, this can only be exercised by configured endpoints in PJSIP, so this can't be remotely triggered by just anybody.

I have already created a patch that fixes the issue. I will upload it here.
Comments: