Re: php-gtk and viruses

From: Date: Wed, 02 May 2001 18:10:55 +0000
Subject: Re: php-gtk and viruses
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1592@lists.php.net to get a copy of this message
Hi Adrian, You're right, there's a danger involved in using PHP-GKT applications. The I-love-you virus was a scripting virus (VBscript), which is pretty identical to your php-virus description. But, I think you completely overestimate the danger of such a script written in PHP. Executing a PHP-GTK script might be easy, but installing PHP-GTK isn't! It's not that easy as downloading a file and executing setup. And if a particular person is infected with such a virus, the virus will send itself to everybody in the address book, but almost nobody who's listed in the address book will have PHP-GTK properly installed. The virus will 'die' because it can't spread out like the I-love-you virus did. The big difference is that VB-script is installed along with Internet Explorer, and PHP isn't. You are right that (client-side) applications in php can be easily rewritten to do damage to a pc. There's no way to prevent that. A checksum only works if it's installed along with PHP or the PHP-GTK extension. I have no idea how PHP can check whether a script is unchanged or not. You don't have any reference, and passing serial numbers along is simply to long-winded. The danger is not very big. If I create an application in Delphi or Visual Basic and I tell you that it is the checksum-application you asked for, I'm sure that the first thing you do is opening that application, although you won't know for sure whether I created a simple virus or I really created a checksum app. You simply have to trust me and try it out. The only difference is that with PHP you can check the source code, and with Delphi or VB you can't. So, stay calm. There's nothing to worry about... Sander ----- Original Message ----- From: <anet@webmedia.pl> To: <php-gtk@lists.php.net> Sent: Wednesday, May 02, 2001 7:33 PM Subject: [PHP-GTK] php-gtk and viruses > hi, > > i was thinking for a while, how to protect php-gtk scripts from > viruses. i mean, now, php-gtk/applications will be propably used > not only by developers (like it is now), who trace the code few > times before they run the program and use it under un*xes. They > could now be downloaded by thousands of endusers and run on > their Windows machines, using phpgtkFTP, phpgtkIRC etc.etc. :) > > it seems that easy replication-mechanism (find any *.php file and > copy yourrself to it), like the one, which was used in theoretical > viruses like php.newworld or pirus, could now be combined e.g. > with mailing virus body (using some pop3 routines) to all emails > found (eregi) in the bodies of emails kept in Outlook or Pegasus. > many people do not open .exe, but they might not catch, that > opening hotsex.phpg, after they installed phpgtk libs and > automatically linked .phpg with "php -u", is also dangerous. > > so - i was looking for the solution, and one sure way to protect the > script i found was something like control sum - check the length of > the phpg script, a try, whether it is correct every time the program > is started. but - the problem is, this shouldn't be done from the level > of .php script, as if the script is infected with described, potential > virus, it will run itself before the check-routine starts - and e.g. > unlink COMMAND.COM;). so - the solution could be to use an > external, non-php starter, which performs the test - but this partially > destroys the idea of cross-platform software... > > anybody has other ideas? > > pozdrawiam > > adrian > > ----- > "Perl - the only language that looks the same > before and after RSA encryption." > > -- > PHP GTK Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net > For additional commands, e-mail: php-gtk-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.gtk (#1592) next »