Skip to content

Commit

Permalink
[sipmsgops] fix codec_delete_XX() parsing (2)
Browse files Browse the repository at this point in the history
Issue discovered during OpenSIPS Security Audit 2021,
	by Alfred Farrugia & Sandro Gauci (Enable Security)

GHSA-67w7-g4j8-3wcx
(cherry picked from commit c6ab3bb)
  • Loading branch information
bogdan-iancu committed Nov 11, 2021
1 parent b2f934c commit 4ec0f08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/sipmsgops/codecs.c
Expand Up @@ -366,7 +366,8 @@ int delete_sdp_line( struct sip_msg * msg, char * s, struct sdp_stream_cell *str

while(*end != '\n' && end < (stream->body.s+stream->body.len) )
end++;
end++;
if ( *end == '\n')
end++;

/* delete the entry */
if( del_lump(msg, start - msg->buf, end - start,0) == NULL )
Expand Down

0 comments on commit 4ec0f08

Please sign in to comment.