How ssrdio/securebank works
SecureBank is a deliberately vulnerable fintech training application. Users access banking, account, and store features through MVC pages or APIs; authorization and business services mediate those requests. A separate StoreAPI handles store catalog and purchase operations. CTF mode adds challenge-specific authorization behavior and a CTFd-compatible export. The README documents a broad set of configurable security challenges; source excerpts are incomplete, so several capability links are documented rather than traced through unsampled implementations.
Main entry points: Controllers MVC and API controllers · AuthController.cs Authentication pages · Services Banking business logic · AuthorizeService.cs Authorization
Components 23
Banking application
- MVC and API controllers
src/SecureBank/Controllers - Authentication pages
src/SecureBank/Controllers/AuthController.cs - Transactions
src/SecureBank/Controllers/TransactionController.cs - Transaction API
src/SecureBank/Controllers/Api/TransactionController.cs - Account features
src/SecureBank/Controllers/UserController.cs - Portal search
src/SecureBank/Services/PortalSearchBL.cs - File upload
src/SecureBank/Services/UploadFileBL.cs - Banking business logic
src/SecureBank/Services - Bank database
src/SecureBank/DAL/PortalDBContext.cs - Admin operations
src/SecureBank/Controllers/AdminController.cs
Identity and access
- Authorization
src/SecureBank/Authorization/AuthorizeService.cs - Cookie services
src/SecureBank/Authorization/CookieService.cs
Store services
- Store operations
src/SecureBank/Controllers/StoreController.cs - Store administration
src/SecureBank/Controllers/Api/AdminStoreController.cs - Store business logic
src/SecureBank/Services/StoreBL.cs - Store API
src/StoreAPI/Controllers/StoreController.cs - Store database
src/StoreAPI/DAL/StoreContext.cs
CTF training
- CTF authorization
src/SecureBank/Ctf/Authorization/CtfAuthorizeService.cs - CTF challenge services
src/SecureBank/Ctf/Services - CTFd export
src/SecureBank/Ctf/CTFd/CTFdExportService.cs
Other components
- Bank user
- PostgreSQL
- Mail service
Connections 23
- Bank user → MVC and API controllers: uses
- MVC and API controllers → Authentication pages: routes to
src/SecureBank/Controllers/AuthController.cs - MVC and API controllers → Transactions: routes to
src/SecureBank/Controllers/TransactionController.cs - MVC and API controllers → Transaction API: routes to
src/SecureBank/Controllers/Api/TransactionController.cs - MVC and API controllers → Account features: routes to
- MVC and API controllers → Portal search: routes to
- MVC and API controllers → File upload: routes to
- Bank user → Authentication pages: signs in
src/SecureBank/Controllers/AuthController.cs - Authentication pages → Banking business logic: delegates to
src/SecureBank/Controllers/AuthController.cs - Authentication pages → Mail service: uses
- Transactions → Banking business logic: delegates to
src/SecureBank/Controllers/TransactionController.cs - Transaction API → Banking business logic: delegates to
src/SecureBank/Controllers/Api/TransactionController.cs - Banking business logic → Bank database: accesses
- Bank database → PostgreSQL: persists in
- Bank user → Store operations: shops
- Store administration → Store business logic: delegates to
src/SecureBank/Controllers/Api/AdminStoreController.cs - Store business logic → Store API: calls
- Store API → Store database: reads and writes
src/StoreAPI/Controllers/StoreController.cs - Bank user → Authorization: authenticates through
- Authorization → Cookie services: validates
src/SecureBank/Authorization/AuthorizeService.cs - Authorization → CTF authorization: overridden by
src/SecureBank/Ctf/Authorization/CtfAuthorizeService.cs - CTF challenge services → CTFd export: exports challenges
- Bank user → CTF challenge services: practices challenges