Jump to content

[SOLVED] PHP Security Testing - Advice needed (please)


s1yman

Recommended Posts

Hi all, hope you are well.

 

I've heard a lot about php script in web pages being "vulnerable" and since I haven't learnt anything about php security I was wondering if anyone knows any free software or websites where I can scan my pages for potential holes and/or vulnerabilities?

 

Thanks in advance,

 

-Simon

Link to comment
Share on other sites

Basically, as a rule of thumb -

  • Escape everything used in a query with mysql_real_escape_string()
  • Escape all user input for html characters
  • Turn off remote file inclusion in php.ini
  • Do not rely on magic quotes
  • Turn of register globals in php.ini

 

I think that's pretty much it, combined with a teaspoon of common sense.

Link to comment
Share on other sites

Firefox addons!

XSS me, SQL inject me. Stuff like that.

 

These are looking for forms, is it only scripts that process forms I need to worry about. Or is it all my scripts?

 

every language used can be insecure - its not inherent to that language - its the quality of te code written that is invariably insecure.

 

Yeah, I know someone didn't just turn around one day and go "let's pick on PHP!!!" As I said, I don't know much about PHP Security, so don't understand what would make a script secure or insecure?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.