+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: What are the top 10 common security risk of a new site? What are the countermeasures?

  1. #1
    magsasaka00193 is offline x10Hosting Member magsasaka00193 is an unknown quantity at this point
    Join Date
    Jan 2011
    Location
    Proxy World
    Posts
    11

    What are the top 10 common security risk of a new site? What are the countermeasures?

    What are they, and how can I avoid or counter those things? Can you give this newbie some tips on how to make sure that my site is safe? For example, how can I protect my MySQL database?

  2. #2
    MaestroFX1's Avatar
    MaestroFX1 is offline Community Advocate MaestroFX1 has a spectacular aura about
    Join Date
    Feb 2008
    Location
    Area 51
    Posts
    1,577

    Re: What are the top 10 common security risk of a new site? What are the countermeasu

    First that comes to my mind is SQL injection attacks.
    These can allow hackers to execute arbitrary SQL commands on your database through your Web site.

    To avoid this type of attacks, every piece of data supplied by a user on a Web form( like in your case chat boxes )must be sanitized/validated so that they do not contain information that is not expected.

    You can use php scripts to sanitize, so that data that gets into database is free from attacking statements.

  3. #3
    magsasaka00193 is offline x10Hosting Member magsasaka00193 is an unknown quantity at this point
    Join Date
    Jan 2011
    Location
    Proxy World
    Posts
    11

    Re: What are the top 10 common security risk of a new site? What are the countermeasu

    That will be number 1. Basing from what you've said, me thinks that I need to learn how they do that for me to produce the security that I need if I'm starting from scratch.

  4. #4
    MaestroFX1's Avatar
    MaestroFX1 is offline Community Advocate MaestroFX1 has a spectacular aura about
    Join Date
    Feb 2008
    Location
    Area 51
    Posts
    1,577

    Re: What are the top 10 common security risk of a new site? What are the countermeasu

    Firm grip on concepts of php and mysql !

    Remove characters like " = etc. Google that.

    #2 Restrict access to administrative folders.

  5. #5
    magsasaka00193 is offline x10Hosting Member magsasaka00193 is an unknown quantity at this point
    Join Date
    Jan 2011
    Location
    Proxy World
    Posts
    11

    Re: What are the top 10 common security risk of a new site? What are the countermeasu

    Got it. I'll focus with that first. I'm going to wait for additional information others can provide. And I'll Google for more information about my topic. :D

  6. #6
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: What are the top 10 common security risk of a new site? What are the countermeasu

    Last edited by misson; 01-30-2011 at 08:37 PM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  7. #7
    cybrax's Avatar
    cybrax is offline x10 Elder cybrax is on a distinguished road
    Join Date
    Aug 2009
    Location
    UK
    Posts
    699

    Re: What are the top 10 common security risk of a new site? What are the countermeasu

    Forgetting to disable directory browsing is a real classic, it's amazing sometimes what people leave in plain text files.

    SQL injection is still rife, largely because every PHP tutorial you see about passing data just uses the bare bones basic script with no mention of validation using stripslashes or better still preg_replace. So newbies get into bad coding habits from the beginning.
    The code must flow.
    Project 157: Latest UK Jobs direct to your mobile phone
    New Domain under construction: Lovelogic.net
    home for some new projects that we can't keep here ;)


  8. #8
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: What are the top 10 common security risk of a new site? What are the countermeasu

    Quote Originally Posted by cybrax View Post
    stripslashes or better still preg_replace
    Did you mean to include addslashes?

    Rolling your own sanitization function is bad practice, as you can easily forget an edge case or simply not be aware of a vulnerability. Even with DB provided quoting functions, SQL injection can still be a problem (look up "truncation attacks" and "multibyte vulnerabilities"). These days, everyone should be using prepared statements.
    Last edited by misson; 01-31-2011 at 02:24 PM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  9. #9
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: What are the top 10 common security risk of a new site? What are the countermeasu

    If you use a CMS, do not use 'admin' for the admin account and use a good password. ( at least 2 each of upper, lower, digit, punctuation )

    Do not use hacked authoring/FTP tools. Some of those add stuff to your code.

    Don't let your little brother near your computer.

    Don't trust anything a user inputs. Sanitize anything going into a database and sanitize html entities that you might display on your site.

    Use some sort of captcha to prevent spambots.
    Nothing is always absolutely so.

  10. #10
    carl6969's Avatar
    carl6969 is offline Community Support Team carl6969 has a brilliant futurecarl6969 has a brilliant futurecarl6969 has a brilliant future
    Join Date
    May 2009
    Location
    Calf Creek TX
    Posts
    6,862

    Re: What are the top 10 common security risk of a new site? What are the countermeasu

    If you use a CMS, do not use 'admin' for the admin account and use a good password. ( at least 2 each of upper, lower, digit, punctuation )
    I would add change your password frequently to that very good advice.
    Last edited by carl6969; 01-31-2011 at 03:05 PM. Reason: Caffeine Deprivation


+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 01-26-2011, 11:08 AM
  2. Replies: 3
    Last Post: 10-12-2010, 10:31 PM
  3. At the risk of committing a TMI faux pas...
    By essellar in forum Introductions
    Replies: 4
    Last Post: 04-17-2010, 07:11 AM
  4. My Computer Security Site
    By kushie in forum Review My Site
    Replies: 3
    Last Post: 10-23-2009, 07:18 AM
  5. is there any risk of suspension?
    By luigidavinci in forum Free Hosting
    Replies: 2
    Last Post: 05-08-2008, 11:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers