Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 03:55 AM
toufik toufik
Guest
 
Posts: n/a
Default security in PHP code

Hi,
I need information about the security in PHP code, I mean in the code itself
not in the setting because I'll put my code at a host.
In other words, I need the developper part of the security not the host
part.
can you please give me some hints, links,...
thanks.






  #2  
Old July 17th, 2005, 03:56 AM
auntie social
Guest
 
Posts: n/a
Default Re: security in PHP code

On Tue, 3 Feb 2004 17:53:09 -0500, "toufik toufik"
<toufiki@sympatico.ca> wrote:
[color=blue]
>Hi,
>I need information about the security in PHP code, I mean in the code itself
>not in the setting because I'll put my code at a host.
>In other words, I need the developper part of the security not the host
>part.
>can you please give me some hints, links,...
>thanks.
>
>[/color]

PHP security is an extremely broad topic, so it's difficult to answer
your question directly.

The biggest rule of thumb is NEVER trust information coming from a
client. Check and re-check all input, use pattern matching to strip
out characters that don't belong there, etc. Lack of input validation
is one of the biggest and most common developer mistakes out there.

Here are some more links:

Secure Programming in PHP
http://www.zend.com/zend/art/art-oertli.php


Writing Secure Scripts with PHP 4.2!
http://www.sitepoint.com/article/758


PHP Security, Part 1 and 2
http://www.onlamp.com/pub/a/php/2003...undations.html
http://www.onlamp.com/pub/a/php/2003...undations.html


Also, make yourself intimately familiar with the information on this
site. ;)

http://www.securityfocus.com/

This is where you can read up on past mistakes vendors have made
(Bugtraq/Vulnerabilities), and also several security-related articles
on a variety of topics like XSS, SQL injection, etc.
(Library/Infocus).

Hope that helps get you started anyway...

  #3  
Old July 17th, 2005, 03:56 AM
Chung Leong
Guest
 
Posts: n/a
Default Re: security in PHP code

Or if what's coming from the client is a number, cast it into an integer.

Uzytkownik "auntie social" <no@thanks.sucker> napisal w wiadomosci
news:amg020t0u4907irp6qlkbtlf4hjd9q3m1m@4ax.com...[color=blue]
> On Tue, 3 Feb 2004 17:53:09 -0500, "toufik toufik"
> <toufiki@sympatico.ca> wrote:
> The biggest rule of thumb is NEVER trust information coming from a
> client. Check and re-check all input, use pattern matching to strip
> out characters that don't belong there, etc. Lack of input validation
> is one of the biggest and most common developer mistakes out there.[/color]


  #4  
Old July 17th, 2005, 03:56 AM
toufik toufik
Guest
 
Posts: n/a
Default Re: security in PHP code

Thanks a lot

"toufik toufik" <toufiki@sympatico.ca> wrote in message
news:nDVTb.13131$9U5.602472@news20.bellglobal.com. ..[color=blue]
> Hi,
> I need information about the security in PHP code, I mean in the code[/color]
itself[color=blue]
> not in the setting because I'll put my code at a host.
> In other words, I need the developper part of the security not the host
> part.
> can you please give me some hints, links,...
> thanks.
>
>
>[/color]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,414 network members.