Top Banner
COMP9321 Web Application Engineering Semester 2, 2016 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 9 1 COMP9321, 16s2, Week 9 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2445
70

COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Mar 12, 2018

Download

Documents

vunhan
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: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

COMP9321 Web Application EngineeringSemester 2, 2016

Dr. Amin BeheshtiService Oriented Computing Group, CSE, UNSW Australia

Week 9

1COMP9321, 16s2, Week 9

http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2445

Page 2: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Assignment 2

2COMP9321, 16s2, Week 9

The due date for this assignment 2 is (end of Mid Semester Break):Sunday, 2 October 2016, 23:59:59.

Demo will be held during the lab times in week 10.

UNSW, CSE, Calendar:https://student.unsw.edu.au/calendar

Page 3: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Assignment 3

3COMP9321, 16s2, Week 9

Released…

Page 4: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Introduction to Web Application Security

4COMP9321, 16s2, Week 9

Acknowledgements

This presentation contains material prepared by Halvard Skogsrud, SeniorSoftware Engineer, Thoughtworks, Inc. Sydney, Australia and from the OpenWeb Application Security Project (OWASP) http://www.owasp.org

Page 5: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Introduction to Web Application Security

5COMP9321, 16s2, Week 9

Warning

The objective of this presentation is to show you common security loopholesappearing in Web applications. However, it is not meant to encourage you toattack web applications. Such actions are both a breach of the law in mostcountries, and of the CSE policy. Hence, by attempting any of the techniquespresented in this lecture, you may be prosecuted by law enforcement and faceexpulsion from the university.

Page 6: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Securing your Web Application

6COMP9321, 16s2, Week 9

Page 7: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Securing your Web Application: Threats!

7COMP9321, 16s2, Week 9

Page 8: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Securing your Web Application: Threats!

8COMP9321, 16s2, Week 9

Page 9: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Securing your Web Application: Threats!

9COMP9321, 16s2, Week 9

Page 10: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Securing your Web Application: Threats!

10COMP9321, 16s2, Week 9

Page 11: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Securing your Web Application: Requirements!

11COMP9321, 16s2, Week 9

Page 12: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

SQL Injection

12COMP9321, 16s2, Week 9

Page 13: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

SQL Injection

13COMP9321, 16s2, Week 9

SQL injection:

• is a code injection technique.• used to attack data-driven applications

• How: a malicious SQL statements are inserted into an entry field forexecution.

Page 14: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

SQL Injection

14COMP9321, 16s2, Week 9

SQL injection:

• is a code injection technique.• used to attack data-driven applications

• How: a malicious SQL statements are inserted into an entry field forexecution.

Page 15: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

SQL Injection: What is wrong?

15COMP9321, 16s2, Week 9

Page 16: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

SQL Injection: What is wrong?

16COMP9321, 16s2, Week 9

Page 17: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

SQL Injection: What is wrong?

17COMP9321, 16s2, Week 9

Google(comment in sql)

Page 18: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

SQL Injection: What is wrong?

18COMP9321, 16s2, Week 9

Page 19: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

SQL Injection: Summary!

19COMP9321, 16s2, Week 9

Page 20: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

SQL Injection: Prevention!!

20COMP9321, 16s2, Week 9

To keep malicious inputs contained, any inputs written to the database need to be encoded.

SQL encoding: ' OR 1=1 --' is encoded to \ \'\ OR\ 1\=1\ \-\-'

https://en.wikipedia.org/wiki/Secure_input_and_output_handling

Page 21: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

SQL Injection: Prevention!!

21COMP9321, 16s2, Week 9

Page 22: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Cross Site Scripting (XSS)

22COMP9321, 16s2, Week 9

Page 23: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Cross Site Scripting (XSS)

23COMP9321, 16s2, Week 9

Cross-site scripting (XSS):

• is a type of computer security vulnerability typically found in web applications.• XSS enables attackers to inject client-side script into web pages viewed by other

users. • A cross-site scripting vulnerability may be used by attackers to bypass access

controls such as the same-origin policy.

Page 24: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Cross Site Scripting (XSS)

24COMP9321, 16s2, Week 9

Cross-site scripting (XSS):

• is a type of computer security vulnerability typically found in web applications.• XSS enables attackers to inject client-side script into web pages viewed by other

users. • A cross-site scripting vulnerability may be used by attackers to bypass access

