Jump to content

Recommended Posts

hello everyone,

 

I am really keen to know about some security breaches. I have a website and i want it to be as highly secured as possible. Hence, i want to read about code injection and other forms of security threats to my site. by the way what are some of the security threats to a given website?

 

 

Link to comment
https://forums.phpfreaks.com/topic/67112-where-can-i-find-this/
Share on other sites

Two most important things:

1. Keep your server up to date

2. Always Validate input

 

Do a google search on the following topics:

1. SQL Injection

2. XSS (Cross-site Scripting)

3. CSRF (Cross-site Request Forging)

4. Capta (Image validation text)

5. Directory Transversal (Always check if your using dir names that .. or absolte paths are not possible)

6. NULL Byte attacks (If you use posix regex or any other things which are vulnerable)

 

Also a few recommendations, for extra security

1. Store sessions somewhere else not the default area if your using a shared server

2. Use HTTPS

3. Dont store passwords in plain text, store as an md5 hash with extra values concat'd to make it hard to brute force just incase someone gets in

4. Learn to use .htaccess and Deny from All, and Allow from All. This will allow to block include files which shouldnt be visible

5. Always ensure you have default value (an easy way to check is error_reporting(E_ALL))

6. Never rely on magic_quotes and register_globals

Link to comment
https://forums.phpfreaks.com/topic/67112-where-can-i-find-this/#findComment-336677
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.