Security




CS174

Chris Pollett

Nov 21, 2016

Outline

Attacking Web-sites

XSS

Mitigations

Quiz

Which of the following statements is true?

  1. CSS can be used only to style HTML, to style XML you must use XSLT.
  2. XHR's can only use the HTTP GET method
  3. Using a proxy service, one can fake making XHR requests to third party sites.

Quiz

Which of the following statements is true?

  1. XSLT can be used only to style XML, to style HTML you must use CSS.
  2. XHR's can only use the HTTP POST method
  3. {"bob": 29, "sally" : [1, 2, 3]} is an example of a JSON object.

CSRF

Mitigations

Inclusion Attacks

More on Inclusion Attacks

Mitigations

SQL Injection Attacks and Prevention

Click-Jacking

Mitigations

target="_blank" Attack

Mitigations

HTTPS and the Secure Socket Layer

HTTPS: How it works

Configuring Apache for SSL

Creating a self-signed certificate