controls such as the same-origin policy.

• Same-origin policy is an important concept in the web application security model.

• Under the policy, a web browser permits scripts contained in a first web page to access data in a second web page, but only if both web pages have the same origin.

Page 25: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Cross Site Scripting (XSS)

25COMP9321, 16s2, Week 9

Cross-site scripting (XSS):

• is a type of computer security vulnerability typically found in web applications.• XSS enables attackers to inject client-side script into web pages viewed by other

users. • A cross-site scripting vulnerability may be used by attackers to bypass access

controls such as the same-origin policy.

• Same-origin policy is an important concept in the web application security model.

• Under the policy, a web browser permits scripts contained in a first web page to access data in a second web page, but only if both web pages have the same origin.

e.g., a combination of URI scheme, hostname, and port number.

Page 26: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Cross Site Scripting (XSS): What is wrong?

26COMP9321, 16s2, Week 9

Page 27: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Cross Site Scripting (XSS): What is wrong?

27COMP9321, 16s2, Week 9

Suppose the victim is given this URL by the attacker (www.badguy.com):

Page 28: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Cross Site Scripting (XSS): What is wrong?

28COMP9321, 16s2, Week 9

The web page would then be injected with the following script:

Suppose the victim is given this URL by the attacker (www.badguy.com):

Page 29: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Cross Site Scripting (XSS): Summary!

29COMP9321, 16s2, Week 9

Page 30: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Cross Site Scripting (XSS): Prevention!!

30COMP9321, 16s2, Week 9

Page 31: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Cross Site Scripting (XSS): Prevention!!

31COMP9321, 16s2, Week 9

Page 32: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Cross Site Request Forgery (CSRF)

32COMP9321, 16s2, Week 9

Page 33: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Cross Site Request Forgery (CSRF)

33COMP9321, 16s2, Week 9

Cross-site request forgery

• also known as a one-click attack or session riding• abbreviated as CSRF or XSRF• is a type of malicious exploit of a website whereby unauthorized

commands are transmitted from a user that the website trusts

Page 34: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Cross Site Request Forgery (CSRF)

34COMP9321, 16s2, Week 9

Cross-site request forgery

• also known as a one-click attack or session riding• abbreviated as CSRF or XSRF• is a type of malicious exploit of a website whereby unauthorized

commands are transmitted from a user that the website trusts

Exploit: is a piece of software, a chunk of data, or a sequence of commands that takes advantage of a bug or vulnerability in order to cause unintended or unanticipated behavior to occur on computer software…

Page 35: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Cross Site Request Forgery (CSRF)

35COMP9321, 16s2, Week 9

Cross-site request forgery

• also known as a one-click attack or session riding• abbreviated as CSRF or XSRF• is a type of malicious exploit of a website whereby unauthorized

commands are transmitted from a user that the website trusts

Exploit: is a piece of software, a chunk of data, or a sequence of commands that takes advantage of a bug or vulnerability in order to cause unintended or unanticipated behavior to occur on computer software…

Such behavior frequently includes things like gaining control of a computer system, allowing privilege escalation, or a denial-of-service attack.

Page 36: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Cross Site Request Forgery (CSRF)

36COMP9321, 16s2, Week 9

Page 37: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Cross Site Request Forgery (CSRF)

37COMP9321, 16s2, Week 9

Page 38: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Cross Site Request Forgery (CSRF): Prevention!!

38COMP9321, 16s2, Week 9

A CAPTCHA is a type of challenge-response test used in computing todetermine whether or not the user ishuman.

Page 39: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Unvalidated Input

39COMP9321, 16s2, Week 9

Page 40: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Unvalidated Input

40COMP9321, 16s2, Week 9

Page 41: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Unvalidated Input

41COMP9321, 16s2, Week 9

Page 42: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Unvalidated Input: Summary

42COMP9321, 16s2, Week 9

Page 43: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Unvalidated Input: Prevention!

43COMP9321, 16s2, Week 9

Page 44: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Broken Authentication

44COMP9321, 16s2, Week 9

Page 45: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Broken Authentication

45COMP9321, 16s2, Week 9

Google(SHA-1)

Page 46: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Fixing Authentication: How To?!

46COMP9321, 16s2, Week 9

Google(MITM)

Page 47: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Fixing Authentication: Salting Passwords!

47COMP9321, 16s2, Week 9

