Re: DoS in PureFTPd

From: Jedi/Sector One (j_at_pureftpd.org)
Date: 11/10/03

  • Next message: Secure Net Service(SNS) Security Advisory: "[SNS Advisory No.69] Eudora "Reply-To-All" Buffer Overflow Vulnerability"
    Date: Mon, 10 Nov 2003 19:31:34 +0100
    To: bugtraq@securityfocus.com
    
    

    On Mon, Nov 10, 2003 at 04:35:06PM +0100, Adam Zabrocki wrote:
              sizeof_resolved_path = MAXPATHLEN + 1U;
              if ((resolved_path = malloc(sizeof_resolved_path)) == NULL) { ... }
              resolved_path[sizeof_resolved_path - 1U] = 0;
    > if (realpath(name, resolved_path) == NULL) { ... }
    > if (resolved_path[sizeof_resolved_path - 1U] != 0) {
    > for (;;) {
    > *resolved_path++ = 0;
    > }
    > }

      realpath() is supposed to return a result that fits in MAXPATHLEN
    (including the zero) or ENAMETOOLONG.

      The code you are pointing out is supposed to never be executed. It it ever
    was, it would kill the user's own session, not DoS anyone else.

    > Function realpath() is write by autor PureFTP.

      No, it is from OpenBSD, credits are at the right place.
      
    /*
     * Copyright (c) 1994
     * The Regents of the University of California. All rights reserved.
     *
     * This code is derived from software contributed to Berkeley by
     * Jan-Simon Pendry.
     *
     ...
          

    -- 
     __  /*-      Frank DENIS (Jedi/Sector One) <j@42-Networks.Com>     -*\  __
     \ '/     Secure FTP Server     \' /
      \/   Misc. free software   \/
    

  • Next message: Secure Net Service(SNS) Security Advisory: "[SNS Advisory No.69] Eudora "Reply-To-All" Buffer Overflow Vulnerability"

    Relevant Pages

    • Re: [Full-Disclosure] DoS in PureFTPd
      ... realpathis supposed to return a result that fits in MAXPATHLEN ... (including the zero) ... or ENAMETOOLONG. ... The code you are pointing out is supposed to never be executed. ...
      (Full-Disclosure)
    • Re: Boasting
      ... When you defend yourself from his trolls by pointing out with a wink ... and a grin that you could divide his IQ into yours and obtain an ... Zero is an integer, fuckwit. ... Most normal people are boring to begin with but after you peel away ...
      (misc.writing)
    • Re: Tom Roberts, M-Max, Hobba
      ... As I said in another post it is the demand of 'no zero velocity frame' that ... in pointing out that the late reduction to Newtonian-Galilean is obvious ... because Bis zero by theory, ... Well, keep up the unnecessary assholery, wouldn't want you to change on ...
      (sci.physics.relativity)
    • Re: The Usual Heinlein Thing
      ... Zero. ... Nada. ... people to pointing out how little sense you're making, ...
      (rec.arts.sf.written)
    • Re: XF86Config or xf86config
      ... > I only get a lot og meaningless signs. ... I'm not sure whether there is a 'one size fits all' answer to this ... In the long run the sheer physical inability of humans to keep up with these rapidly evolving progeny of our minds will ensure that the ratio of people to machines approaches zero, and that a direct descendant of our culture, but not our genes, inherits the universe." ...
      (alt.os.linux)

  • Quantcast