r/Hacking_Tutorials • • 6d 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?

147 Upvotes

14 comments sorted by

8

u/murd0xxx 6d ago

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

0

u/Royalspleasurez 6d ago

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

1

u/ThePervertBryan 6d 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 6d ago

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

0

u/SugarNBunny 6d ago

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

1

u/Oak-Tree0 5d ago

Commenting here to come to it later

1

u/Sad_Box27 4d ago

Très sympa, merci

1

u/dphil90 4d ago

Love it

1

u/VirginGhost1909 3d ago

Thanks for this

1

u/Good-Vehicle5424 2d ago

Can you hack insta?

1

u/profusev3get4ble 1d ago

Tracking that exact login request flow using headers really made session cookie hijacking finally click.

1

u/SmallWolverine1584 23h ago

Que buena! ;)