portswigger-all-labs

Complete PortSwigger Web Security Academy Lab Writeups Detailed, categorized solutions for every lab — from APPRENTICE to EXPERT — covering all 30 vulnerability types.

View on GitHub

Labs Covered

This write-up focuses on the following PRACTITIONER-level lab from the PortSwigger Web Security Academy:

5 Information disclosure in version control history

This lab demonstrates how sensitive information, such as credentials or configuration data, may be exposed in version control history and can be extracted by attackers to compromise the application.

LAB 5 - Information disclosure in version control history

Lab Description :

image

Solution :

`

Overview

image

image

Solution

Step 1: Verify .git Directory Exposure

image

Step 2: Retrieve the Admin’s Password

Tool: Git-Dumper

Step 2.1: Download the .git Repository

Step 2.2: View Commit History

Step 2.3: Extract the Removed Password

Step 3: Login and Delete User Carlos

Step 3.1: Log In as Admin

image

Step 3.2: Delete User Carlos

image