r/Hacking_Tutorials • u/Potential-Couple-745 • 1d ago
Question Beginner web hacking: trace a login request from start to finish
Here’s a small exercise if you’re getting started with web security: follow what happens between clicking “Log in” and opening your account page.
Use a local practice app with a test account.
- Open Chrome DevTools → Network. Enable Preserve log so requests stay visible when the page changes.
- Try one incorrect password, then the correct one. Find the requests created by those two attempts.
- Inspect what your browser sent. Check the URL, HTTP method and submitted fields under Headers and Payload. Can you identify where the username and password were sent?
- Compare the responses. Look at the status codes, response bodies and headers. What actually changed between the failed and successful login?
- Open your account or profile page. Inspect the request that retrieves your account information. Look for a
CookieorAuthorizationheader. What is the browser sending to identify your session?
Write down the flow in three sentences: what you submitted, what the server returned, and how later requests carry your login.
Understanding that flow gives you something concrete to investigate when you start studying authentication and session vulnerabilities.
What small exercise helped web security make sense to you?
84
Upvotes
6
u/murd0xxx 1d ago
These are the right kind of posts to be posted here. Challenges are a good idea!
3
u/Secret_Midnight_9499 1d ago
Literally writing this down now so I can remember to try it later!
1
u/ThePervertBryan 1d ago
I’m not a specialist but I would love to teach my students a bit about security just like this. Any good starting points for age 16 and up, like first steps in Cybersecurity? I really like this.