

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Spring 2008 ā 22c:169 Computer Security Assignment 3 - due by Thursday, April 17
Problem 1: United we defend (30 points) A group of small online game companies decided to sell a group membership, so that any paid member of one online game can enjoy free membership to any other game in the āFederationā. Each company now authenticates paid members by checking their usernames and passwords, and then authorizes them according to their expiration dates based on their membership fee. To facilitate these current members, the IT Lord of Federation came up with the following scheme. All the online game companies in the Federation now share one master secret key M SK. When a paid user logs in to an online game āAlpha-lifeā with a username and a password, the user is prompted to store a secret file. This file contains the value of H(M SK|username|expiration date) and M SKćexpiration dateć, where H is a secure hash function and | is a concatenation, and ćć means a symmetric key encryption. When a user tries to login another online game āBeta-revolutionā by another Federation member, then the user can simply type in the username from āAlpha-lifeā and upload the secret file from āAlpha-lifeā. The āBeta-revolutionā can use its own M SK to decrypt the second field in the file and learn the expiration date. If the decrypted expiration date has not passed, then compute H(M SK|typed-in username|decrypted expiration date) and compare to the first field in the secret file. If they match, then the user is authorized to use the āBeta- revolutionā. Answer the following questions.
Problem 1a (5 points) Alice has a username wonderland, and a subscription with āAlpha-lifeā that expires on April 1, 2009. By coincidence, another user Carol has the same username wonderland with āBeta-revolutionā, with no paid subscription. Can Queen use Aliceās secret file to login any online game in the Federation? Explain your answer.
Problem 1b (5 points) When user Alice logs into āAlpha-lifeā, there are two ways of authenticating Alice. One way is to check her username and password stored in āAlpha-lifeā, and the other way is to check her secret file. Modify the secret file so that āAlpha-lifeā can always check the password of any user from āAlpha-lifeā. Explain how your modified secret file guarantees such password check.
Problem 1c (10 points) Imagine there is a betrayer in the Federation, āSith-senseā. This betrayer sells subscription at a half-price, so all the users would pay āSith-senseā and other members had to honor the subscription, without being able to distinguish whether a secret file was created by āSith-senseā or not. Modify the secret file so that good members can tell which member published each secret file. All good members can communicate with each other (1-to-1 at a time), but this channel utilizes one-time pad so it can be securely used only one time. Explain how your modified secret file facilitates the authentication of the origin of secret file.
Problem 1d (10 points) After such turmoil, āDarthā-vendor offers a free single sign-on service to the Federation. āDarthā-vendor suggests to merge all the username and password database into one location, and all the authentication requests to be served at this central login information database. For their own revenue, āDarthā-vendor will show some advertisements next to the login screen. This does seem to solve many problems that the Federation has had so far. As a member of Federation, could you present to the Council of the Federation what pros and cons there are with this central method vs. your answer 1c?
Problem 2: As smart as Caesar or more (30pts) Caesar is known to used a substitution cipher for important military messages. What he used is quite simple, shifting 3 alphabets to the right as follows.
Plain: ABCDEFGHIJKLMNOPQRSTUVWXYZ Cipher: DEFGHIJKLMNOPQRSTUVWXYZABC
For example, if the original message (plaintext) was āATTACK AT THE DAWNā, then the ciphertext becomes āDWWDFN DW WKH GDZQā. Breaking this cipher is relatively easy, knowing that the magic number is 3. Imagine the following substitution cipher:
Plain: ABCDEFGHIJKLMNOPQRSTUVWXYZ Cipher: FGHIJKLMNOPQRSTUVWXYZABCDE
This is different from Caesar cipher, but still uses shifting. There are two ways of breaking this cipher. One way is brute-force, where one tries every number from 1 to 25 and see which one makes sense. The other way is frequency analysis. In English, alphabet frequency has the following distribution. When a ciphertext is long enough, the frequency of alphabet that substitutes āEā is likely to match the frequency of āEā in ciphertext.
Figure 1: Picture from Wikipedia