Sibivasan
SibivasanHome
Writeups
Writeups
  • Home
  • 2024
    • NiteCTF 2024
    • Glacier CTF-2024
    • Bluhens CTF-2024
    • TJCTF-2024
  • 2025
    • XSSit
    • Tekion
Powered by GitBook
On this page
  • Web Intro:
  • DNS:
  1. 2024

Bluhens CTF-2024

Web Challanges

Last updated 6 months ago

Web Intro:

In the challenge index page, it is stated that the developer learned from Solar Flare to use version control.

In the hint of using version control used in the application, I decided to check for .git leak in this challange.

/.git returns 403 forbidden
/.git/HEAD

It Will confirms that application default git branch is to be a master.

While checking for the git logs.

/.git/logs

Again application throws 403 Forbidden error.

While checking the HEAD file.

Application throws the Commit id with the comments.

Locating the /.git/ directory.

Extracting the commit.

let password = document.getElementById("password").value;
if (md5(password) == "1c63129ae9db9c60c3e8aa94d3e00495"){
    //You logged in!
    document.getElementById("page").innerHTML = "You ARE logged in... fetching flag";
    form.classList.add('hide');
    $.ajax({`
        method:"get",url:"flagme.php",data:{"password":password},success: function(data){
            $("#page").html(data);// Some code

Decrypt the Password 1c63129ae9db9c60c3e8aa94d3e00495

$.ajax({`
        method:"get",url:"flagme.php",data:{"password":password},success: function(data){
            $("#page").html(data);
/flagme.php?password=lqaz2wsx
Flag : udctf{00ph_g1t_b4s3d_l34ks?}

DNS:

The application will provide the flag only your dig from the 127.0.0.1.

Flag : UDCTF{sp00fing_5ucc3ss_127_0_0_1_f728bf}

While checking the layout of the git repository .

Using tool to clone the files to local.

ref:

https://git-scm.com/docs/gitrepository-layout
Git-dumper
https://git-scm.com/docs