MetaCTFMediumCTF Challenge
Admin Portal
Admin Portal
2024-11-22
##Challenge Name: Admin Portal
###Solves
- >Solves: 280
- >Points: 150
###Description
I'm writing a webpage for admins to check on their flags, can you do me a favor and check it out to make sure there aren't any issues?
URL: http://adminportal.chals.mctf.io/
###Approach
- >
Initial Observation:
- >Visited the portal and noticed the message: "Only admins can see the page."
- >
Inspecting the Source Code:
- >Used the browser's developer tools (
) to examine the HTML, CSS, and JavaScript source code.Inspect Element - >Found nothing suspicious or helpful in the source code.
- >Used the browser's developer tools (
- >
Checking Cookies:
- >
Navigated to the browser's cookie storage using developer tools.
- >
Observed that the
cookie was set torole
.user
- >
- >
Exploiting the Cookie:
- >
Edited the
cookie value fromrole
touser
.admin - >
Refreshed the page, which granted access to the admin section.

- >
- >
Flag Retrieval:
- >The flag was displayed on the admin page:
plaintext
MetaCTF{co0ki3_p0wer3d_p0rt4l}
- >The flag was displayed on the admin page:
###Flag
MetaCTF{co0ki3_p0wer3d_p0rt4l}