» tagged pages
» logout

(Feed found, click Add Page to syndicate.) Error finding feed, please try again » Find feed title

A Blog Page allows you to add entries, for news or other time sensitive postings

(Login required to save to your tagged pages.)
(or Cancel)

Recent Edits

editing undone by 125.22.172.95

Broken Access Control

April 23, 2007

It’s better to use access control solutions that are tested for a variety of deficiencies (PEAR modules)

Undo this change because:

Documentation

September 19, 2006
php

this is the PHP documentation blog

Undo this change because:
edit by alex

Documentation

June 23, 2006
php
created by alex

Easter Egg

January 8, 2006
The entry was created.
PHP easteregg
http://
Easter Egg

Append '?=PHPE9568F36-D428-11d2-A769-00AA001ACF42' to php pages and you will see a picture of a dog.

"Example":http://swik.net/User:alex?=PHPE9568F36-D428-11d2-A769-00AA001ACF42...

» complete change

Append '?=PHPE9568F36-D428-11d2-A769-00AA001ACF42' to php pages and you will see a picture of a dog.

"Example":http://swik.net/User:alex?=PHPE9568F36-D428-11d2-A769-00AA001ACF42

Undo this change because:
edit by swikilicious

PHP Security Blunders (December 05)

December 21, 2005
http:// http://www.sitepoint.com/article/php-security-blunders

"Here":http://www.sitepoint.com/article/php-security-blunders

Undo this change because:
edit by swikilicious

PHP Security Blunders (December 05)

December 21, 2005
PHP security
http://www.sitepoint.com/article/php-security-blunders http://

http://www.sitepoint.com/article/php-security-blunders

created by swikilicious

PHP Security Blunders (December 05)

December 21, 2005
The entry was created.
PHP
http://
PHP Security Blunders (December 05)

http://www.sitepoint.com/article/php-security-blunders

Undo this change because:
edit by alex

Documentation

September 27, 2005
Blog Links
Undo this change because:
created by alex

XSS Attacks

June 27, 2005
The entry was created.
XSS Attacks
Undo this change because:
edit by alex

XSS Attacks

June 27, 2005
XSS Attacks

XSS attacks are manifold:

<a href="http://blog.phpdoc.info/archives/13-guid.html">Don't trust $PHP_SELF</a>

<a href="http://ha.ckers.org/xss.html">Stripping...

» complete change

XSS attacks are manifold:

<a href="http://blog.phpdoc.info/archives/13-guid.html">Don't trust $PHP_SELF</a>

<a href="http://ha.ckers.org/xss.html">Stripping XSS is difficult, there are many many attacks</a>

<a href="http://cyberai.com/inputfilter/'">PHP input filter</a> is a PHP script that attempts to address some XSS attacks.

edit by alex

Broken Access Control

June 27, 2005
Broken Access Control

It’s better to use access control solutions that are tested for a variety of deficiencies (PEAR modules)

created by alex

Broken Access Control

June 27, 2005
The entry was created.
Broken Access Control
Undo this change because:
edit by alex

Broken Account and Session Management

June 27, 2005
Broken Account and Session Management

It’s better to use built-in session management functions included in PHP for secure and standardized session management....

» complete change

It’s better to use built-in session management functions included in PHP for secure and standardized session management. Possible security problems might occur if the server is not configured well for storing session information.

A common situation is when session contents are stored in files readable by all users that have an account on the web server (the classical /tmp directory). It’s best to store sessions in a database or in a part of the file system where only trusted users have access.

Other security risk situations involve session IDs, and the fact that they can be discovered by sniffers. For this reason session-specific traffic should be sent over SSL connection. PHP doesn’t need special configuration but the web server does (Apache).

Undo this change because:
created by alex

Broken Account and Session Management

June 27, 2005
The entry was created.
Broken Account and Session Management
Undo this change because:
edit by alex

Invalidated Parameters

June 27, 2005
Invalidated Parameters

It is very important to turn off <strong>register_globals</strong> parameter. Although it should be turned off by default...

» complete change

It is very important to turn off <strong>register_globals</strong> parameter. Although it should be turned off by default (PHP version 4.2.0 and later) it must be checked anyway.

