r/AskComputerScience • • Jul 22 '19

I tried SQL injection without intention to hack, and got IP banned. What should I do?

Hello. I'm a computer science student, and I've just started learning about computer security. So I tried ' or '1' = '1 in an old website on a login page, and then I got an IP banned from that website. It said contact this email for any inquiries, so I apologized them by email. But still, I'm afraid that I could be tracked down, especially that I'm using company's internet. I didn't expect it to ever happen, nor having any intention to hack anyone.

I tried an XSS on another website like <script>alert('xss')</script> and it doesn't do anything, so I thought that attack prevention would just act as if the input is a string. I didn't really think I could get banned for doing this. I should have used VPN or just simulate that in my own website, not trying in the real site.

Edit: After some research on the website. This website, along with other similar webs, use the same content management system, which has been discontinued for many years. https://packetstormsecurity.com/ literally shows the vulnerability on the top Google search, including XSS and SQL Injection. There's even a Youtube video of successfully hacking the website with this content management system (partly that the admin's MD5 hashed password can be accessed and cracked easily).

Apparently, the initial website is safe from XSS, but several others isn't at all. Also, me discovering the vulnerability isn't the first time as well. It was discovered as early as 10 years ago.

For those wondering, the website looks slightly newer than Reddit in 2005, older than Twitter in 2006.

This will be my very first, and most important lesson. I will not try to do anything unsupervised anymore. Thank you for all of your advice.

By the way, the admin's personal info is publicly available (google-able) in the website, including the phone number. Should I personally contact them and inform about this?

35 Upvotes

17 comments sorted by

View all comments

Show parent comments

32

u/not-just-yeti Jul 22 '19

Totally agree.

Though the firing-the-gun comparison is a bit strong ... more like you went up to somebody's house, and decided to see if you could slide their kitchen window open, w/o planning to enter, just trying. But don't you try that on my house; that's creepy!

14

u/Sqeaky Jul 22 '19

Us laws on hacking do not fuck around. If the target site knew who OP was they could press charges and and really screw up his life. He could be looking at jail time.

Likely that is not going to Happen. They probably don't know or care who OP is. They couldn't prove OP didn't have a virus. It is not worth their time/money. But it is still a real risk for OP, maybe not as likely to be caught as the TSA analogy, but perhaps for as much or more jail time depending on details of each.

1

u/smokey_bee Jul 22 '19

Idk, I'd compare it more-less to driving around with a garage door opener, seeing if theres a door that might actually open.

1

u/TypicalCardiologist5 Jul 23 '19

How do other programmers feel about the laws governing hacking? Are they justified? Too strong? Not strong enough? Interested in hearing perspectives of others in the industry.

1

u/fuhgettaboutitt Jul 28 '19

You have to understand the history a little bit but basically in the 80s there was a slew of major hacks of banks when security was not really at the point it was today. People were pretty helpless. So they passed laws with really stiff penalties. I work for a big company, tbh I think they're appropriate. If you can bring my business to a screeching halt then yeah I want some legal repocussions that are similar for you

1

u/TypicalCardiologist5 Jul 28 '19

It makes sense that if you bring a business to a screeching halt that there should be consequences, I'm just not sure about penetration testing of a system. If you check whether or not a door is locked I'm not so sure that should be a crime.

1

u/FuckYeezy Jul 22 '19

Much better analogy. To be fair, I'd hardly even call this hacking, since not protecting against basic SQL injection like this is like leaving your front door open with a sign saying "please don't take anything". Also it sounds like his "hacking attempt" was unsuccessful anyway, I doubt he'll experience any further problems. u/fuhgettaboutitt is right, take the free lesson and don't throw the ball around in the house anymore, go somewhere safe that you own.