48
TEST AUTOMATION WITH A DROP OF SECURITY SCANNING Easy guide how to benefit from WebDriver automation with proxy security scanners I.e. OWASP ZAP.

TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

TEST AUTOMATION WITH A

DROP OF SECURITY

SCANNINGEasy guide how to benefit from WebDriver

automation with proxy security scanners I.e.

OWASP ZAP.

Page 2: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

MICHAŁ BUCZKOQUALITY COACH AND SECURITY TESTER

[email protected]

buczkomichal

@docatisto

Page 3: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

AGENDA:

Page 4: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

AGENDA:

Why security is important?

Page 5: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

AGENDA:

Why security is important?

Test automation

Page 6: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

AGENDA:

Why security is important?

Test automation

Security scanners

Page 7: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

AGENDA:

Why security is important?

Test automation

Security scanners

Efficient combination

Page 8: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

WHY SECURITY

IS

IMPORTANT?

Don’t get Yourself

hacked..

Page 9: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

HOW MUCH IS STORED ONLINE ?

Page 10: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

HOW MUCH IS STORED ONLINE ?

Page 11: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

HOW MUCH IS STORED ONLINE ?

Page 12: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

HOW MUCH IS STORED ONLINE ?

Page 13: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

HOW MUCH IS STORED ONLINE ?

Page 14: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

HOW MUCH IS STORED ONLINE ?

Page 15: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

FIRST

CONCLUSIONS

1.) Too MUCH code…

2.) Too FEW experts…

3.) WE ARE HACKED !!

Page 16: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

THE THREAT

IS REAL..

#INFOSEC

Page 17: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

HTTPS://HAVEIBEENPWNED.COM/PWNEDWEBSITES

Page 18: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages
Page 19: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages
Page 20: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages
Page 21: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages
Page 22: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages
Page 23: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

5 BIGGEST

ATTACKS,

SO FAR…

Page 24: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

5 BIGGEST

ATTACKS,

SO FAR…

Page 25: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

5 BIGGEST

ATTACKS,

SO FAR…

Page 26: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

5 BIGGEST

ATTACKS,

SO FAR…

Page 27: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

5 BIGGEST

ATTACKS,

SO FAR…

Page 28: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

5 BIGGEST

ATTACKS,

SO FAR…

Page 29: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

TEST

AUTOMATION

Just brief

introduction to

WebDriver

Page 30: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

SELENIUM portable software-testing

framework for web applications.

provides a record/playback tool for authoring

provides a test domain-specific language (Selenese) to write tests in a number of popular programming languages, including C#, Groovy, Java, Perl, PHP, Python, Ruby and Scala.

The tests can then run against most modern web browsers.

deploys on Windows, Linux, and OS X platforms.

It is open-source software, released under the Apache 2.0 license

Page 31: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

SELENIUM AUTOMATION CODE SAMPLE

Page 32: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

SECURITY

SCANNERS

First steps in

vulnerability

identification

Page 33: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

OWASP ZAP▪ open-source web application security scanner.

▪ It is also fully internationalized and translated into over 25 languages.

▪ Used as a proxy server it allows the user to manipulate all of the traffic that passes through it,

including traffic using https.

▪ This cross-platform tool is written in Java and is available in all of the popular operating systems

▪ Some of the built in features include:

➢ Intercepting proxy server,

➢ Traditional and AJAX Web crawlers,

➢ Automated scanner,

➢ Passive scanner,

➢ Forced browsing,

▪ It has a plugin-based architecture and an online ‘marketplace’.

Page 34: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

ZAP SSL

CERTIFICATE

IN FIREFOX Open up OWASP ZAP

Page 35: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

ZAP SSL

CERTIFICATE

IN FIREFOX

go to Tools -> Options

Page 36: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

ZAP SSL

CERTIFICATE

IN FIREFOX

In the Certificates section, click on Generate

Page 37: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

ZAP SSL

CERTIFICATE

IN FIREFOX

Save the certificate in some location

Page 38: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

ZAP SSL

CERTIFICATE

IN FIREFOX

Navigate to the Preferences of your browser

Page 39: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

ZAP SSL

CERTIFICATE

IN FIREFOX

Click on the Advanced tab, navigate to the Certificates tab and click on View Certificates

Page 40: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

ZAP SSL

CERTIFICATE

IN FIREFOX

Select the Authorities tab and click on Import and choose the OWASP ZAP Root Certificate

Page 41: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

ZAP SSL

CERTIFICATE

IN FIREFOX

Check all the boxes

Page 42: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

ZAP SSL

CERTIFICATE

IN FIREFOX

Browse sites with HTTPS enabled. You're no

longer prompted with the SSL Security Exception

Error message.

Page 43: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

UI EXAMPLE

Page 44: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

REPORT EXAMPLE

Page 45: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

EFFICIENT

COMBINATION

Easy connection

between

WebDriver and

OWASP ZAP

Page 46: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

DRIVER

WITH PROXY

SELENIUM 2.0

The simple way to:

Set a manual proxy

Accept all SSL Certs

Run browser with proxy on all popups

Page 47: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

DRIVER

WITH PROXY

SELENIUM 3.0

The simple way to:

Set a manual proxy

Accept all SSL Certs

Run browser with proxy on all popups

Page 48: TEST AUTOMATION WITH A DROP OF SECURITY SCANNING · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over 25 languages

ANY

QUESTIONS?

Thank You…