Before using values that an user submits through superglobal arrays such as $_GET, $_POST and $_COOKIE, they must be validated to make sure they don’t contain unexpected input.

In most cases the programmer knows what type of value is expecting so he can check if the input conforms. The easiest way to validate data is regular expressions.

If you want to transmit or receive private data (by hidden form), one way of doing this is to use hash functions. Hash a combination of a secret word (known only by the parts that are communicating) and the data to transmit and hash/rehash the result to verify the match.

Undo this change because:
created by alex

Invalidated Parameters

June 27, 2005
The entry was created.
Invalidated Parameters
Undo this change because:
created by alex

Web and Application Server Misconfiguration

June 27, 2005
The entry was created.
Web and Application Server Misconfiguration
Undo this change because:
edit by alex

Web and Application Server Misconfiguration

June 27, 2005
Web and Application Server Misconfiguration

Keeping up to date the PHP server with the latest patches and security problems is recommended. Also automatic PHP source...

» complete change

Keeping up to date the PHP server with the latest patches and security problems is recommended. Also automatic PHP source display handler (AddType application/x-httpd-php-source .phps) should be used carefully, since it lets users see the code of the scripts.

From the two php.ini files that come with the distribution, the site configuration should be built based on php.ini-recommended, instead of php.ini-dist.

created by alex

Insecure Use of Cryptography

June 27, 2005
The entry was created.
Insecure Use of Cryptography
Undo this change because:
edit by alex

Insecure Use of Cryptography

June 27, 2005
Insecure Use of Cryptography

It’s indicated not to develop cryptographic schemes, and let PHP and its mcrypt extension for a standardized interface ...

» complete change

It’s indicated not to develop cryptographic schemes, and let PHP and its mcrypt extension for a standardized interface to many popular encryption algorithms to handle this task.

However strong the algorithm used, the keys that it uses and their storage are the most important issues involved. It’s advisable to transmit keys over SSL.

edit by alex

Command Injection Flaws

June 27, 2005

Cross-site scripting occurs when the scripts display unfiltered information to a browser. Command injection occurs when passing...

» complete change

Cross-site scripting occurs when the scripts display unfiltered information to a browser. Command injection occurs when passing unfiltered, unescaped malicious commands to external applications or databases. So it’s advisable, in addition to input validations, to always escape user input before passing to other external processes or applications (databases).

Other problems occur when passing user input to a shell (exec(), system() commands). There are many operations that don’t need something else that PHP can’t do. If it’s absolutely necessary to filter the inputs using escapeshellcmd() for program names and arguments with escapeshellarg() (escapes any characters in a string that might be used to trick a shell command into executing arbitrary commands), and escapeshellcmd() (adds single quotes around a string and quotes/escapes any existing single quotes allowing you to pass a string directly to a shell function and having it be treated as a single safe argument).

Undo this change because:
edit by alex

Command Injection Flaws

June 27, 2005
Command Injection Flaws

Cross-site scripting occurs when the scripts display unfiltered information to a browser. Command injection occurs when passing...

» complete change

Cross-site scripting occurs when the scripts display unfiltered information to a browser. Command injection occurs when passing unfiltered, unescaped malicious commands to external applications or databases. So it’s advisable, in addition to input validations, to always escape user input before passing to other external processes or applications (databases). Other problems occur when passing user input to a shell (exec(), system() commands). There are many operations that don’t need something else that PHP can’t do. If it’s absolutely necessary to filter the inputs using escapeshellcmd() for program names and arguments with escapeshellarg() (escapes any characters in a string that might be used to trick a shell command into executing arbitrary commands), and escapeshellcmd() (adds single quotes around a string and quotes/escapes any existing single quotes allowing you to pass a string directly to a shell function and having it be treated as a single safe argument).

created by alex

Command Injection Flaws

June 27, 2005
The entry was created.
Command Injection Flaws
Undo this change because:
edit by alex

Buffer Overflow Prevention

June 27, 2005
Buffer Overflow Prevention

PHP, unlike C/C++ programming languages don’t offer memory allocation functions and pointers, so the programmer doesn’t...

