Week 3 Flashcards

1
Q

What are the format string vulnerabilities?

A
  1. Leak information from the stack - less arguments
  2. Crash the program - missing argument
  3. Modify the memory - &i
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to avoid format string vulnerabilities?

A
  1. Hard code format strings - printf(“%s”, user_data)
  2. Don’t use %n - they overwrite memory address
  3. Compiler can be used to match printf arguments to format strings
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly