r/Hacking_Tutorials • u/Potential-Couple-745 • 7d 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?
151
Upvotes
8
u/murd0xxx 7d ago
These are the right kind of posts to be posted here. Challenges are a good idea!
1
u/ThePervertBryan 7d 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.
3
u/Secret_Midnight_9499 7d ago
Literally writing this down now so I can remember to try it later!
1
u/Oak-Tree0 6d ago
Commenting here to come to it later
1
u/Sad_Box27 5d ago
Très sympa, merci
1
u/dphil90 5d ago
Love it
1
u/VirginGhost1909 4d ago
Thanks for this
1
u/Good-Vehicle5424 3d ago
Can you hack insta?
1
u/profusev3get4ble 2d ago
Tracking that exact login request flow using headers really made session cookie hijacking finally click.
1
u/SmallWolverine1584 1d ago
Que buena! ;)