NITHUB SECURITY LAB · CTF · GUIDED WALKTHROUGH
NITHUB CTF Web Exploit Chain
RECON INFO DISCLOSURE SQLi BYPASS IDOR COOKIE TAMPERING BURP · FFUF · DEVTOOLS

A guided walkthrough of the NITHUB Security Lab web CTF — six stages from a first robots.txt read to executive payroll. Directory discovery leaks backup files, a concatenated login query falls to SQL injection, an unchecked ?id= walks employee records up to the CEO, and a client-side role cookie hands over the admin panel. Each stage carries the why, not just the payload — built to teach the reasoning behind the chain.

VIEW THE CHAIN ↓
THE TARGET
Objective
Reach the admin payroll and capture the flag
Class
Web application · guided / beginner-friendly
Toolkit
Burp Suite · ffuf / gobuster · browser DevTools
Bug Classes
Info disclosure · SQLi · IDOR · client-trust
Endpoints
/dev-backup · /portal · /profile · /admin/payroll
Result
Admin payroll unlocked · flag captured
HOW THE PIECES CONNECT
01
Recon
Find the Hidden Path
Reading robots.txt hands over a Disallow: /dev-backup — the same paths ffuf and gobuster would brute-force. Recon is mapping the attack surface.
02
Info Disclosure
Read the Leaked Files
Directory listing on /dev-backup exposes config.php.bak and notes.txt — the notes spell out three weaknesses that become the roadmap for the whole box.
03
Exploitation
SQLi Login Bypass
In Burp Repeater, ' OR '1'='1' -- in the username turns the concatenated login query always-true and comments out the rest — auth bypassed, redirected in as an employee.
04
Pivot
IDOR to the CEO
The server serves any ?id= without an ownership check; intercepting and walking 1002 → 1005 in Burp lands on the CEO's record.
05
Privilege Escalation
Role Cookie Tampering
Editing role=employee to role=admin — in Burp or straight in DevTools — unlocks /admin/payroll. Role checks belonged on the server, not in a client cookie.
✓
Capture
One Continuous Path
The executive payroll loads and the flag drops. None of the five bugs is exotic — the lesson is that a leaked backup, a string-built query, an unchecked id, and a trusted cookie form one chain, not four isolated findings.
WALKTHROUGH
NITHUB CTF — Guided Walkthrough (Full Report)
The complete hands-on guide: every command, request, and Burp step from recon to flag, with the reasoning behind each stage and the defensive takeaway — why the bug existed and how it should have been closed.
DOWNLOAD WALKTHROUGH ↓