Skip to content

Latest commit

 

History

History
87 lines (66 loc) · 5.1 KB

Challenge01.md

File metadata and controls

87 lines (66 loc) · 5.1 KB

Challenge 1 - Setup your Environment and Discover

Home - Next Challenge [2] >

Pre-requisites

  • Your own Azure subscription with Owner access
  • Linux Instance, can be either:
    • Running Windows Subsystem for Linux (WSL) 1.0 or 2.0
    • Running on Mac
    • Running a Linux VM in Azure (link)
  • Install w3af on that Linux Instance (link)
    • This will be used to exercise the WAF
    • Just need the console version running
  • Some form of Chromium Web Browser installed

Introduction

In order for us to get started, let's talk a few basics. Web Browsers are the general clients used to interact with Web Sites. For a Web Browser to load a web site, generally you need the following:

  • A Domain Name System (DNS) Name
    • This lets your Web Browser take www.contosomasks.com and turn that into an IP Address to then talk to.
  • Something to host your content/website
    • There are lots of choices to run the application code and/or store the JavaScript, CSS, and HTML files.

When it comes to DNS, you have to register Names in what's called a "Domain". For a DNS Name of www.contosomasks.com:

  • contosomasks.com would be the Domain registered with a Domain name registrar
  • www would be an A Record or a CNAME Record created in the contosomasks.com Domain
    • A Record - An alias record that is a name for a specific IP Address
    • CNAME Record - A Canonical Name record that maps one name to another

We're going to setup a copy of the original Contoso Masks website. A link to deploy the ARM (Azure Resource Manager) template is in the Tips and with template located in the Resources folder folder. This will setup:

  • An Azure DNS Zone with the definition of your own subdomain of contosomasks.com.
    • This will let you have your own standalone public DNS to use for the challenges.
  • Azure App Service hosting the www Web site of your instance of Contoso Masks.
    • The website will be auto-deployed to the App Service.

Once we get everything deployed, we will take some time and look to analyze the website using your Web Browser's developer tools.

Description

For this challenge we are going to:

  1. Complete all the pre-requisites
  2. Deploy the ARM Template, you will be required to specify:
    1. Resource Group (best to create a new one)
    2. Region to deploy to
    3. Sitename: IMPORTANT - Must be unique identifier:
      1. Up to 13 characters long
      2. Must start with a lower case letter
      3. Next up to 12 characters can be either
        1. lower case character
        2. number
        3. dash '-'
  3. In your Web Browser, load up your new copy of www.***SITENAME***.contosomasks.com, where SITENAME is that parameter you used in 2.iii. Use the Development tools in the Web Browser to understand how the web pages and resources are loading, where they are coming from, and detail on how each requests loads.

Deploy the Website

Use the link below to deploy the solution to your resource group.

Deploy the to Azure

Success Criteria

  • Show that you can load w3af and display the help
    • Running w3af_console then the command help
  • Show the newly deployed resources in the Azure Portal
    • Highlighting the www record in your new Azure DNS Zone
  • Demonstrate your new version of the Contoso Website loads
  • Show the "waterfall" of the one of the Images in the Dev Tools of your Web Browser

Learning Resources