******************************* * Security Advisory #01, 2004 * ******************************* Carlos Barros www.barrossecurity.com ****************************************************************************** Title: mpg123 buffer overflows Vulnerable package(s): * mpg123-pre0.59s; * mpg123-0.59r. Date: 08/10/2004 Legal notice: This Advisory is Copyright (c) 2004 Carlos Barros. Permission is granted for the redistribution of this alert electronically. It may not be edited in any way without the express written consent of the author. Disclaimer: The information in the advisory is believed to be accurate at the time of publishing based on currently available information. Use of the information constitutes acceptance for use in an AS IS condition. There are no warranties with regard to this information. Neither the author nor the publisher accepts any liability for any direct, indirect, or consequential loss or damage arising from use of, or reliance on, this information. Introduction: mpg123 is a real time MPEG Audio Player for Layer 1,2 and Layer3. It can be downloaded at: www.mpg123.de Vulnerability details: mpg123 is prone to a buffer overflow in the function getauthfromURL. // httpget.c, line 114 int getauthfromURL(char *url,char *auth) { char *pos; *auth = 0; if (!(strncmp(url, "http://", 7))) url += 7; if( (pos = strchr(url,'@')) ) { int i; for(i=0;i