gold coast campus school of information technology 2003/16216/3112int network security 1copyright ©...

34
2003/1 6216/3112INT Netw ork Security 1Copyright © Griffith University, 2003 ld Coast Campus hool of Information Technology 6216INT / 3112INT 6216INT / 3112INT Network Security Network Security Lecture 7. Web Security

Upload: linette-randall

Post on 06-Jan-2018

219 views

Category:

Documents


1 download

DESCRIPTION

2003/16216/3112INT Network SecurityLecture 7 – Web Security - 3 Web Security Web now widely used by business, government, individuals but Internet & Web are vulnerable have a variety of threats  integrity  confidentiality  denial of service  authentication need added security mechanisms

TRANSCRIPT

Page 1: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security

1Copyright © Griffith University, 2003

Gold Coast CampusSchool of Information Technology

6216INT / 3112INT6216INT / 3112INTNetwork SecurityNetwork Security

Lecture 7. Web Security

Page 2: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 2

ReferencesReferences

• Cryptography and Network Security: Principles and Practice, 3rd ed., William Stallings: Chapter 17

Page 3: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 3

Web SecurityWeb Security

• Web now widely used by business, government, individuals

• but Internet & Web are vulnerable• have a variety of threats

integrity confidentiality denial of service authentication

• need added security mechanisms

Page 4: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 4

Web SecurityWeb Security

• Focus on two standardised schemes: SSL/ TLS SET

• WWW is a client/ server application• Security tools discussed so far are relevant• But, web presents new challenges not

appreciated in the computer & network security: -

Page 5: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 5

Web SecurityWeb Security

• The Internet is 2 way: the web is vulnerable to attacks on the web servers

• Reputation can be damaged & money can be lost• Although developing web application is easy,

underlying s/w is extremely complex => security flaws

• A web server can be exploited as a launching pad• Most clients are untrained & not aware of the risks

Page 6: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 6

Web Security ThreatsWeb Security Threats

• Threats may be classified as: Passive attacks

• Eavesdropping Active attacks

• Impersonating• Altering messages in transit• Altering information on a website

• Threats can be in: Web server computer system security Web browser computer system security Network traffic network security

Page 7: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 7

Web SecurityWeb Security

• Network level: IPSec Transparent to end users & applications Only selected traffic need incur the overhead of

IPSec processing• Transport level: SSL/ TLS

Page 8: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 8

Web SecurityWeb Security

Page 9: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 9

Web SecurityWeb Security

• SSL (or TSL) can be implemented in two ways As part of the underlying protocol suite =>

transparent to application As embedded in specific packages – Netscape,

Explorer etc• Application specific security services are embedded• Can be tailored to the specific needs – eg SET

Page 10: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 10

SSL (Secure Socket Layer)SSL (Secure Socket Layer)

• transport layer security service• originally developed by Netscape• version 3 designed with public input• subsequently became Internet standard known

as TLS (Transport Layer Security)• uses TCP to provide a reliable end-to-end

service• SSL has two layers of protocols

Page 11: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 11

SSL ArchitectureSSL Architecture

Page 12: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 12

SSLSSL

• SSL Record Protocol provides basic security services to various higher layer protocols (eg. HTTP)

• The 3 higher layer protocols are defined as part of SSL These SSL-specific protocols are used in the

management of SSL exchanges• Two important SSL concepts are:

SSL Session SSL Connection

Page 13: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 13

SSL ArchitectureSSL Architecture

• SSL session an association between client & server created by the Handshake Protocol define a set of cryptographic parameters may be shared by multiple SSL connections

• SSL connection a transient, peer-to-peer, communications link associated with 1 SSL session

Page 14: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 14

SSL Record ProtocolSSL Record Protocol

• confidentiality using symmetric encryption with a shared secret

key defined by Handshake Protocol IDEA, RC2-40, DES-40, DES, 3DES, Fortezza,

RC4-40, RC4-128 message is compressed before encryption

• message integrity using a MAC with shared secret key similar to HMAC but with different padding

Page 15: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 15

SSL Record Protocol OperationSSL Record Protocol Operation

Page 16: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 16

SSL Change Cipher Spec ProtocolSSL Change Cipher Spec Protocol

• one of 3 SSL specific protocols which use the SSL Record protocol

• a single message• causes pending state to become current• hence updating the cipher suite in use

Page 17: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 17

SSL Alert ProtocolSSL Alert Protocol

• conveys SSL-related alerts to peer entity• severity

• warning or fatal

• specific alert• unexpected message, bad record mac, decompression

failure, handshake failure, illegal parameter• close notify, no certificate, bad certificate, unsupported

certificate, certificate revoked, certificate expired, certificate unknown

• compressed & encrypted like all SSL data

Page 18: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 18

Page 19: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 19

SSL Handshake ProtocolSSL Handshake Protocol

• allows server & client to: authenticate each other to negotiate encryption & MAC algorithms to negotiate cryptographic keys to be used

• comprises a series of messages in phases Establish Security Capabilities Server Authentication and Key Exchange Client Authentication and Key Exchange Finish

Page 20: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 20

SSL Handshake ProtocolSSL Handshake Protocol

Page 21: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 21

TLS (Transport Layer Security)TLS (Transport Layer Security)

• IETF standard RFC 2246 similar to SSLv3• with minor differences

in record format version number uses HMAC for MAC a pseudo-random function expands secrets has additional alert codes some changes in supported ciphers changes in certificate negotiations changes in use of padding

Page 22: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 22

TLS Function P_hash (secret, seed)TLS Function P_hash (secret, seed)

Page 23: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 23

Secure Electronic Transactions Secure Electronic Transactions (SET)(SET)

• open encryption & security specification• to protect Internet credit card transactions• developed in 1996 by Mastercard, Visa etc• not a payment system• rather a set of security protocols & formats

secure communications amongst parties trust from use of X.509v3 certificates privacy by restricted info to those who need it

Page 24: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 24

SET ComponentsSET Components

Page 25: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 25

SET TransactionSET Transaction1. customer opens account2. customer receives a certificate3. merchants have their own certificates4. customer places an order5. merchant is verified6. order and payment are sent7. merchant requests payment authorization8. merchant confirms order9. merchant provides goods or service10. merchant requests payment

Page 26: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 26

Dual SignatureDual Signature

• customer creates dual messages order information (OI) for merchant payment information (PI) for bank

• neither party needs details of other• but must know they are linked• use a dual signature for this

signed concatenated hashes of OI & PI

Page 27: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 27

Page 28: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 28

Purchase Request – CustomerPurchase Request – Customer

Page 29: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 29

Purchase Request – MerchantPurchase Request – Merchant

Page 30: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 30

Purchase Request – MerchantPurchase Request – Merchant

1. verifies cardholder certificates using CA sigs2. verifies dual signature using customer's

public signature key to ensure order has not been tampered with in transit & that it was signed using cardholder's private signature key

3. processes order and forwards the payment information to the payment gateway for authorization (described later)

4. sends a purchase response to cardholder

Page 31: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 31

Payment Gateway AuthorizationPayment Gateway Authorization

1. verifies all certificates2. decrypts digital envelope of authorization block to obtain

symmetric key & then decrypts authorization block3. verifies merchant's signature on authorization block4. decrypts digital envelope of payment block to obtain

symmetric key & then decrypts payment block5. verifies dual signature on payment block6. verifies that transaction ID received from merchant matches

that in PI received (indirectly) from customer7. requests & receives an authorization from issuer8. sends authorization response back to merchant

Page 32: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 32

Payment CapturePayment Capture

• merchant sends payment gateway a payment capture request

• gateway checks request• then causes funds to be transferred to

merchants account• notifies merchant using capture response

Page 33: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 33

SummarySummary

• have considered: need for web security SSL/TLS transport layer security protocols SET secure credit card payment protocols

Page 34: Gold Coast Campus School of Information Technology 2003/16216/3112INT Network Security 1Copyright © Griffith University, 2003 6216INT / 3112INT Network

2003/1 6216/3112INT Network Security Lecture 7 – Web Security - 34

Tutorial 12Tutorial 12

•Why Web presents new challenges with respect to providing security?•What are the advantages of each of the three approaches shown in Fig 17.1?•What protocols comprise SSL?•What is the difference between an SSL connection and an SSL session?•What services are provided by the SSL Record Protocol?•List the principal categories of SET participants.•Explain the sequence of events involved in a SET transaction.•What is a dual signature and what is its purpose?