Top Banner
Format String Vulnerability Topics Format String Page 1
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

Jul 17, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
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