+ All Categories
Home > Documents > Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus...

Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus...

Date post: 25-Aug-2020
Category:
Upload: others
View: 2 times
Download: 0 times
Share this document with a friend
37
Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams
Transcript
Page 1: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

Hack to the future

Marinus Kuivenhoven

Senior Security Specialist #hitb2012ams

Page 2: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

2

Commodore 64

Page 3: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

3

Commodore 1541 floppy drive

Page 4: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

4

Copy protection

• Difference in resources to buy and use vs. copy and use

Page 5: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

5

Copy protection C64 #1

• Bad Sector (1983)

Page 6: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

6

Copy protection reboot

• Xbox 360 (2005)

Page 7: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

7

Copy protection C64 #2

• Gap Bytes (1985)

Page 8: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

8

Copy protection reboot

• PC games with SafeDisc (2002 - ….)

Page 9: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

9

Copy protection C64 #3

• Trackallignment (1987)

Page 10: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

10

Copy protection reboot

• PlayStation 2 (2000) − Afwijkende ruimte tussen blocks

Page 11: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

11

So..

We don’t learn from

other people mistakes

Page 12: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

12

The ‘F’-test

An infection is the invasion of body tissues by

disease-causing microorganisms, their

multiplication and the reaction of body

tissues to these microorganisms and the

toxins that they produce. Hosts normally fight

infections themselves via their immune

system.

Assignment:

Count the number of times the character 'F' appears on this slide.

Write it on a paper, put your fingers up or yell the amount.

Don’t cheat and countit in one go.

Page 13: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

13

Phone + Freak = Phreak

"Joybubbles" & "Captain Crunch"

Page 14: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

14

Bluebox (1960)

Phone

Switch 1

Switch 2

Phone

Free phonenumber

Page 15: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

15

Bluebox (1960)

Phone

Switch 1

Switch 2

Phone

2600hz whistle

Page 16: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

16

Bluebox (1960)

Phone

Switch 1

Switch 2

Phone

Another phone number

Switch 3

Page 17: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

17

Trygve Reenskaug

• DBO, MVC, OO, UML, ect..

Page 18: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

18

Database Oriented Application (1965)

Front-end: USERNAME:[PERSONA] PASSWORD:[SECRET12]

Back-end: Is access the account permitted when :

the username is 'PERSONA' en

the password is ‘SECRET12';

Page 19: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

19

SQL injection (1997)

Front-end: USERNAME:[PERSONA] PASSWORD:[IDUNNO or 1=1]

Back-end: Is access to the account permitted when:

the username is 'PERSOONA' and

the passwordis IDUNNO or 1=1;

Page 20: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

20

Attacks on webapplications

Page 21: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

21

Dynamic HTML+Javascript (1995)

Browser

Webserver

1 Request with data

3 New page

2 Generates page

Page 22: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

22

Cross-site scripting (1996)

Browser

Webserver

1 Request with data +code

3 New page

2 Generate page

with the code

4 Show pagina

and execute code

Page 23: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

23

Cause

Switch

Phone

Database

Application

Browser

Application

Voice + Tones

Query + Data

Content + Javascript

Page 24: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

24

Cause

Switch

Phone

Database

Application

Browser

Application

Audience

Presentator

Voice + Tones

Query + Data

Content + Javascript

Text + Assignment

Page 25: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

25

Root cause

Interpreter

Requester

1 communicationchannel

Data?! Logica?!

The interpreter can’t distinguish between data and logic

Page 26: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

26

Out of band communication – Telefoon

Phone

Switch 1

Switch 2

Phone

Voice

Voice

Tones

Voice

Page 27: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

27

Out of band communication – Database

Client

Application

Database

Data

Data

Query

Page 28: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

28

Out of band communication – Database

1:

stmt = ‘select something from table where column =‘ + variable;

2:

stmt = ‘select something from table where column = ?‘;

Bind(1,variable);

1:

var: a, -> hash = 0cc175b9c0f1b6a831c399e269772661

var: b, -> hash = 92eb5ffee6ae2fec3ad71c777531578f

2:

var: a, then hash = 4a8a08f09d37b73795649038408b5f33

var: b, then hash = 4a8a08f09d37b73795649038408b5f33

Page 29: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

29

Out of band communication – Browser

Browser

Webserver

1 Request with code

3 New page

2 Generate page with code

HTTP only has in band communication

Page 30: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

30

Focus on incidents..

Page 31: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

31

..specific a blacklist of incidenten

• OWASP top 10 • Injection

• Cross-Site Scripting (XSS)

• Broken Authentication and Session Management

• Insecure Direct Object References

• Cross-Site Request Forgery (CSRF)

• SANS CWE/25 • Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

• Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

• Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

• Unrestricted Upload of File with Dangerous Type

• Cross-Site Request Forgery (CSRF)

• URL Redirection to Untrusted Site ('Open Redirect')

• WASC 24+2 • Cross-Site Scripting

• Cross-Site Request Forgery

• SSI Injection

• SQL Injection

• XPath Injection

• XQuery Injection

Page 32: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

32

Principe

Client

Interpreter

Data

Logica

Client

Interpreter

Contextsafe data + Logica

Page 33: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

33

Ignaz Semmelweis

Page 34: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

34

Listerine

Page 35: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

35

Thus..

We have the right ideas

We know the solutions

We just use them in the wrong way

And present them in the wrong way

We can learn from history how to this right

Page 36: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

36

More on this stuff

C64:

Michael Steil / c64.org

Nate / root.org

XSS/SQL/Injection flaws:

www.owasp.org

Engressia/Draper/Semmelweis/Lister:

www.wikipedia.org

Page 37: Hack to the future - Hack In The Box Security Conference SIGINT... · Hack to the future Marinus Kuivenhoven Senior Security Specialist #hitb2012ams . 2 Commodore 64 . 3 Commodore

37

staat voor resultaat


Recommended