Project documentation · 04
How to Work (Git & Proof)
A clear workflow for changes, evidence, and your audit report.
Project workflow
Diagram: Project workflow
Loading diagram…
Part A: Git workflow
Git commands
- Set your name (each member, on their own account):
git config --global user.name "Juan Dela Cruz"
git config --global user.email "juan@example.com"
- Start the repository before changing anything:
cd C:\xampp\htdocs\barangay-portal
git init
git add .
git commit -m "Initial commit"
- One commit per fix:
git add .
git commit -m "Fix: SQL injection on login page"
- Check your history:
git log --oneline
Diagram: Expected commit history
Loading diagram…
Good vs bad
- Good: an initial commit with the untouched code. One commit per fix with a clear message. Commits from every member, spread across days.
- Bad: one commit with everything. Messages like "update" or "final". All commits from one person.
Part B: Proof of every flaw
For every flaw (all 10), capture:
- Before screenshot: the attack working. Show the URL bar, the payload and the result.
- After screenshot: the same attack failing after your fix.
- The commit that fixed it (hash and message).
tip: Name screenshots consistently, e.g.
03-before.png,03-after.png.
Part C: Report entry template
Flaw #: (1–7 from checklist, 8–10 for hidden flaws you found)
Flaw name:
Location: file + line / page
How we found it: tool, payload, or code review (required for hidden flaws)
Before screenshot:
Risk: what an attacker could do
Fix: code before → code after
Commit: hash + message
After screenshot:
Next pageSystem Documentation