» complete change

PHP, unlike C/C++ programming languages don’t offer memory allocation functions and pointers, so the programmer doesn’t have to deal with such problems. Problems might occur with buffer overflows in PHP itself, or within its extensions. Keeping contact with to developer community for the latest patches and new releases is the best thing to do.

Undo this change because:
created by alex

Buffer Overflow Prevention

June 27, 2005
The entry was created.
Buffer Overflow Prevention
Undo this change because:
edit by alex

Data Validation Using Sockets

June 21, 2005
validation php sockets
http://www.zend.com/zend/spotlight/php-link-validation4.php
Data Validation Using Sockets

with a full code sample

Undo this change because:
created by alex

Data Validation Using Sockets

June 21, 2005
The entry was created.
Data Validation Using Sockets
Undo this change because:
created by alex

Sockets and PHP

June 21, 2005
The entry was created.
Sockets and PHP
Undo this change because:
edit by alex

Sockets and PHP

June 21, 2005
http://www.devarticles.com/c/a/PHP/Sockets-and-PHP/
Sockets and PHP
created by alex

PHP: Socket Functions - Manual

June 21, 2005
The entry was created.
PHP: Socket Functions - Manual
Undo this change because:
edit by alex

PHP: Socket Functions - Manual

June 21, 2005
php sockets
http://uk.php.net/manual/en/ref.sockets.php
PHP: Socket Functions - Manual
created by alex

Socket Programming With PHP

June 21, 2005
The entry was created.
Socket Programming With PHP
Undo this change because:
edit by alex

Socket Programming With PHP

June 21, 2005
sockets php
http://www.devshed.com/c/a/PHP/Socket-Programming-With-PHP/
Socket Programming With PHP
edit by alex

PHP + SQLite

June 16, 2005
http://www.zend.com/manual/ref.sqlite.php
PHP + SQLite

Using PHP With SQLite

Undo this change because:
created by alex

PHP + SQLite

June 16, 2005
The entry was created.
PHP + SQLite
Undo this change because:
edit by alex

Using CURL to POST to a URL

June 11, 2005

curl_setopt($ci, CURLOPT_POSTFIELDS, $postvars);<br> $postfields);<br>

» complete change

$postvars = array();<br>

$postvars['a'] = urlencode('valueofa');<br>

$ci = curl_init();

curl_setopt($ci, CURLOPT_FOLLOWLOCATION, 1);<br>

curl_setopt($ci, CURLOPT_URL, 'http://www.url.com/page.php');<br>

curl_setopt($ci, CURLOPT_RETURNTRANSFER, 1);<br>

curl_setopt($ci, CURLOPT_POST, 1);<br>

curl_setopt($ci, CURLOPT_POSTFIELDS, $postvars);<br> $postfields);<br>

$returnedPage = curl_exec($ci);<br>

curl_close($ci);<br>

echo $returnedPage;<br>

Undo this change because:
edit by alex

Using CURL to POST to a URL

June 11, 2005

<pre>

$postvars = array();<br> array();

$postvars['a'] = urlencode('valueofa');<br> urlencode('valueofa');

curl_setopt($ci, CURLOPT_FOLLOWLOCATION,...

» complete change

<pre>

$postvars = array();<br> array();

$postvars['a'] = urlencode('valueofa');<br> urlencode('valueofa');

$ci = curl_init();

curl_setopt($ci, CURLOPT_FOLLOWLOCATION, 1);<br> 1);

curl_setopt($ci, CURLOPT_URL, 'http://www.url.com/page.php');<br> 'http://www.url.com/page.php');

curl_setopt($ci, CURLOPT_RETURNTRANSFER, 1);<br> 1);

curl_setopt($ci, CURLOPT_POST, 1);<br> 1);

curl_setopt($ci, CURLOPT_POSTFIELDS, $postfields);<br> $postfields);

$returnedPage = curl_exec($ci);<br> curl_exec($ci);

curl_close($ci);<br> curl_close($ci);

echo $returnedPage;<br> $returnedPage;

</pre>

edit by alex

Using CURL to POST to a URL

