Challenges
Last updated
Last updated
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.
Find SecureBank swagger.
Go to /swagger
. You will find the flag in the swagger description.
Find a page that was used during development.
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
.
You need to register a new user with admin role.
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.