writeup shady oaks financial
daily challenge: 16/01/26
- 🟢 difficulty: easy
- ⚡ xp earned: 10
- 📂 categories:
api - 🛠️ vulns:
broken function level authorization (bfla)
0x00: recon
-
we can start registering our user to this trading webapp

-
our account starts with 1k euros (i wish that isn't a ctf.) and we can buy/sell digital stocks, exchange money between currencies and all our actions are registered.

0x01: show me the flag!
-
after testing some business logic vulns, we can perform a code review in the
.jsfiles
-
when we try to access these admin routes, for my surprise, all of them works! this is an broken function level authorization, when a common user can perform high-privillege actions in the application. in this case, a common trader can see all the trades ever made.

-
continuing our code review, we can see there exists an
/api/admin/flagendpoint and by the logic (the vuln, lol), we can take the flag.