Tags: web osint linkedin
Rating:
Checkout the original writeup with relevant images included for more details
Can you get a valid invite code? The flag is the invite code.
Given the website URL (randomly generated), the navigation of webpages are controlled by the parameter page
:
|- /?page=landing (homepage)
|- /?page=about (description about UFOira Aerospace)
|- /?page=members (login form to access member-only page)
|- /?page=forgot (POST form to retrieve existing user's password)
|- /?page=karaoke (HTTP error code 500)
To find out the correct invitation code for the input box, we first look into the source code of this homepage (ie. /?page=landing
)
We can find out that the invitation code is validated by an in-file JS function (look for <script>
tag) called contactus()
Reverse engineering the contactus()
JS function to get the invitation code (Testing the understanding of JavaScript basic built-in function)
Requirements :
- length = 12 characters
- Separated into 3 ordered parts, that is concatenated with character '-'
- 1st part : "UFO"
- 2nd part : btoa("UFO") = "VUZP"
- 3rd part : "UFO".charCodeAt(0) + "UFO".charCodeAt(1) + "UFO".charCodeAt(2) = "234"
-> 1st flag : UFO-VUZP-234
Can you access the members-only area?
To access the member-only section, we have to pass through the authentication on page /?page=members
, but since we don't know the credential, we start the testing on page /?page=forgot
which requires only the username. It allows us to verify if the username exists in the database
To find the possible username, we start the searching on the page /?page=about
which consist 2 possible candidates, Ben Organa and Elliot Talton,and also a bracket borgana
. It turns out to be one of the existing username in the database, and now we need to find the answer of the security question -> borgana's birthplace
Since we know borgana has the same birthplace as Elliot Talton in the about
page, thus by using Google and LinkedIn searches, we can confirm that all the employees in UFOria Aerospace are :
Note : It requires the tester to signing their LinkedIn account, in order to view the profile right away with those URLs
's Lands Huys Cafe
, and the location of this place hould be helpful to find out their birth place.Bourtange
should be the correct answer for the security question.borgana
should be able to be retrieved after input the answer for the security password, hence now you should be able to access member-only
page with this set of credential, and the last flag will be returned after login successfully.