r/Hacking_Tutorials • • 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.

  1. Open Chrome DevTools → Network. Enable Preserve log so requests stay visible when the page changes.
  2. Try one incorrect password, then the correct one. Find the requests created by those two attempts.
  3. 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?
  4. Compare the responses. Look at the status codes, response bodies and headers. What actually changed between the failed and successful login?
  5. Open your account or profile page. Inspect the request that retrieves your account information. Look for a Cookieor Authorization header. 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 comments sorted by

6

u/murd0xxx 1d ago

These are the right kind of posts to be posted here. Challenges are a good idea!

1

u/LilacTwiink 23h ago

yeah these hands-on challenges are what actually clicked for me too

1

u/Royalspleasurez 19h ago

agreed, these challenges are what actually stick, you got any other ones that worked for you?

3

u/Secret_Midnight_9499 1d ago

Literally writing this down now so I can remember to try it later!

0

u/SugarNBunny 1d ago

sounds like a plan, might join in and see how far i get before getting distracted

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.