Sunday, August 9, 2020

The Zone Cell Challenge

The Zone Cell Challenge There are lots of things I should have been doing this weekend. Theres the 8 page draft paper that was due today. Or the 6.004 lab where I have to program a Turing machine its due Thursday. Or the revision of my design project which is due on Thursday (I actually still dont know what design Im going to write up). Or either of the psets in my other two classes which are both due on Friday. Yes, the weeks before Spring Break tend to suck. Like, not just your average suck. They tend to really suck. And with that much suck, I should have spent all weekend tooling and doing nothing else. But of course thats never how it works. Last weekend, I took the Zone Cell Challenge. Now, this is going to require a little background. Actually, theres quite a bit of background. Back In The Day, the MIT I/S Department (now IST) hired student developers to basically help build Athena. They were called the Watchmakers, based on a book by Niven Pournell (theres a page that explains the metaphor). The Watchmakers worked in the Watchmaker Zone, and to help them test, debug, and generally try to break the technologies they were developing, I/S donated three servers, which formed the ZONE Kerberos realm and the zone AFS cell. OkI guess I should take another step back and quickly explain Kerberos and AFS. Kerberos, named after the three-headed dog guard of Hades (usually seen as the Latin Cerberus), is a protocol for mutual authentication of a client and server through a trusted third party. Basically, you can prove who you are to other computers on the network, and your password never has to cross the network unencrypted. This works because theres a single machine that all other computers on the network trust, called the KDC. Kerberos is broken up into realms, which represent distinct sets of users and servers. The normal realm here on campus is the ATHENA.MIT.EDU realm, but there are also the CSAIL.MIT.EDU, MEDIA-LAB.MIT.EDU, and NUMENOR.MIT.EDU realms. AFS is the Andrew File System. Developed at Carnegie Mellon, AFS is a network accessible file system. Its a way of accessing your files from any computer on the Athena network. AFS is broken up into cells, and there are many more AFS cells than there are Kerberos realms. Like Kerberos, there is an athena.mit.edu cell. There are also csail.mit.edu and numenor.mit.edu cells. However, there is additionally, for example, the sipb.mit.edu cell, run by the SIPB. This allows SIPB to maintain its own servers and software and allocate quotas without having to go through the Athena maintainers. Soin addition to all of those cells and realms, theres the lesser known Zone Cell, made up of three servers (remember theyre for the Watchmakers): casio, seiko, and timex. If you look in the Zone Cell, youll see a series of very explicit rules. Ill copy some of the better ones: The Zone Cell is not for reliable data storage. The Zone Cell is not for reliable data storage. (in case you missed it the first time) ASO reserves the right to remove someones zone cell bits. Reasons this may be done include: [] gratuitously compromising the security of the zone cell or zone kerberos realm, or intentionally causing Rule 1, 2, or 10 to become relevant. [] The zone cell is not for reliable data storage. The zone cell is not for reliable data access. Sonow that weve established the reliability of the Zone Cell, what is the Zone Cell Challenge? The Zone Cell Challenge is an event that is usually for people interested in becoming SIPB AFS administrators. Its designed to help people become more familiar with how AFS and Kerberos work. In the Zone Cell Challenge, you start with root access to one of the three Zone Cell servers, and you have to accomplish three things. First, you have to give yourself root access to the other two Zone Cell servers. Second, you have to make yourself an administrator of the Zone AFS Cell (which is different from having root access on the servers!). Finally, you have to make yourself an admin of the Zone Kerberos Realm, which gives you permission to change other peoples passwords or create new accounts. It actually turns out that none of these tasks are particularly challenging if you read the right documentation. And since I was interested in learning more about how to administer AFS, I signed up for the Challenge on Friday night. And at about 3:45 AM, I actually started trying to hack the Zone Cell in earnest. The first part is easy, once you find the right command. It took me about 30 minutes to gain root access on all three servers. And then, almost immediately after I had logged in to all three to make sure it worked, all of them froze. And they stopped pinging. Wellcrud. What did I screw up? Well, fortunately, I didnt screw anything up. The Zone Cell servers had been moved to virtual machines, and all of the virtual machines on one server froze, including casio, seiko, and timex. Fortunately, there were other VMs on that machine that people cared about, and one of the Athena server maintainers brought the servers back up. One task down, two to go. Before about 6 AM I managed to finish the second task making myself an administrator of the Kerberos realm. I went to sleep, and when I woke up, I spent a couple of hours on the last task. The last task was also a little entertaining. I had a theory of how to make myself an AFS administrator, but I was worried that I would screw up the AFS users database. So I asked on the zone-cell zephyr class (kind of like a chatroom) Me: Ok. I think I know what I want to do [], but Id like to check and make sure Im not going to screw it up before I try. Anyone around? Someone from Athena server ops: I think you should just risk breaking it. At worse, youll just have to fix it after the fact Wellok? I guess Ill just back up the files Im modifying Anyway, I cant really say much more, because wheres the fun in saying what I did? But in any case, hacking other peoples servers with permission is a really fun way to spend a weekend. But I guess I should go back to tooling now

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.