11
Format String Vulnerability Topics Format String Page 1

Format String VulnerabilityFormat String Page 10 Code Injection Question: How to use format string vulnerability to jump to injected shellcode? Format String Page 11 C011tpttttr ecttritp

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Format String VulnerabilityFormat String Page 10 Code Injection Question: How to use format string vulnerability to jump to injected shellcode? Format String Page 11 C011tpttttr ecttritp

Format String Vulnerability

Topics

Format String Page 1

Page 2: Format String VulnerabilityFormat String Page 10 Code Injection Question: How to use format string vulnerability to jump to injected shellcode? Format String Page 11 C011tpttttr ecttritp

Format String

Format String Page 2

Page 3: Format String VulnerabilityFormat String Page 10 Code Injection Question: How to use format string vulnerability to jump to injected shellcode? Format String Page 11 C011tpttttr ecttritp

Function with Varying Length of Arguments  

Format String Page 3

Page 4: Format String VulnerabilityFormat String Page 10 Code Injection Question: How to use format string vulnerability to jump to injected shellcode? Format String Page 11 C011tpttttr ecttritp

How Format String Works

Format String Page 4

Page 5: Format String VulnerabilityFormat String Page 10 Code Injection Question: How to use format string vulnerability to jump to injected shellcode? Format String Page 11 C011tpttttr ecttritp

prinftf() with missing arguments

Format String Page 5

Page 6: Format String VulnerabilityFormat String Page 10 Code Injection Question: How to use format string vulnerability to jump to injected shellcode? Format String Page 11 C011tpttttr ecttritp

A Vulnerable Program

Format Parameters

Format String Page 6

Page 7: Format String VulnerabilityFormat String Page 10 Code Injection Question: How to use format string vulnerability to jump to injected shellcode? Format String Page 11 C011tpttttr ecttritp

Crash the Program

Format String Page 7

Page 8: Format String VulnerabilityFormat String Page 10 Code Injection Question: How to use format string vulnerability to jump to injected shellcode? Format String Page 11 C011tpttttr ecttritp

Print out Secret Value Question: How to print out some secret valued stored on the stack?Question: How to print out a secret string stored at address 0xaabbccdd?

Format String Page 8

Page 9: Format String VulnerabilityFormat String Page 10 Code Injection Question: How to use format string vulnerability to jump to injected shellcode? Format String Page 11 C011tpttttr ecttritp

Modify MemoryQuestion: How to modify the data stored on the stack? Question: How to modify the data stored at address 0xaabbccdd?

Format String Page 9

Page 10: Format String VulnerabilityFormat String Page 10 Code Injection Question: How to use format string vulnerability to jump to injected shellcode? Format String Page 11 C011tpttttr ecttritp

Modify Memory with Specific ValueQuestion: How to modify the data stored at address 0xaabbccdd with value 0x23a402bc?

Format String Page 10

Page 11: Format String VulnerabilityFormat String Page 10 Code Injection Question: How to use format string vulnerability to jump to injected shellcode? Format String Page 11 C011tpttttr ecttritp

Code Injection

Question: How to use format string vulnerability to jump to injected shellcode? 

Format String Page 11