LLXX, on Oct 14 2006, 10:32 PM, said:
Done via HTML injection. Common exploit for forums.
That's a gross over-simplification at best. There are many ways apps get hacked. Things like SQL injection (which a TON of web apps are vulnerable to - WAY too many), cross site scripting aka XSS (on the rise), and plain stupid app design (or lack of), leading to overly insecure code (not validating user input client AND server side - query strings included and such, before doing anything with it; often they just take the unvalidated user input and concatenate that into some SQL query - the best way to get hacked; or running commands on the box). Also server software exploits (web server, host OS, database, etc), issues with the language used (like register globals for php) or of any of dependancies used by any component of an app (libs, modules, plugins, frameworks, components, etc) including the ever so common buffer overflows, other software running on the server (like the recent cPanel exploit), or a security issue with any of the previous being used by someone else on the same [shared] box - just like the phpbb bug we've seen ago that let hackers hack every other site located on the same box (they often get root login to the database or box or such), or any of the previous be misconfigured for anyone on that box, improper ACLs letting hackers get access to files they should not be able to or even upload stuff, insecured protocols (like webdav), weak passwords on anything or broken encryption (or none at all) which is fairly common or key management problems, broken authentication mechanism, session hijacking, stupid error messages (I've seen error messages saying can't connect to some_db using login X and password Y and the like), malformed XML, path traversal, leaving config pages on the server (too accessible), issues with http headers (like splitting), etc. Most web apps developpers just don't see what's coming to them, and don't know how to protect against it (often the code is really crappy too - real hack jobs).
That list is pretty much endless. Done via "html injection"? If you say so...
I wish it was that simple. Securing apps is a specialty nowadays (and it pays well). And we're disregarding things like phishing, social engineering and such here too. Most people ought to be scared... A chain is only as strong as its weakest link, and very often one of the links is very weak. The majority of websites could be hacked with some knowledge and determination.