[REVS] Introduction to Shellcoding for Overflows Exploiting

From: SecuriTeam (support_at_securiteam.com)
Date: 03/15/04

  • Next message: SecuriTeam: "[NEWS] Yahoo WebMail! Cross Site Scripting Vulnerability (order, sort)"
    To: list@securiteam.com
    Date: 15 Mar 2004 09:45:22 +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

    - - - - - - - - -

      Introduction to Shellcoding for Overflows Exploiting
    ------------------------------------------------------------------------

    SUMMARY

    This paper will introduce the reader to the shellcoding and the study of
    buffer overflows; are required a Linux system (with GCC and GDB), and a
    superficial knowledge of C and ASM programming. We will talk about
    shellcodes x86 for Linux and we will explain to you how to write a simple
    rootshell (Note: shellcodes for Linux are different from BSD or Windows
    shellcodes, so they will be used only on Linux systems).

    DETAILS

    The document linked below will guide the reader in the creation of a shell
    code from the source C code to a string ready to use in exploits. The
    document requires no prior knowledge of shellcoding, and basic C and
    assembler knowledge.

    Abstract:
    General knowledge:
    A buffer is a static array (with a prefixed size) that is loaded on the
    stack. A buffer overflow occurs when there is an array's data discharge;
    that happens when there are programming errors. In fact a lot of programs
    don't check variables size. We will insert the shellcode in the stack with
    a strings copy function, called STRCPY and we will execute /BIN/SH with
    the function EXECVE. (Note: String based shellcodes can't use the
    character 0 (NULL), because for the STRCPY function, the end of a string
    is identified by a 0, and if the 0 appears in the middle of the shellcode,
    only part of it will be loaded to the memory).

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:nemesis@blackangels.it >
    Nemesis.

    The complete papaer can be found at:
    <http://www.blackangels.it/Files/Papers/introshellcoding.txt>
    http://www.blackangels.it/Files/Papers/introshellcoding.txt

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

    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: "[NEWS] Yahoo WebMail! Cross Site Scripting Vulnerability (order, sort)"

    Relevant Pages

    • [NT] Ipswitch Multiple Vulnerabilities (IMail IMAP LIST Command DoS, Collaboration Suite SMTP Format
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Ipswitch Multiple Vulnerabilities (IMail IMAP LIST Command DoS, ... Collaboration Suite SMTP Format String) ... Remote exploitation of a denial of service vulnerability in Ipswitch ...
      (Securiteam)
    • [UNIX] TikiWiki PHP Code Evaluation 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 ... TikiWiki PHP Code Evaluation Vulnerability ... ' - String delimiter ...
      (Securiteam)
    • [UNIX] MySQL Authentication Scheme Bypass
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... By submitting a carefully crafted authentication packet, ... the user has specified a 'scrambled' string that is as long ... stack-based buffer 'buff' can be overflowed by a long 'scramble' string. ...
      (Securiteam)
    • [NT] WebArchiveX Unsafe Methods 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 ... String userAgent, ... scripting' entry, but unfortunately has not changed the version number. ...
      (Securiteam)
    • [NT] ListBox and ComboBox Control Buffer Overflow (Technical Details)
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Pointer to the null-terminated string that ... After sending a message with a large pathname will cause an exception ...
      (Securiteam)