Challenges

CWE-756: Missing Custom Error Page

Current configuration of the project is set to debug. In case of a thrown exception, the attacker can see a lot of information, including parts of source code, which they never should be able to.

Swagger

Find SecureBank swagger.

Solution

Go to /swagger . You will find the flag in the swagger description.

Hidden page

Find a page that was used during development.

Solution

If you look through api/Auth/Register source code in the browser, you will find a one javascript method is commented out.

You will find the flag if you go to: /Auth/RegisterAdmin.

Registration with admin role

You need to register a new user with admin role.

Solution

If we look at the response of api/Auth/Login, we see that it returns the following json.

Auth/Register uses the same model. Next register a new user with userRight set to a number >50

You will find the flag in the response header.

Last updated

Was this helpful?