Skip to content

Instantly share code, notes, and snippets.

@Xib3rR4dAr
Created June 26, 2023 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xib3rR4dAr/32b30234dda814a50361364bfe9aa1e7 to your computer and use it in GitHub Desktop.
Save Xib3rR4dAr/32b30234dda814a50361364bfe9aa1e7 to your computer and use it in GitHub Desktop.
Solution of challenge "conundrum" from AUPCTF

Conundrum

Challenge Name: Conundrum
Challenge Text: Superuser
Hint: No hint provided

URL: https://challs.aupctf.live/conundrum/

Provided: image

Solution

  1. Visiting main page shows username/password fields.

image

Form Submitted

  1. Visiting robots.txt gives /usernames/ and /passwords/ endpoints
    image

  2. Visiting https://challs.aupctf.live/conundrum/usernames/ and https://challs.aupctf.live/conundrum/passwords/ gives list of usernames and passwords.

  3. Select list of usernames/passwords with mouse and copy them to clipboard. Since some charcters like & would be displayed in page source as &, we can simply copy with mouse so that correct passwords are copied.

Usernames list

Passwords list

  1. Intercept login request in Burp and send to intruder.
  2. Next would be to try each username against each password in login request. For this, in Intruder we can use cluster bomb attack type and select value of username/parameters as variables in Intruder.

image

  1. Paste users list from clipboard in payload set 1 and passwords list in payload set 2.

Payload set 1:
image

Payload set 2:
image

  1. Start intruder and sort responses by response length. We'll notice that one response has different response size than others.

image

Rendered response:
image

  1. Looking at response tells us Login was successfull but needed to login as admin to get flag.

  2. In request, we can try multiple things like try headers and other things. The thing that worked was adding admin=true (admin=1 didn't work) in request having correct credentials, we'll be logged in as admin and flag will be in response body.

image

End: Got First Blood 🩸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment