58
Testing slide visibility

Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Testing slide visibility

Page 2: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Credit card fraud

You don't want to bethe common point of purchase

Page 3: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Who am I?

Dan Wallis, fredden

Christchurch, NZ

@mrdanwallis, https://web.fredden.org/

I'm a sysadmin doing some web development.

Views are my own, et cetera.

ISIG, OWASP, music, family

Page 4: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

E2 Digital, Harvey Cameron

● Agency● Joomla, Magento, Silverstripe● Hosting, PCI

Page 5: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Payment Express (DPS)

px_post, px_pay, px_fusion

UA Website DPSCard

Success/fail

Amount, Card

Success/fail

UA Website DPSAmount

Success/fail

Token

Token, Card

Success/fail

px_post

px_pay

Page 6: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Magento

● Open-source shopping website framework● PHP/MySQL - “standard LAMP stack”● Very complex

● Slow.

Page 7: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Problem: Website is slow

Page 8: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Problem: Website is slow

● Concurrent users● Content Delivery Network● Minimum page load time● User experience

Page 9: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Scaling

● Vertical versus horizontal

Page 10: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Scaling

● One box

WebFiles

Database

Page 11: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Scaling

● Two boxen

WebFiles

Database

Page 12: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Scaling

● Small cluster● TLS

Load balancer

WebFiles

WebFiles

Database

Page 13: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Scaling

● Small cluster● TLS

Load balancer

Web Web

Files Database

Page 14: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Scaling

● Bigger clusterLoad balancer

Load balancer

Web Web WebWeb

Web Web Web Web

Files

Files

Database

Database Database

Page 15: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Problem: Website is slow

● Concurrent users● Content Delivery Network● Minimum page load time● User experience

Page 16: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Problem: Website is slow

● Concurrent users● Content Delivery Network● Minimum page load time● User experience

Page 17: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Heartbleed● Peek into server's memory● https://xkcd.com/1354/

1

2

3

4

5

6

Page 18: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Problem: Website is slow

● Concurrent users● Content Delivery Network● Minimum page load time● User experience

Page 19: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

CDN

Page 20: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Problem: Website is slow

● Concurrent users● Content Delivery Network● Minimum page load time● User experience

Page 21: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Problem: Website is slow

● Concurrent users● Content Delivery Network● Minimum page load time● User experience

Page 22: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Varnish & Turpentine

● TLS

UA

Website

UA

Website

Transparent proxy

Page 23: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Problem: Website is slow

● Concurrent users● Content Delivery Network● Minimum page load time● User experience

Page 24: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Problem: Website is slow

● Concurrent users● Content Delivery Network● Minimum page load time● User experience

Page 25: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount
Page 26: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount
Page 27: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount
Page 28: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount
Page 29: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount
Page 30: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount
Page 31: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount
Page 32: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount
Page 33: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount
Page 34: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount
Page 35: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount
Page 36: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount
Page 37: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount
Page 38: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount
Page 39: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount
Page 40: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount
Page 41: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount
Page 42: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Checkout experience

Login orGuest

Billingaddress

Shippingaddress

Shippingmethod

Paymentmethod

Terms,Confirm

Payment(px_pay)

Done

Page 43: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Checkout experience

Login orGuest

Billingaddress

Shippingaddress

Shippingmethod

Paymentmethod

Terms,Confirm

Payment(px_pay)

Done

Payment(px_pay)

Done“One-step checkout”

AJAX AJAX AJAX AJAX AJAX

Page 44: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Checkout experience

Login orGuest

Billingaddress

Shippingaddress

Shippingmethod

Paymentmethod

Terms,Confirm

Payment(px_pay)

Done

Payment(px_pay)

Done“One-step checkout”

AJAX AJAX AJAX AJAX AJAX

Done“One-step checkout” + px_fusion

AJAX AJAX AJAX AJAX AJAX AJAX

Page 45: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Checkout experience

Login orGuest

Billingaddress

Shippingaddress

Shippingmethod

Paymentmethod

Terms,Confirm

Payment(px_pay)

Done

Payment(px_pay)

Done“One-step checkout”

AJAX AJAX AJAX AJAX AJAX

Done“One-step checkout” + px_fusion

AJAX AJAX AJAX AJAX AJAX AJAX

Page 46: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Checkout experience

Login orGuest

Billingaddress

Shippingaddress

Shippingmethod

Paymentmethod

Terms,Confirm

Payment(px_pay)

Done

Payment(px_pay)

Done“One-step checkout”

AJAX AJAX AJAX AJAX AJAX

Done“One-step checkout” + px_fusion

AJAX AJAX AJAX AJAX AJAX* AJAX

Page 47: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Problem: Website is slow

● Concurrent users● Content Delivery Network● Minimum page load time● User experience

Page 48: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Problem: Website is slow

● Concurrent users● Content Delivery Network● Minimum page load time● User experience

Page 49: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Success

● Website no longer “slow.”● Win!

● The end.

Page 50: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

It's never the end

Page 51: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Problem: “website hacked”

● Incident response

● SVN● DB in staging & dev

Page 52: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Credit card fraud

● Common point of purchase

Page 53: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Load balancer

Load balancer

Web Web WebWeb

Web Web Web Web

Files

Files

Database

Database Database

Transparent proxy

Page 54: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Credit card fraud

● Common point of purchase● Single-use card

Page 55: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Checkout experience

Login orGuest

Billingaddress

Shippingaddress

Shippingmethod

Paymentmethod

Terms,Confirm

Payment(px_pay)

Done

Payment(px_pay)

Done“One-step checkout”

AJAX AJAX AJAX AJAX AJAX

Done“One-step checkout” + px_fusion

AJAX AJAX AJAX AJAX AJAX* AJAX

Page 56: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Multi-factor

● Credit card details sent to web server● Heartbleed to read these out of memory

Page 57: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Lessons learnt

● Patch CVEs. Whose responsibility.● Expect the unexpected from users.● Staff attrition. Hand-overs important.● Documentation of policy, process.● Incident team, process.

Page 58: Testing slide visibility Feb 2016.pdf · Hosting, PCI. Payment Express (DPS) px_post, px_pay, px_fusion UA Website DPS Card Success/fail Amount, Card Success/fail UA Website DPS Amount

Thanks