Infosec Matrix

Collection of Best Writeups for HackTheBox, Portswigger, Bug Bounty, TryHackme, OverTheWire, PwnCollege, PicoCTF, and More.

Follow publication

6.5 Lab: Information disclosure in version control history | 2024

2 min readFeb 4, 2024

Description

This lab discloses sensitive information via its version control history. To solve the lab, obtain the password for the administrator user then log in and delete the user carlos.

Solution

  1. Use the below command to download the .git of the server
    wget -r https://YOUR-LAB-ID.web-security-academy.net/.git/
  2. cd into the directory, cd into .git and cd into logs
  3. cat HEAD and note the commit ID that displays “Remove admin password from config”
  4. Type git show COMMITID it will show the password of Admin.
  5. Use the Password to Log in to the Admin Account and delete user Carlos to solve the Lab.

A YouTube Channel for Cybersecurity Lab’s Poc and Write-ups

Telegram Channel for Free Ethical Hacking Dumps

Thank you for Reading!

Happy Ethical Hacking ~

Author: Karthikeyan Nagaraj ~ Cyberw1ng

Infosec Matrix
Infosec Matrix

Published in Infosec Matrix

Collection of Best Writeups for HackTheBox, Portswigger, Bug Bounty, TryHackme, OverTheWire, PwnCollege, PicoCTF, and More.

Karthikeyan Nagaraj
Karthikeyan Nagaraj

Written by Karthikeyan Nagaraj

Entrepreneur | Writer | Cyber Security Consultant | AI Researcher TopMate - https://topmate.io/cyberw1ng

No responses yet

Write a response