Archive for the ‘Security’ Category

PHP 5.3 and Delayed Cross Site Request Forgeries/Hijacking

Wednesday, October 1st, 2008

Although PHP 5.3 is still in alpha stage and certain features like the PHAR extension or the whole namespace support are still topics of endless discussions it already contains smaller changes that could improve the security of PHP applications a lot. One of these small changes is the introduction of a ...

Slides from my Lesser Known Security Problems in PHP Applications Talk at ZendCon

Thursday, September 18th, 2008

Here are the slides of my ZendCon talk about Lesser Known Security Problems in PHP Applications. (PDF) Lesser Known Security Problems in PHP Applications

Speaking at PHP Fest 2008

Monday, September 15th, 2008

The PHP Korea usergroup has organised an improvised PHP mini-conference and coding session called PHP Fest 2008, which will take place at the end of september in Seoul. The mini-conference is not only sponsored by Microsoft Korea but also takes place in the POSCO building in rooms owned by Microsoft ...

Suhosin - Picture - Logo?

Thursday, September 4th, 2008

The first questions regarding Suhosin are where the name comes from and what it actually means. I usually explain that Suhosin is similar to a guardian angel. Some ghost or god protecting a village from dark ghosts. Yesterday I was able to take this picture of two of the guardian ghosts ...

Suhosin 0.9.26 - Improved Randomness

Friday, August 22nd, 2008

I just released Suhosin 0.9.26 which among bugfixes contains new features. The full changelog is Fixed problem with suhosin.perdir Thanks to Hosteurope for tracking this down Fixed problems with ext/uploadprogress Reported by: Christian Stocker Added suhosin.srand.ignore and suhosin.mt_srand.ignore (default: on) Modified rand()/srand() to use the Mersenne Twister algorithm with separate state Added better internal seeding of rand() ...

Webinar “Bau sicherer LAMP Anwendungen”

Thursday, August 21st, 2008

Last week I gave my first webinar for MySQL titled "Bau sicherer LAMP Anwendungen". The webinar, which was a cooperation between MySQL and my company SektionEins, was held in german, covered SQL-Malware, SQL-Injection, safe programming and some tools to detect and block SQL-Injection attacks. The recording of this webinar is now ...

MySQL and SQL Column Truncation Vulnerabilities

Monday, August 18th, 2008

While SQL-Injection is one of the most discussed security problems in web applications other possible problems for SQL queries like overlong input are usually ignored although they can lead to all kinds of security problems. This might be caused by the fact that security problems that are the result of overlong ...

mt_srand and not so random numbers

Sunday, August 17th, 2008

PHP comes with two random number generators named rand() and mt_rand(). The first is just a wrapper around the libc rand() function and the second one is an implementation of the Mersenne Twister pseudo random number generator. Both of these algorithms are seeded by a single 32 bit dword when ...

MySQL-Proxy learning to block SQL-Injection

Friday, August 15th, 2008

I previously reported about my joy with MySQL-Proxy and a simple SQL-Injection detection based on a simple heuristic. Today I present the more interesting approach that I promised to publish after my webinar yesterday. This approach is based on the idea that SQL queries issued by an application always have a ...

PHP 4 - Requiescat In Pace

Friday, August 8th, 2008

Since last night PHP 4 is finally dead... Is it? Well not really, because there are still millions of servers running PHP 4 that haven't upgraded to the faster, more stable and more secure PHP 5 and most of them will continue to use it. So PHP 4 will still be around ...