Re: Apache Exploit

From: Stefan Esser (sesser@php.net)
Date: 06/20/02


Date: Thu, 20 Jun 2002 18:26:30 +0200
From: Stefan Esser <sesser@php.net>
To: 3APA3A <3APA3A@SECURITY.NNOV.RU>

On Thu, Jun 20, 2002 at 08:12:54PM +0400, 3APA3A wrote:
>
> Do not say bsd. At least FreeBSD doesn't use supplied parameters in main
> loop. It copies supplied parameters to register variables
>
> register char *dst = dst0;
> register const char *src = src0;
> register size_t t;
>
> before starting this loop and never back to original values. It makes it
> impossible to exploit this vulnerability in a way you described.

Sorry, but the code was directly taken from FreeBSD cvs. You can look as
long you want into the generic bcopy.c file. For x86 you must look at the
assembler implementation. And this is what runs on x86. Beside that I
tested this on FreeBSD and it worked like a charm.

Stefan Esser - e-matters Security

>



Relevant Pages

  • Re: Intel/Mac
    ... was originally developed on x86 boxes, ... I believe my exact words were "It would be stupid for Apple not to be maintaining x86 versions of OS X, it's just too easy to let the opportunity disappear." ... Isn't it more correct that OS X's origins are largely based on NextStep, which was a hybrid from the Carnagie Mellon Mach project and 4.4BSD, and NOT FreeBSD. ...
    (comp.sys.mac.advocacy)
  • Re: AMD64
    ... That is a phenomenon that I did not see with FreeBSD 6.x x86. ... the reliable x86 or try the AMD64 port. ...
    (freebsd-questions)
  • Re: AMD64 vs i386 for FreeBSD
    ... with some minor nits compared to x86 version. ... >> FreeBSD, ... >> booting an OS. ... To unsubscribe, ...
    (freebsd-current)
  • Contributor/Developer
    ... Since FreeBSD 3 I have been an active student/user/hacker on my own x86 ... FreeBSD as a path to learn *NIX style operating systems as well as the c ... I would like to become a contributor/developer for FreeBSD. ... My previous contributions have included development work for JRun 3 & ...
    (freebsd-questions)
  • RE: AMD64 vs i386 for FreeBSD
    ... > toward the 1.7GHz Centrino, but I hear a lot of problems with FreeBSD ... with some minor nits compared to x86 version. ... I think they meant you can't switch from amd64 to x86 after ...
    (freebsd-questions)

Loading