[UNIX] ktools Buffer Overflow

From: SecuriTeam (support_at_securiteam.com)
Date: 11/27/05

  • Next message: SecuriTeam: "[EXPL] FreeFTPd DoS (PORT, Exploit)"
    To: list@securiteam.com
    Date: 27 Nov 2005 12:58:17 +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

    - - - - - - - - -

      ktools Buffer Overflow
    ------------------------------------------------------------------------

    SUMMARY

    " <http://konst.org.ua/ktools> ktools main purpose is to provide various
    text-mode user interface controls without a need to write too much code."

    Lack of proper length validation by the ktools product, allows attackers
    to cause the program to execute arbitrary code by overflowing an internal
    buffer.

    DETAILS

    Vulnerable Systems:
     * ktools version 0.3 and prior

    The macro VGETSTRING in the header file of kkstrtext.h contain a buffer
    overflow for any string that is bigger then 1024 chars. The programs
    centericq, Orpheus, Motor and Groan use ktools and are therefore
    vulnerable to attack.

    Vulnerable Code:
    kkstrtext.h:
    #define VGETSTRING(c, fmt) \
      { \
          va_list vgs__ap; char vgs__buf[1024]; \
          va_start(vgs__ap, fmt); \
          vsprintf(vgs__buf, fmt, vgs__ap); c = vgs__buf; \
          va_end(vgs__ap); \
      }

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:siegfri3d@gmail.com>
    Siegfried.
    The original article can be found at:
    <http://www.zone-h.org/en/advisories/read/id=8480/>
    http://www.zone-h.org/en/advisories/read/id=8480/

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

    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] FreeFTPd DoS (PORT, Exploit)"

    Relevant Pages