php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16108 Vulnerability on function ` `
Submitted: 2002-03-15 16:38 UTC Modified: 2002-03-15 17:40 UTC
From: leandro at metalnave dot com dot br Assigned:
Status: Not a bug Package: *Web Server problem
PHP Version: 4.1.2 OS: *unix
Private report: No CVE-ID: None
 [2002-03-15 16:38 UTC] leandro at metalnave dot com dot br
 Hi! My name is Leandro, and I've been doing some PHP tests
as I could.
 The problem is: When I execute the command ``, I'm able to
do any shell command that the HTTP user has right. Ok!
 Everybody know.

 But I could copy the /etc/passwd and I did other things like:
 cp, mv, rm, mkdir, cat, netstat, ps...

 Well, as you can see, I'm able to know as much things as 
I want, like: which plataform, software, local network,
aliases, sendmail conf, apache conf, bind, copy the *.PHP,
 *.JSP, *.ASP ... files and the server won't interprete it "I can copy their code", run software puted in the
server by me, ...

eg. echo (`cat /etc/passwd`);
    echo (`ps ax`);
    echo (`netstat -an`);
    `cp /etc/named.conf /my/web/dir/named.conf?;
    `cp /your/web/dir/addcart.php /my/web/dir`;
    echo (`cat /your/web/dir/login.php /my/web/dir`);

 Well, how seen before, I'm able to know what I want about
the server I am in.

 I think it's a terrible problem. I'm horried abault it.

 Best regards.
 Leandro Sousa de Carvalho
 web developer - RJ - Brazil

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-15 17:40 UTC] jflemer@php.net
This is not a bug. Please double-check the documentation available
at http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC