[UNIX] Buffer Overflow in Liquidwar

From: SecuriTeam (support_at_securiteam.com)
Date: 09/16/03

  • Next message: SecuriTeam: "[EXPL] PINE Exploit Code Released (message/external-body type, e-mail headers)"
    To: list@securiteam.com
    Date: 16 Sep 2003 15:12:36 +0200
    
    

    The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
    - - promotion

    The SecuriTeam alerts list - Free, Accurate, Independent.

    Get your security news from a reliable source.
    http://www.securiteam.com/mailinglist.html

    - - - - - - - - -

      Buffer Overflow in Liquidwar
    ------------------------------------------------------------------------

    SUMMARY

    ZetaLABs (Zone-H Research Laboratories) has discovered a buffer overflow
    in the game <http://www.ufoot.org/liquidwar/> Liquidwar, an application
    contained in the Debian GNU/Linux distribution.

    DETAILS

    Vulnerable systems:
     * Liquidwar version 5.4.5

    We can see the vulnerable code here:
    #define STARTUP_MAX_PATH_LENGTH 1000
    [...]
    char STARTUP_CFG_PATH[STARTUP_MAX_PATH_LENGTH];
    [...]
    static void set_path (void)
    {
    char home_path[512];
    char *home_env;
    if (exist_argument_value (IDENT_CFG))
    strcpy(STARTUP_CFG_PATH,get_argument_str (IDENT_CFG));
    else
    {
    #ifdef ALLEGRO_UNIX
    home_env=getenv("HOME");
    strcpy(home_path,home_env); /* unchecked strcpy() */
    strcat(home_path,"/");
    #else
    home_env="";
    strcpy(home_path,home_env); /* unchecked strcpy() but not dangerous */
    #endif
    strcpy(STARTUP_CFG_PATH,home_path); /* unchecked strcpy() */
    strcat(STARTUP_CFG_PATH,DEFAULT_CFG_PATH);
    }

    This vulnerability can be exploited by a local attacker to execute
    arbitrary code with gid=games privileges.

    Solution:
    It's possible to download a simple patch here:
    <http://www.zone-h.org/download/file=4943>
    http://www.zone-h.org/download/file=4943.

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:secfoc@email.it> Astharot.

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

    This bulletin is sent to members of the SecuriTeam mailing list.
    To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
    In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

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

    DISCLAIMER:
    The information in this bulletin is provided "AS IS" without warranty of any kind.
    In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.


  • Next message: SecuriTeam: "[EXPL] PINE Exploit Code Released (message/external-body type, e-mail headers)"

    Relevant Pages

    • [UNIX] Trend Micro VirusWall Buffer Overflow in VSAPI Library
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... buffer overflow vulnerability in VSAPI library allows arbitrary code ... is called "vscan" which is set suid root by default. ... permissions and thus granted all local users the privilege to execute the ...
      (Securiteam)
    • [UNIX] SCO Multiple Local Buffer Overflow
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Local exploitation of a buffer overflow vulnerability in the ppp binary, ... allows attackers to gain root privileges. ...
      (Securiteam)
    • [NT] Microsoft Word 6.0/95 Document Converter Buffer Overflow (MS04-041)
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... WordPad is "a word processing application that uses the MFC rich edit ... Remote exploitation of a buffer overflow vulnerability in Microsoft ... Microsoft Word format files into the Rich Text Format natively handled by ...
      (Securiteam)
    • [UNIX] Tikiwiki Command Injection and Arbitrary File Exposure Vulnerabilities
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Two security vulnerabilities have been recently discovered in Tikiwiki, ... Remote exploitation of an input validation vulnerability in Tikiwiki ... allows attackers to gain access to arbitrary files on the vulnerable ...
      (Securiteam)
    • [NT] Microsoft Windows GDI+ Gradient Fill Heap Overflow Vulnerability
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Microsoft Windows GDI+ Gradient Fill Heap Overflow Vulnerability ... consult their bulletin at the ...
      (Securiteam)