PDF Version Available

This document is also available in PDF format: websecurity.pdf

The PDF version includes bookmarks for easy navigation and is optimized for printing.

Accessibility Notice

This document is also available in HTML format at:

Link: https://aholdengouveia.name/InfoSec/labs/websecurity.html

The HTML version provides enhanced accessibility features including keyboard navigation, screen reader support, responsive design, dark mode support, and high contrast options.

Learning Outcomes

By the end of this lab, you will be able to:

Lab Instructions

Everything in this lab runs in your web browser, so you don't need to install anything. All the tools are linked under Resources.

You don't need to know how to code. Hacksplaining walks you through each step, and explains what's happening as you go.

Only practice attacks on sites made for practice, like Hacksplaining. Trying an attack on a real website without permission is illegal, even just to see if it works.

Screenshots

This lab asks for 7 screenshots. Each screenshot should have your name, term, and year. One of the easiest ways to do that is make a text document with your name and term/year on your computer and save it to use all term. Any screenshots that don't include this information won't be counted.

Example screenshot: a web browser showing the Google home page, with a small text editor window in front of it that says YOUR NAME HERE and TERM YEAR
This is an image of what each of your screenshots should look like

Part 1: Attack a Practice Website

Hacksplaining has short lessons where you attack a pretend website it runs, then learn how to fix it. Sign up for a free account. You can use your school email.

Pick two of these lessons:

For each lesson:

  1. Finish the lesson and its quiz. Take a screenshot of the end of the lesson, showing it's complete.
  2. In your own words, explain how the attack works, as if you were telling a friend who doesn't work in IT.
  3. What could an attacker get or do with this attack? Who gets hurt: the website, its users, or both?
  4. How can the website's owner prevent it?

Part 2: How Trackable Is Your Browser?

EFF's Cover Your Tracks tests how websites and advertisers see your browser, and how unique it looks. No account is needed.

  1. Run the test in the browser you use most. Take a screenshot of the results.
  2. Run it again with a different setup, such as a private window, a different browser, or your phone. Take a screenshot of the results.
  3. For each test, write down the browser and setup you used, whether it blocked tracking ads and invisible trackers, and whether your fingerprint was unique.
  4. What changed between the two tests? Which setup protected you better?
  5. Pick one thing the results showed about your browser, such as your screen size, time zone, or fonts. Why would a tracker want to know this?

Part 3: Certificates and Browser Warnings

Every HTTPS website has a certificate, which proves the website is who it says it is.

  1. Pick 2 websites you use often. Select the padlock (or the icon next to the address), and find the certificate. Take a screenshot of each one.
  2. For each website, write down who issued the certificate, when it starts and expires, and how many days it lasts. A calendar or a date calculator website is fine for counting days.
  3. Were the two certificates from the same issuer? Did they last the same length of time? Why do you think certificates are getting shorter?

badssl.com is a website made for testing. It has pages with broken certificates on purpose, so you can see the warnings safely. Visit each of these pages, and don't click through the warnings:

  1. Take a screenshot of one of the warnings.
  2. For each page, explain in your own words what's wrong with the certificate, and why your browser warned you.
  3. If you saw a warning like this on your bank's website, what would you do? Why?

Part 4: Your Advice

  1. Based on this lab, write 3 tips to help a friend or family member stay safer on the web. For each tip, explain which part of the lab it came from.

Deliverables

One file that includes:

Resources

References, a video, a PowerPoint and some notes are available at my website Link: https://www.aholdengouveia.name/InfoSec/WebSecurity.html

Hacksplaining lessons, for Part 1 Link: https://www.hacksplaining.com/lessons

EFF's Cover Your Tracks, for Part 2 Link: https://coveryourtracks.eff.org/

badssl.com, for Part 3 Link: https://badssl.com/

What HTTPS and certificates are Link: https://en.wikipedia.org/wiki/HTTPS

The OWASP Top 10 web application security risks Link: https://owasp.org/www-project-top-ten/