SeleniumLab

Course3 · Professional QA engineering → Security Testing Basics

3 · Professional QA engineering

Auth, sessions, and authorization

18 min · Module 19

Verify authentication (who you are) and authorization (what you may access). Test horizontal privilege issues (user A sees user B tickets).

Lab: call /lab/api/tickets/ logged out vs logged in; create as user A and ensure B cannot fetch A’s id if isolation is enforced.

Example / notes

import requests
r = requests.get("http://127.0.0.1:8000/lab/api/tickets/")
# Expect 401/302/403 when anonymous — not another user's data

Practice in Lab: /lab/api/tickets/

Log in to track progress / take quizzes
OWASP-minded checks for web apps →
Modules in this track