Top Banner
22

Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

Dec 13, 2015

Download

Documents

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: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.
Page 2: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

Road Map

Page 3: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

Introduction

Will not cover everythingHealthy level of paranoiaUse my DVD swap shop application

Page 4: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

Security Considerations

Authentication AuthorisationSecure communication

Software + Hardware

 

Page 5: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

The Login

Provides authenticationasterisks *********SQL injection attack

Page 6: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

Human ProblemsA simple conversationPeople use words they can rememberSame passwords for many sites

Doctor who fan guess the password

T****S

Page 7: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

Brute Force AttackIf the password is CC but all we know is that it is

two characters long **

AAABBABBBCCBCC

The longer the password the more time we need to crack it.

Page 8: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

Dictionary AttacksIf you know a user name throw the dictionary at it

Page 9: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

Countermeasures Education

Don’t use same password for all sitesAvoid passwords that could be guessedDon’t use dictionary words

Enforce rules in codeMinimum password lengthNon alpha numeric charactersExpiration dateLimit login attempts

Page 10: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

Use a Security FrameworkAuthentication options in .NET

WindowsPassportFormsDIY

Page 11: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

Securing Stored PasswordsUnsecured Access databaseStored in App_Data folder(Could store on another

drive/machine)Plain text password stored in the

table

Page 12: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

Password Hashing.NET CryptographyEncryption is okHashing better

password123 IKSV2XlTzgf7LFJNFuHDkf9f4WQPZPLnEIY=

Do not store the password in plain text

Page 13: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

Adding SaltIf the passwords for John and Fred without salt

look like this...

John IKSV2XlTzgf7LFJNFuHDkf9f4WQPZPLnEIY=Fred IKSV2XlTzgf7LFJNFuHDkf9f4WQPZPLnEIY=

Adding salt would change the hash values like so... 

John 354rlrk8Jv7729qVOrOp0lXUv7RAsdVFred 9Wo0irC6+ylay0CJsLVtWBfbJBSn03j4gzhG

Concatenate password + email address

Page 14: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

Validation – All Input is EvilWho do you trust?

Do you trust me not to make use of that data in some way? 

Do you trust me to write a web application that will not be compromised in any way?

Not just a matter of what people you trust but what systems do you trust?

Black list = characters we don’t allowWhite list = characters we do allow

Page 15: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

Code Injection

Script could run when page is rendered elsewhere in application

IIS automatically disallows this

Page 16: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

Turn Off Debug ModeBy entering bad data a hacker could crash

your program

Page 17: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

We now KnowThe language of the application (VB.NET)The names of several parameters SwapTitle

Description etc..In the light of the above probably the names

of some fields in the database (this way the hacker may refine the SQL injection attacks.)

The remote path on the server C:\MyFiles\IMAT1604\content\Widget Swap\Widget Swap\aswap.aspx.vb

Page 18: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

Securing the Communication Channel

Page 19: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

Public and Private Keys

Page 20: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

Public and Private Keys

Page 21: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

Secure Socket Layer (SSL)The browser makes a secure HTTP request

HTTPS on port 443The server sends back a digital certificate

verifying its credentialsThe client verifies the certificate with the

issuing agency Using the public key the data is encrypted

between client and server

Page 22: Road Map Introduction Will not cover everything Healthy level of paranoia Use my DVD swap shop application.

Open PortsPort scannersFirewallsIP FilteringTurn off unused servicesGrant Minimum Permissions to Resources