
Website:
University Teknikal Malaysia Melaka.
URL: http://www.utem.edu.my/proxytest.pac
Ever since the introduction of the
new namespace character for PHP a few months back (which in my limited programming experience, is anti-programming and counter-intuitive), I've made a conscious decision to dump PHP and focus on
Python*. The various inconsistencies in PHP, either in its design, architecture, or even its philosophy, has contributed a lot of bad codes, and one prime example is in the screenshot above.
Here's the truth: writing secure code is hard. Here's a complimentary fact: writing secure code is expensive. PHP has made writing code faster and cheaper, and unfortunately, less secure. New iterations of PHP, instead of focusing on security, aims to make writing codes, especially to beginners, more confusing. Just take the namespace character - more bad codes to come. Interestingly Microsoft .NET (starting with version 2) does the opposite - it attempts to make writing code easier and more secure without trying to impose secure coding practices on the programmer.
However, the fault does not lie on PHP alone. There are a few things that can be done to prevent hacks like above.
1. Secure the PHP installation - apply the Suhosin patch, set open_basedir restriction, etc etc
2. Secure the web server - run the webserver inside jails (or chroot), install mod_security
3. Practice secure coding
No 1 and 2 are cheap. You can pelt this at your system administrators as many times you like. No 3, no matter how much investment you make (training, verbal abuse, top money for experienced programmers, etc) does not guarantee that your website will not get hacked.
* I am not claiming Python is more secure, but I believe a cleaner and clear code construct will contribute, or at least make writing secure code easier.
DISCLAIMER: All the information related to computer crimes (i.e. defacements) contained in security.org.my were either collected online from public sources or directly notified to us. Security.org.my is neither responsible for the reported computer crimes nor it is directly or indirectly involved in them.