Algorithms Flashcards
1
Q
DoS via Algorithmic Complexity Attacks
A
- key idea: attacker crafts input to elicit worst case behavior from the target
- examples: Quicksort worst case O(n^2), weak hash table algo attacks
2
Q
Space complexity attacks
A
- example: Zip bombs (recursive zip files that fill your computers hardrive, render it unusable)
- key idea: fill all memory space to make running all processes impossible or very slow
3
Q
Defense against algorithmic complexity attacks
A
- understand algos and data structures, create programs with safe ones
- limit user input by: limiting volume & influence (input validation!)
- limit and monitor resource use
4
Q
Side-Channel Attacks
A
- instead of attacking the target directly, measure or exploit info leaked through indirect effects and low-level implementation details
- ex: string comparison for secrets vulnerable if program exists when first comparison is false