![]() |
Hacked (For real this time)
No, this isn't about the competition, but about our website. I got a text message tonight stating that our site was down. When I looked at it, I saw:
Parse error: syntax error, unexpected T_STRING in /home1/ipirates/public_html/admin/settings.php on line 6 Which led me to believe the file was not intact. Upon taking a look at the file, I saw that it had been modified by someone. It says: Code:
<?phpI realize I have to sanitize my login input for the admin panel with SQL Injection prevention... I don't feel like messing with it though, because I'm tired from the competition. So thank you mysterious hacker, you've made my day difficult. |
Re: Hacked (For real this time)
I believe PHP has a string sanitization function built in, somewhere.
|
Re: Hacked (For real this time)
Quote:
Code:
mysql_real_escape_string($string); |
Re: Hacked (For real this time)
I'm aware of that... unfortunately, at the time some pieces of the site were written, I wasn't. I'll be fixing it.
This might actually have taken us out of the running for website award at the Livonia district this weekend, since I don't know when the hacking occurred. Depending on how soon I can assess the damage and repair it, we might be out of the running at Michigan's state competition as well. All I want is to find out who did it... I don't appreciate my site being hacked, even in example. |
Re: Hacked (For real this time)
I think the actual hacking wasn't wise... However, forward-looking, I'm wondering why you guys are reinventing the wheel.
The only admin panel I have on our website is through FTP. Our website is done through Smarty templating system, which makes individual content-files very very simple. The backend files can be very complex, but the actual content-editing part can be very very simple. Every team should look in to that... Or use a CMS that has already been established to reduce another attack such as this. It was unfair that your site was hacked, but it is the real world. There are no rules in the real world. Keehun Team 2502 |
Re: Hacked (For real this time)
At any rate, both holes have been repaired, and I'm bringing the site back up. If anyone notices some holes, please let me know via PM on here. Thanks.
|
Re: Hacked (For real this time)
I highly doubt this was an FRC team member. Most likely an automated script of some sort. You're lucky it was fairly friendly.
|
Re: Hacked (For real this time)
Luckily for you, security is not a criterion of the website award.
|
Re: Hacked (For real this time)
Quote:
I'm not saying people won't believe you now, because you have made the case pretty clear to me and others that this is what occurred. But I hope there was a lesson learned in this. I would also assume you alerted Mr. Ketron. |
Re: Hacked (For real this time)
No, I haven't had the chance to get a hold of Ketron yet.
In response to the other post, an automated script is very unlikely, because it changed very specific things unique to the website. Also, I did not say it was an FRC team that did it, but it still may have been. And thanks for clearing up the award eligibility thing. I'm glad this situation won't affect us. |
Re: Hacked (For real this time)
Sorry it happened, but you could be kind of glad. It wasn't as bad as it could have been. They were kind of enough just to show you the holes in a way and not completely trash everything.
Teams need to remember if you do go and re-make the wheel, you need to make security high up on the list. That's the benefit of using a pre-made CMS. Just take it with a grain of salt, and move on. At least it's now a more secure site. |
Re: Hacked (For real this time)
And remember to make backups FREQUENTLY.
|
Re: Hacked (For real this time)
Yet another very real life lesson learned via FRC! SQL injection is how Anonymous hacked HBGary (well, it's how the hack started...). Very scary stuff; you can read about it on arstechnica.com.
You may be able to ftp into the site, see WHEN the files were modified (if you haven't modified them), and then correlate that with IP access logs (if you keep them). That should tell you what region of the world it came from. |
Re: Hacked (For real this time)
The issue apparently was that part of the admin panel inadvertently didn't require login to function properly, and so someone was able to change that one file, so really, unless I logged every action, there would be no way to log the IP. Everything should be fixed now anyway, so I'd say I'm good now.
|
Re: Hacked (For real this time)
Quote:
And don't laugh, I had dialup access only here at the house until just this year. |
Re: Hacked (For real this time)
I had dialup until November 2009, and I still use it at my dad's. I know the feeling.
|
Re: Hacked (For real this time)
Quote:
|
Re: Hacked (For real this time)
An update... I checked the IP logger I implemented yesterday and found this:
Code:
04/03/2011 12:41:03 - 76.226.163.182 - - FAILED ATTEMPT |
Re: Hacked (For real this time)
Yep, that's your run-of-the-mill SQL Injection attack. Since the person didn't actually gain access to your site, I don't think that's actually illegal. It's probably the same person as before though, so you could try going to the ISP/Police. I kinda doubt they will spend time on a simple injection with no real damage (except that you had to fix your site).
|
Re: Hacked (For real this time)
To be more specific, we found it traces to somewhere near the corner of 5-mile and Farmington in Livonia, which happens to be near the location of Churchill High School.
|
Re: Hacked (For real this time)
Quote:
Seems like the address is from Texas http://whois.arin.net/rest/customer/C01622289 |
Re: Hacked (For real this time)
Quote:
Host : ppp-76-226-163-182.se3.sfldmi.sbcglobal.net sfldmi = Southfield, Michigan I think. |
Re: Hacked (For real this time)
Quote:
http://whois.arin.net/rest/net/NET-76-226-160-0-1/pft Got Texas. But just running the IP on Google, I see this- http://ip-reports.org/76.226.163.0/ |
Re: Hacked (For real this time)
Quote:
|
Re: Hacked (For real this time)
Quote:
But when I used network-tools.com, I got different results- http://network-tools.com/default.asp...76.226.163.182 Code:
TraceRoute to 76.226.163.182 [ppp-76-226-163-182.se3.sfldmi.sbcglobal.net] |
Re: Hacked (For real this time)
The first couple of hops should be your local ISP, which is why you are getting Dallas in your tracert.
|
Re: Hacked (For real this time)
Quote:
|
Re: Hacked (For real this time)
Quote:
tracert 76.226.163.182 that should start the trace from your location. |
Re: Hacked (For real this time)
Quote:
|
Re: Hacked (For real this time)
Yup, it started from my location, but it finished on the same sfldmi name.
|
Re: Hacked (For real this time)
I didn't use a tracert, but MaxMind GeoIP, which is known for being extremely accurate.
|
Re: Hacked (For real this time)
Quote:
|
Re: Hacked (For real this time)
So have you fixed the SQL injection vulnerability?
I'd do that instead of caring who did it. They were nice enough to let you know that you need to get your act together instead of thrashing your site. |
Re: Hacked (For real this time)
Quote:
|
Re: Hacked (For real this time)
Quote:
Quote:
|
Re: Hacked (For real this time)
MaxMind has some odd options. Someone else ran it, and it was spot on my place, so I assumed any other output would be just as accurate. I don't want to point any fingers (as I think I said before), just pointing out a possibility (which seems to get me into trouble for some reason).
|
Re: Hacked (For real this time)
Quote:
|
Re: Hacked (For real this time)
Quote:
The internet sleuthing is educational, interesting and valuable. My opinion is that Brandon's skill level and progress are similar to the skill levels and progress of thousands of students who play engineer and/or computer scientist each year in STEM robotics competitions. Let's not celebrate one set of (often clumsy) efforts and denigrate the other (often clumsy) set. Instead, maybe we can choose to guide/mentor both. Blake |
Re: Hacked (For real this time)
Quote:
|
Re: Hacked (For real this time)
$10 says it was one of your own team's programmers just trying to have some fun by experimenting with different things. It's more curiosity than malicious intent.
|
Re: Hacked (For real this time)
I can guarantee you that it was not our team, since none of the members except me have the knowledge to do such a thing, and I didn't hack our own site. I am sure however that the intent was not malicious, but I still don't appreciate that type of thing happening.
|
Re: Hacked (For real this time)
The issue is resolved. It was a student at our high school (non-team member).
Thank you Brandon for embarrassing our team (again) by inferring that another team may have done this before thoroughly investigating the actions taken. Mr. Ketron will know about what you have done, and what the other student has done before MSC. I would like to say that a lesson should have been learned from this, but with you lessons never are learned. |
Re: Hacked (For real this time)
For what it's worth, the above post embarrassed your team more than anything Brandon did.
Please, for the sake of your team, keep your dirty laundry out of the public eye. |
Re: Hacked (For real this time)
Quote:
As a leader on your team, you should set a higher example. |
Re: Hacked (For real this time)
Dang, looks like I owe someone...
Close though. |
Re: Hacked (For real this time)
Quote:
All I meant to communicate in my post above was that the situation was solved and MTR did not condone the actions taken by one student. |
Re: Hacked (For real this time)
Quote:
If you honestly can read your message and see nothing wrong with its format, location, and presentation - you should not be in a position to be lecturing or punishing other students. |
Re: Hacked (For real this time)
As a team president, I wouldn't call out my teammates on CD. I would talk to them at a meeting, or email them, but I wouldn't air internal matters and team politics in front of the entire FIRST community. Doing that reflects badly on your team.
|
Re: Hacked (For real this time)
Quote:
I made myself look foolish and stupid, I think I deserve it after those two posts. Please don't look down on the rest of my team because of my mistake, they don't deserve it. |
Re: Hacked (For real this time)
Folks,
Some people believe that it is impossible to non-trivially separate teams' collective identities and reputations from those of individual FIRST participants who also happen to be members of those teams. And , I know that there are plenty of folks who choose to organize and evaluate their FIRST experiences using the "Any member's mistake is the entire team's mistake" approach. Well, for what it is worth, I'm not one of those people, and there are quite a few others who have similar attitudes. I recommend worrying less about "team reputations" and more about individuals. I know there are plenty of folks with other opinions. That's OK. My point is that it's OK to dial back the "We need to be Stepford FIRSTers" just a bit, because... It's OK to view the world through a lens other than that one, if you care to. Blake |
Re: Hacked (For real this time)
For the record, I believe that what Trevor said was (somewhat) fair, and with all the stress lately, I can understand how he would slip up and post something he shouldn't have. I've done it enough to where I can't really blame someone else who does it. With that, I'd like to see that particular topic end with this post.
In addition, the attack located in Livonia (provided it actually was from there, is probably not the same person that successfully hacked the site. A lot of other attempts to access our admin panel have been made, with no success. I have this message for everyone who has or plans to try something: our panel is no longer vulnerable to SQL injection. In addition, the login is not a simple one, so trying more generic logins will get you nowhere. Thank you to everyone who posted a constructive response. |
Re: Hacked (For real this time)
Quote:
|
Re: Hacked (For real this time)
Quote:
Except in carefully controlled circumstances, I first do my best to invoke healthy skepticism that the larger, and typically quite diverse, groups are truly represented by any one person's actions or utterances. If I do invoke a "You are besmirching your team" attitude, I try to do that much latter in the process/conversation. I feel that to do otherwise is to ignore overwhelming evidence that the individuals (especially students) typically do not speak or act for their teams in the pertinent controversial settings. To look at it from another angle, try this: I dislike compounding someone else's mistakes by making one myself (by allowing my opinion of the entire team's reputation to become conflated with my opinion of the one member). Blake |
| All times are GMT -5. The time now is 21:07. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi