is php security strong like asp or any other languge

Discussion in 'PHP' started by moon_gfx77, Jul 16, 2010.

  1. #1
    Dear Friends

    i am a beginner of php one of my friend says php is not strong like asp in security an can be hack easily also sql injection work well on php
    by his this comment i am much frustrated and double minded that what i should learn
    when i have started php
     
    moon_gfx77, Jul 16, 2010 IP
  2. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #2
    security, in general, isnt the problem of the language, its down to the person who is coding.

    As usual, there are always best practicses involved. However.... saying that an ASP is secure means that you should ignore your friend completely as he has no idea what he is talking about.

    [refer to my first sentence, then remember that in most cases, ASP runs on MS servers - google security issues on MS hosts if you need more information]

    With that said, PHP may get a bad rap sometimes because most people think they can just up-and-learn it.... of course, this has a learning curve and part of that territory is security. If people really were that bothered about security, everyone's WP/windows/anything-else updates would be installed the minuted they are released. Sadly, this isnt the case.

    With that said, there's no reason why you can't write efficient, secure code in PHP.
     
    lukeg32, Jul 16, 2010 IP
  3. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The language you use doesn't determine how secure your applications are going to be. You can write crap and insecure code in any language.
    SQL injection is possible in anything that takes input form the user for use in queries, regardless of the language.

    You can also write secure code in any language. There are very few inherent vulnerabilities in most of the widely used languages now.

    This fanboy crap is ridiculous.
     
    Deacalion, Jul 16, 2010 IP
  4. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hear hear! :) didn't see your post before I replied.
     
    Deacalion, Jul 16, 2010 IP
  5. moon_gfx77

    moon_gfx77 Active Member

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #5
    according to my friend every one know how work php so it is easy to hack and in asp it is very difficult
     
    moon_gfx77, Jul 16, 2010 IP
  6. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Believe what you want. We've established your friend doesn't know what he's talking about now.
     
    Deacalion, Jul 16, 2010 IP
  7. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #7
    lol! Qft :)
     
    lukeg32, Jul 16, 2010 IP
  8. moon_gfx77

    moon_gfx77 Active Member

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #8
    thanks friends for suggestions and gaudiness
     
    moon_gfx77, Jul 16, 2010 IP
  9. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #9
    moon - just want to put a case in point.

    In many cases, -if i were to try to 'hack' a website- I dont need to know what language a website uses. This isn't where you start.... The first place is username:passwords. THEN services, FTP, telnet, VNC.... and so on. Then, you might decide to explode vulnerabilities in code..... (unless you've googled for known exploitable servers ofc).

    At the end of the day, "your friend" has a lot more to worry about than what language a website uses. Even today, buffer overflows and such are found in sources that have otherwise been sound, security wise.

    Think nothing of it, "this vs that" has been done to death.... "All languages suck, its just that some suck less than others" [the original quote was about email clients]
     
    lukeg32, Jul 16, 2010 IP
  10. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #10
    No problem, some times it's better to be blunt and honest. :)

    by the way, nice post likeg32 - totally agree. Social Engineering is also creeping into the foreground with hackers as well.
     
    Deacalion, Jul 16, 2010 IP