pWins Perl Web Server Directory Transversal Vulnerability

From: Matthew Wagenknecht (mattwagenknecht@hotmail.com)
Date: 11/28/02

  • Next message: Paul Szabo: "Re: d_path() truncating excessive long path name vulnerability"
    From: "Matthew Wagenknecht" <mattwagenknecht@hotmail.com>
    To: news@securiteam.com, vulnwatch@vulnwatch.org, bugtraq@securityfocus.com
    Date: Wed, 27 Nov 2002 16:49:19 -0700
    
    

    From www.sourceforge.net/projects/pwins: "pWins is a webserver-software
    based on perl and ruby (not yet) code. My aim is to make it fast, small and
    secure, supporting cgi (perl, ruby) and php scripts. It's easy to install
    and configurate!"

    versions: 0.2.5 and earlier, tested on Windows only..

    description:
    pWins allows directory transversal via unicode characters (%255, you know,
    nimda stuff).. If it's installed on the c drive, you can get to any file
    (ahem.. sam._) easily.. for example,
    http://SomeWebServer/../../windows/repair/sam._

    no exploit provided because too trivial..

    fix:
    author has posted a patch in the Bugs section on sourceforge.net, but I've
    found that it breaks script processing because he forgot to escape the
    special characters (%)in his regular expressions.. line 247 of cgipl.pm (i
    think) search for url_check

    or wait for version 0.2.8 due to be out soon..

    Matt Wagenknecht
    Security Administrator

    _________________________________________________________________
    The new MSN 8: smart spam protection and 2 months FREE*
    http://join.msn.com/?page=features/junkmail



    Relevant Pages

    • pWins Perl Web Server Directory Transversal Vulnerability
      ... From www.sourceforge.net/projects/pwins: "pWins is a webserver-software ... secure, supporting cgi (perl, ruby) and php scripts. ... It's easy to install ...
      (Bugtraq)
    • Re: Minimum ruby installation.
      ... I'm a damn stupid newbie about RUBY. ... During the course of installing Perl from source, an entity called "Mini Perl" is generated. ... miniperl is used to bootstrap the install and is, I think, still resident on your system when the full Perl install has completed. ... As far as I know, there is no "Micro Ruby" project, although I think it's a great idea for someone who's into such things. ...
      (comp.lang.ruby)
    • Re: Cs gotoxy() equivalent in Perl
      ... Curses as its not available in perl version I am using. ... Maybe one way to get what you want is to install Ruby and borrow the ... I frankly don't know a curse from a gem or a rake, but since Ruby was ...
      (comp.lang.perl.misc)
    • Re: How to change certain field separated by comma
      ... > I have also tried the RUBY stuff in my cygwin and it worked. ... When Ruby appeared, Perl was there, and it worked. ... install) *correctly* with a single command that was the same ... I don't know why python got so much wind in its sails. ...
      (comp.unix.solaris)
    • Re: How to change certain field separated by comma
      ... > I have also tried the RUBY stuff in my cygwin and it worked. ... When Ruby appeared, Perl was there, and it worked. ... install) *correctly* with a single command that was the same ... I don't know why python got so much wind in its sails. ...
      (comp.unix.shell)