DEV Community

Discussion on: Tell Your Story: Has your application been hacked?

Collapse
 
rmaes4 profile image
Rob Maes • Edited

I was the ripe old age of 14 and I was teaching myself PHP (shudders). Anyways I put together a really primitive website where all you could do is make an account and see a list of users. I eagerly uploaded my new site via FTP (had never even heard of git yet) to my free account at 000webhost (shudders again). I didn't have any money so that's what I went with. Anyways I was so proud of my little website and it was now live for the world to see. I eagerly passed the link around and waited to see how many people would register. Queue the next day when I log on to the users page. I find about 5,000 or so users with names covering a very wide array of expletives. I learned a lot that day. Any innocence and faith I had in humanity was lost. After a few hours of research I learned what SQL injection was and how to prevent it. I spent a couple days patching things up and re-uploaded it. Eventually I developed it into a fully fledged online forum and I never experienced another SQL injection again. I gotta say I miss those days.

Edit: also for some reason I wasn't able to post this in Safari. I had to open up chrome.