Re: php-gtk and viruses
| From: | mike boucher | Date: | Wed, 02 May 2001 18:42:58 +0000 |
| Subject: | Re: php-gtk and viruses | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-1594@lists.php.net to get a copy of this message | ||
I agree with Sander on the fact that a virus of "I-love-you" type would be
dead in the water soon after launch if the GTK app requires that PHP be
installed on the client machine. However, I think I recall reading somewhere
that there is a program that "compiles" GTK with php.exe so that it runs as
a true stand-alone. Can't remember where I saw this at or if it is even
true. Might have been on this list, might not. I would expect that anybody
taking the time to develop a virus using GTK would use this to create an
executable which would then have the potential to spread to computers where
GTK wasn't installed (unless I'm missing something). That brings in another
point made by Sander is that .exe files tend to throw flags in people when
they receive them.
My thought is that a PHP script could be written to parse the source code of
any GTK application looking for potential threats and return the results of
the finds. Be faster and easier than going through the scripts by hand,
which might still be necessary. I'm not sure. Personally I still think that
having to comb through the code, although time consuming and not much fun,
would be far easier than developing the app from scratch.
I think the old rules still apply to this. Don't download and execute files
sent by people you don't know, use a little common sense, and in the age of
"I-love-you" don't execute a file sent to you by somebody you do know
without asking them what it is and does.
I'm still new to the whole GTK thing and fairly new to PHP as a whole so
that is my two cents, or maybe it was just a penny. = )
--
mike boucher
Director of Creative & IT Services
AMPmedia
New Media Solutions . . .
. . . for a New Millenium
Phone: 919.361.3696
FAX: 1-909-752-8715
http://ampmedia.net
mboucher@ampmedia.net
> From: "Sander" <php@sandingmachine.f2s.com>
> Date: Wed, 2 May 2001 20:10:55 +0200
> To: <php-gtk@lists.php.net>
> Subject: Re: [PHP-GTK] php-gtk and viruses
>
> 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
>>
>
>
> --
> 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
>
>