• In cryptography, a salt is a random data that is used as an additionalinput to a one-way function that hashes a password or passphrase.

• The primary function of salts is to defend against dictionary attacksversus a list of password hashes and against pre-computed rainbowtable attacks.

• e.g. the salt and the password can be concatenated and processedwith a cryptographic hash function, and the resulting output (but notthe original password) can be stored with the salt in a database.

Page 48: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Fixing Authentication: Salting Passwords!

48COMP9321, 16s2, Week 9

Why add Salt?

If each password is simply hashed, identical passwords will have the same hash:There are two drawbacks:

1. Due to the birthday paradox, the attacker can find a password very quickly especially if the number of passwords in the database is large.

In probability theory, the birthday problem or birthday paradox concerns the probability that, in a set of n randomly chosen people, some pair of them will have the same birthday. See: http://en.wikipedia.org/wiki/Birthday_paradox

Page 49: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Fixing Authentication: Salting Passwords!

49COMP9321, 16s2, Week 9

Why add Salt?

If each password is simply hashed, identical passwords will have the same hash. There are two drawbacks:

1. Due to the birthday paradox, the attacker can find a password very quickly especially if the number of passwords in the database is large.

2. An attacker can use a list of precomputed hashes to break passwords in seconds.

A rainbow table is a precomputed table for reversing cryptographic hash functions, usually for cracking password hashes. See: http://en.wikipedia.org/wiki/Rainbow_table

Page 50: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Fixing Authentication: Salting Passwords!

50COMP9321, 16s2, Week 9

In order to solve these problems, a salt can be concatenated to the password beforethe digest operation.

A salt is a random number of a fixed length. This salt must be different for eachstored entry. It must be stored as clear text next to the hashed password.

In this configuration, an attacker must handle a brute force attack on eachindividual password. The database is now birthday attack/rainbow crack resistant.

• …consists of systematically checking allpossible keys or passwords until the correctone is found.

• In the worst case, this would involvetraversing the entire search space.

Page 51: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Fixing Authentication: Salting Passwords!

51COMP9321, 16s2, Week 9

Page 52: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Fixing Authentication: Salting Passwords!

52COMP9321, 16s2, Week 9

Page 53: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Fixing Authentication: Salting Passwords!

53COMP9321, 16s2, Week 9

Page 54: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Session Management

54COMP9321, 16s2, Week 9

Page 55: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Session Management: Problem or Solution?!

55COMP9321, 16s2, Week 9

Page 56: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Session Management: Problem or Solution?!

56COMP9321, 16s2, Week 9

Page 57: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Session Management: Problem or Solution?!

57COMP9321, 16s2, Week 9

Set-Cookie: <name>=<value>[; <Max-Age>=<age>] [; expires=<date>][; domain=<domain_name>][; path=<some_path>][; secure][; HttpOnly]

Page 58: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Transport Layer Security

58COMP9321, 16s2, Week 9

Page 59: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Transport Layer Security (e.g. HTTPS)

59COMP9321, 16s2, Week 9

Page 60: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Transport Layer Security (e.g. HTTPS)

60COMP9321, 16s2, Week 9

Google(Secure Sockets Layer , SSL)

Google(Certification Authority , CA)

Page 61: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

HTTPS: Basics…

61COMP9321, 16s2, Week 9

Page 62: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

HTTPS: Public-Key Cryptography

62COMP9321, 16s2, Week 9

Page 63: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

HTTPS: Shared-Key Cryptography

63COMP9321, 16s2, Week 9

Page 64: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

HTTPS: Hashing

64COMP9321, 16s2, Week 9

Page 65: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

HTTPS: Certificates

65COMP9321, 16s2, Week 9

Page 66: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

HTTPS: Signatures

66COMP9321, 16s2, Week 9

Page 67: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

HTTPS: How to? … Limitations?!

67COMP9321, 16s2, Week 9

How to?• Follow the steps at:

• https://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html

Page 68: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

Application Layer Security

68COMP9321, 16s2, Week 9

Page 69: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

References

69COMP9321, 16s2, Week 9

• http://www.owasp.org• https://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html

Page 70: COMP9321 Web Application Engineeringcs9321/16s2/lectures/lec09/Lec-09.pdf · COMP9321 Web Application Engineering Semester 2, 2016 ... A CAPTCHA is a type of challenge- ... Lec-09.pptx

70COMP9321, 16s2, Week 9