chapter 1

11
Chapter 1 The Software Security Problem

Upload: norris

Post on 04-Jan-2016

37 views

Category:

Documents


0 download

DESCRIPTION

The Software Security Problem. Chapter 1. Goals of this course. Become aware of common pitfalls. Static Analysis and tools. Some common approaches to security. Defensive Programming Security Features (vs secure features) ‏ Improving Software Quality. Some common approaches to security. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Chapter 1

Chapter 1

The Software Security Problem

Page 2: Chapter 1

Goals of this course

Become aware of common pitfalls. Static Analysis and tools

Page 3: Chapter 1

Some common approaches to security

Defensive Programming Security Features (vs secure features) Improving Software Quality

Page 4: Chapter 1

Some common approaches to security

Defensive Programming Security Features (vs secure features) Improving Software Quality

(none of these approaches work!)

Page 5: Chapter 1

So, what works?

Page 6: Chapter 1

Usual Software building cycle:

Requirements and Specifications Design Code Test and debug Integration test Deliver

Page 7: Chapter 1

Best way to detect vulnerable code

Through a Static Analysis Tool. However, hand/hard work is still necesary!

Page 8: Chapter 1

Vulnerability Classification

Generic vs context-specific defects

Visible in the code vs visible only in the design

Seven pernicious kingdoms:

Input validation and representation API abuse Security Features Time and State Error Handling Code Quality Encapsulation Environment

Page 9: Chapter 1
Page 10: Chapter 1

2009 CWE/SANS Top 25

Insecure Component Interaction

Faiulre to preserve page structure (Cross-site scripting)

Improper sanitation of SQL commands (SQL injection)

Cross-site request forgery

Unrestricted upload of file with dangerous type

Improper sanitation of OS command elements (OS command injetion)

Error Message Information leak

URL redirect to untrusted site (open redirect)

Race Condition

Risky Resource Management

Buffer overflow

Improper limitation of a pathname in a restricted directory

Buffer access woth incorrect length value

Improper check for unusual or exceptional conditions

Improper control of filename for include/require PHP statement

Improper validation of array index.

Integer overflow/wraparound

Incorrect buffer size calculation

Code download without integrity check.

Unlimited resource allocation

Page 11: Chapter 1

2009 CWE/SANS Top 25 (cont)

Porous Defenses Improper Access control Reliance on untrusted inputs in a security decision Broken or risky cryptography Hard-coded credentials/passwords Missing authentication for critical function Incorrect Permission Assignment for critical

Resource Use of broken or risky cryptography.