June 11, 2005

$postvars = array();

$postvars['a'] = urlencode('valueofa');

$ci = curl_init();

curl_setopt($ci, CURLOPT_FOLLOWLOCATION, 1);...

» complete change

<pre>

$postvars = array();

$postvars['a'] = urlencode('valueofa');

$ci = curl_init();

curl_setopt($ci, CURLOPT_FOLLOWLOCATION, 1);

curl_setopt($ci, CURLOPT_URL, 'http://www.url.com/page.php');

curl_setopt($ci, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ci, CURLOPT_POST, 1);

curl_setopt($ci, CURLOPT_POSTFIELDS, $postfields);

$returnedPage = curl_exec($ci);

curl_close($ci);

echo $returnedPage;

</pre>

edit by alex

Using CURL to POST to a URL

June 11, 2005
Using CURL to POST to a URL

<pre>

</pre>

created by alex

Using CURL to POST to a URL

June 11, 2005
The entry was created.
Using CURL to POST to a URL
Undo this change because:
edit by alex

Regular Expressions in PHP

June 11, 2005

A useful resource for testing regular expressions is <a href="http://regexlib.com/RETester.aspx">http://regexlib.com/RETester.aspx</a>...

» complete change

PHP has different regular expression functions for different regular expression schemas: ereg for posix and preg for perl regex.

preg requires the PCRE library. See <a href="http://www.perl.com/doc/manual/html/pod/perlre.html">more about Perl regular expressions</a>.

ereg doesn't require any libraries. See <a href="http://us2.php.net/manual/en/ref.regex.php">more details about PHP POSIX regex</a>

A useful resource for testing regular expressions is <a href="http://regexlib.com/RETester.aspx">http://regexlib.com/RETester.aspx</a>

Undo this change because:
edit by alex

Regular Expressions in PHP

June 11, 2005
Regular Expressions in PHP

PHP has different regular expression functions for different regular expression schemas: ereg for posix and preg for perl...

» complete change

PHP has different regular expression functions for different regular expression schemas: ereg for posix and preg for perl regex.

preg requires the PCRE library. See <a href="http://www.perl.com/doc/manual/html/pod/perlre.html">more about Perl regular expressions</a>.

ereg doesn't require any libraries. See <a href="http://us2.php.net/manual/en/ref.regex.php">more details about PHP POSIX regex</a>

created by alex

Regular Expressions in PHP

June 11, 2005
The entry was created.
Regular Expressions in PHP
Undo this change because:
edit by marc

Official PHP.net FAQ

June 1, 2005
PHP FAQ
http://us2.php.net/FAQ.php
Official PHP.net FAQ

This FAQ comes directly from the horse's mouth on the PHP.net web site. It covers some of the most common problems faced ...

» complete change

This FAQ comes directly from the horse's mouth on the PHP.net web site. It covers some of the most common problems faced by users, including installation, using databases, and migration from one version of PHP to the next.

Undo this change because:
created by marc

Official PHP.net FAQ

June 1, 2005
The entry was created.
Official PHP.net FAQ
Undo this change because:
edit by alex

PHP Security Guide

May 31, 2005
http://phpsec.org/projects/guide/
PHP Security Guide

A detailed manual on PHP security

Undo this change because:
created by alex

PHP Security Guide

May 31, 2005
The entry was created.
PHP Security Guide
Undo this change because:
edit by 192.168.0.4

Migrating from PHP 4 to PHP 5

May 19, 2005
http://us2.php.net/manual/en/faq.migration5.php
Migrating from PHP 4 to PHP 5

" Although PHP 5 offers many new features, it's designed to be as compatible with earlier versions of PHP as possible with...

» complete change

" Although PHP 5 offers many new features, it's designed to be as compatible with earlier versions of PHP as possible with little functionality being broken in the process."

Undo this change because:
created by 192.168.0.4

Migrating from PHP 4 to PHP 5

May 19, 2005
The entry was created.
Migrating from PHP 4 to PHP 5
Undo this change because:
created by 192.168.0.117

Documentation

May 13, 2005
The page was created.
Documentation
Undo this change because: