You are on page 1of 24

Chapter 6 | Web Security

ITMS- 3153 Information Systems Security

SHIRAJ MOHAMED M | MIS UNIT

Web Security
y Web now widely used by business,

government, individuals y But internet & web are vulnerable y Have a variety of threats y Integrity y Confidentiality y Denial of service y Authentication y Need added security mechanisms
2 SHIRAJ MOHAMED M | MIS UNIT

SSL (Secure Socket Layer)


y Transport layer security service y Originally developed by netscape y Version 3 designed with public input y Subsequently became internet standard known as TLS

(transport layer security) y Uses TCP to provide a reliable end-to-end service y SSL has two layers of protocols

SHIRAJ MOHAMED M | MIS UNIT

SSL Architecture

SHIRAJ MOHAMED M | MIS UNIT

SSL Architecture
y SSL connection
y Network transport y A transient, peer-to-peer, communications link y Associated with 1 SSL session

y SSL session
y An association between client & server y Created by the handshake protocol y Define a set of cryptographic parameters y May be shared by multiple SSL connections

SHIRAJ MOHAMED M | MIS UNIT

SSL Record Protocol Services


y Message integrity
y Using a MAC with shared secret key y Similar to HMAC but with different padding

y Confidentiality
y Using symmetric encryption with a shared secret key

defined by handshake protocol y Message is compressed before encryption

SHIRAJ MOHAMED M | MIS UNIT

SSL Record Protocol Operation

SHIRAJ MOHAMED M | MIS UNIT

SSL Change Cipher Spec Protocol


y One of 3 SSL specific protocols which use the SSL

record protocol y A single message y Causes pending state to become current y Hence updating the cipher suite in use

SHIRAJ MOHAMED M | MIS UNIT

SSL Alert Protocol


y Conveys SSL-related alerts to peer entity y Severity
y Warning or fatal

y Specific alert
y Warning: Close notify, no certificate, bad certificate, unsupported

certificate, certificate revoked, certificate expired, certificate unknown y Fatal: Unexpected message, bad record mac, decompression failure, handshake failure, illegal parameter

y Compressed & encrypted like all SSL data


9 SHIRAJ MOHAMED M | MIS UNIT

SSL Handshake Protocol


y Allows server & client to:
y Authenticate each other y To negotiate encryption & MAC algorithms y To negotiate cryptographic keys to be used

y Comprises a series of messages in phases


y y y y

Establish security capabilities Server authentication and key exchange Client authentication and key exchange Finish

10

SHIRAJ MOHAMED M | MIS UNIT

SSL Handshake Protocol

11

SHIRAJ MOHAMED M | MIS UNIT

TLS (Transport Layer Security)


y IETF standard RFC 2246 similar to sslv3 y With minor differences y In record format version number y Uses HMAC for MAC y A pseudo-random function expands secrets y Has additional alert codes y Some changes in supported ciphers y Changes in certificate negotiations y Changes in use of padding

12

SHIRAJ MOHAMED M | MIS UNIT

Secure Electronic Transactions (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 y Secure communications amongst parties y Trust from use of X.509v3 certificates y Privacy by restricted info to those who need it

13

SHIRAJ MOHAMED M | MIS UNIT

SET Components

14

SHIRAJ MOHAMED M | MIS UNIT

SET Transaction
1. 2. 3. 4. 5. 6. 7. 8. 9. 10.

Customer opens account Customer receives a certificate Merchants have their own certificates Customer places an order Merchant is verified Order and payment are sent Merchant requests payment authorization Merchant confirms order Merchant provides goods or service Merchant requests payment

15

SHIRAJ MOHAMED M | MIS UNIT

Dual Signature
y Customer creates dual messages
y Order information (OI) for merchant y Payment information (PI) for bank

y Neither party needs details of other y But must know they are linked y Use a dual signature for this
y Signed concatenated hashes of OI & PI

DS=E(PRc, [H(H(PI)||H(OI))])

16

SHIRAJ MOHAMED M | MIS UNIT

SET Purchase Request


y

SET purchase request exchange consists of four messages 1. Initiate request - get certificates 2. Initiate response - signed response 3. Purchase request - of OI & PI 4. Purchase response - ack order

17

SHIRAJ MOHAMED M | MIS UNIT

Purchase Request Customer

18

SHIRAJ MOHAMED M | MIS UNIT

Purchase Request Merchant


Verifies cardholder certificates using CA sigs. 2. 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. 4. Sends a purchase response to cardholder.
1.
19 SHIRAJ MOHAMED M | MIS UNIT

Purchase Request Merchant

20

SHIRAJ MOHAMED M | MIS UNIT

Payment Gateway Authorization


1. 2. 3. 4. 5. 6. 7. 8.

Verifies all certificates Decrypts digital envelope of authorization block to obtain symmetric key & then decrypts authorization block Verifies merchant's signature on authorization block Decrypts digital envelope of payment block to obtain symmetric key & then decrypts payment block Verifies dual signature on payment block Verifies that transaction ID received from merchant matches that in PI received (indirectly) from customer Requests & receives an authorization from issuer Sends authorization response back to merchant

21

SHIRAJ MOHAMED M | MIS UNIT

Payment Capture
y Merchant sends payment gateway a payment

capture request y Gateway checks request y Then causes funds to be transferred to merchants account y Notifies merchant using capture response

22

SHIRAJ MOHAMED M | MIS UNIT

Summary
y Have considered:
y Need for web security y SSL/TLS transport layer security protocols y SET secure credit card payment protocols

23

SHIRAJ MOHAMED M | MIS UNIT

References
y William Stallings, Cryptography and Network Security

(Fourth Edition).

2 4

SHIRAJ MOHAMED M | MIS UNIT

You might also like