



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!




First Name ________________________ Last Name: ________________________
Row___________ Seat ________
**>>> Please do NOT open this exam booklet until <<<
the instructor gives a clear signal to start. <<<**
Question Nr
Max. Score Your Score Comments
Notes :
must sign it now! <<< Turn in the sheet of notes with your exam.
Midterm Exam, CS 5950/6030 — Fall 2005
Computer items must be protected to a degree consistent with their value and only until they lose their value.
Criterion
S or B better? Why? delay S (^) Receiver not waiting for all block characters before decoding error propagation
S Error in coding one char does not affect encoding of another diffusion B (^) Frequency of a char from P (plaintext) diffused in a block of C (ciphertext) susceptibility to malicious insertion
B Impossible to insert a char into a block without easy detection (block size would change)
Note: 15 pts for giving any one of the 2 solutions below. 25 pts for giving both.
Solution without sender authentication. S determines secret key K S encrypts K with kPUB-R: C = E( kPUB-R , K ) S send C to R R decrypts C to get K: D( kPRIV-R , C ) = K S & R communicate using secret (symmetric) key K
For a) --Red Team / Tiger Team tries to crack software. --If it withstands the attack => security is judged as good.
For b) --Too often developers try to quick-fix problems discovered by Tiger Team. --Quick patches often introduce new faults.
For a) --Initial stack: [data][data][...] --Pgm executes a subroutine => return address is pushed onto stack (so subroutine knows where to return control to when finished) Stack: [ret_addr][data][data][...]
--Subroutine allocates dynamic buffer char sample[10] => buffer (10 empty spaces) pushed onto stack Stack: [..........][ret_addr][data][data][...]
--Subroutine executes: sample[i] = ‘A’ for i = 10 Stack: [..........][A][data][data][...] Note: ret_address overwritten by A! (Assumed: size of ret_address is 1 char) --Subroutine finishes - buffer for char sample[10] is deallocated Stack: [A][data][data][...] --RET operation pops A from stack (considers it return address) Stack: [data][data][...] --Pgm (which called the subroutine) jumps to A => shifts program control to where attacker wanted
For b) By using the above scenario, an attacker can specify any return address A for her subroutine. This shifts program control to where attacker wanted.
(In detail: Upon subroutine return, pgm transfers control to attacker’s chosen address A—even in the OS area. Next instruction executed is the one at address A. It could be the first instruction of a malicious program that grants the highest access privileges to its „executor.”)
This is example of one of many possible kinds of storage covert channels.
Example: File lock covert channel.