Week 3 Flashcards
1
Q
What are the format string vulnerabilities?
A
- Leak information from the stack - less arguments
- Crash the program - missing argument
- Modify the memory - &i
2
Q
How to avoid format string vulnerabilities?
A
- Hard code format strings - printf(“%s”, user_data)
- Don’t use %n - they overwrite memory address
- Compiler can be used to match printf arguments to format strings
3
Q
A