top button
Flag Notify
Site Registration

What is major security hole in PHP and how can we avoid them?

+1 vote
323 views
What is major security hole in PHP and how can we avoid them?
posted May 8, 2014 by Sachin Dahda

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes
  1. Never include,open a file with filename based on user input, without checking it thoroughly.
    2.Be careful while using register_globals=ON. It is designed to make programming in PHP easier, but misuse of it often led to security holes.
  2. Never use un-escaped queries.
  3. For protected areas, use sessions or validate the login every single time.
  4. If you dont want the file contents to be seen,give the file a .php extension.
answer May 9, 2014 by Mohit Sharma
Similar Questions
...