Safe PHP a Contradiction in Terms
18-05-2005, 22:22
|
#1
|
|
Inactive
Join Date: Oct 2003
Location: 2nd CPU to the right & past the cache
Posts: 1,949
|
Safe PHP a Contradiction in Terms
Whilst browsing I came across this recent article.
I wonder what the PHP users of this forum think ?
Safe PHP a Contradiction in Terms ?
http://www.viruslist.com/en/weblog?d...40463&return=1
|
|
|
18-05-2005, 22:38
|
#2
|
|
Dr Pepper Addict
Cable Forum Admin
Join Date: Oct 2003
Location: Nottingham
Age: 63
Services: Zen & YouFibre FTTP, Sky Q TV, Sky Mobile, Flextel SIP
Posts: 31,330
|
Re: Safe PHP a Contradiction in Terms
So, the programmer who wrote the script made it include any file in the supplied parameter (local or remote) and hence execute it - basically allowing anyone to run anything on the server  - anyone who does such a stupid thing should never be allowed near code near again.
__________________
Baby, I was born this way.
|
|
|
18-05-2005, 23:02
|
#3
|
|
Inactive
Join Date: Jul 2003
Location: Poole, Dorset
Age: 41
Services: FreeSat+
Tivo
V-Box
VM 60MBit
Posts: 13,365
|
Re: Safe PHP a Contradiction in Terms
What an idiot... Almost as bad as
PHP Code:
<?php system($_GET["command"]); ?>
or something along those lines
|
|
|
18-05-2005, 23:37
|
#4
|
|
Inactive
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 47
Posts: 6,343
|
Re: Safe PHP a Contradiction in Terms
What a load of BS.
ASP is more dangerous IMO (and in my experience) because "it just works" - just like those wireless routers that you can buy in the shops with the least secure settings already preset.
A proper programmer would know how to secure it.
That article is totally redundant.
|
|
|
18-05-2005, 23:42
|
#5
|
|
-
Join Date: Jun 2003
Location: Somewhere
Services: Virgin for TV and Internet, BT for phone
Posts: 26,546
|
Re: Safe PHP a Contradiction in Terms
Just goes to show that ANY language can be dangerous..
|
|
|
18-05-2005, 23:59
|
#6
|
|
Inactive
Join Date: Oct 2003
Location: 2nd CPU to the right & past the cache
Posts: 1,949
|
Re: Safe PHP a Contradiction in Terms
I guess you lot pass the test then.
The comments above are more or less what I expected,and mirror my own point of view that it was careless/negligent programming that resulted in the hack.
|
|
|
19-05-2005, 08:28
|
#7
|
|
Inactive
Join Date: Oct 2003
Location: Portsmouth
Age: 48
Posts: 1,689
|
Re: Safe PHP a Contradiction in Terms
Any language is as dangereous it just depends on who codes it. ASP can be secure php can be secure if the coder does not know how to do this then its poor programming... IMHO
|
|
|
19-05-2005, 08:48
|
#8
|
|
Inactive
Join Date: Jul 2003
Posts: 1,395
|
Re: Safe PHP a Contradiction in Terms
Quote:
|
Originally Posted by Zeph
What an idiot... Almost as bad as
PHP Code:
<?php
system($_GET["command"]);
?>
or something along those lines
|
That's not bad per se because it can be an easy way for remote admin of a machine, it's just if you do use it you need to be sure of securing it.
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 16:51.
|