Summary
madong-admin-saas has a missing authentication check on platform tenant management API endpoints. An unauthenticated remote attacker may be able to list, create, modify, disable, or delete tenants and bind subscription plans.
Affected context
The issue affects the platform tenant management API in madong-admin-saas through version 5.1.4. It occurs when the platformapi middleware key does not match the platform application, leaving the described tenant account, plan-binding, and data-sync endpoints without the intended authentication.
Exploit preconditions
- Attack surface: The tenant management API is remotely reachable.
- Required access: No prior authentication is required, according to the vulnerability description.
- Trigger point: Requests to the
/platformapi/tenant/account, bind-plan, or sync-data endpoints. - Why exploitation is possible: The middleware key mismatch prevents the intended authentication middleware from matching the platform application.
Why this happens
The underlying issue is a mismatch between the middleware key (platformapi) and the platform application identifier (platform). As a result, authentication is not applied to the affected API routes. This is a CWE-306: Missing Authentication for Critical Function pattern: sensitive operations are available without verifying the caller's identity.
Potential impact
- An attacker may list tenant accounts and access information exposed by those endpoints.
- An attacker could create, modify, disable, or delete tenant records.
- An attacker may bind subscription plans without authorization.
- Unauthorized requests to the sync-data endpoint could affect tenant data workflows.
General mitigation guidance
Defensive patterns include:
- Requiring authentication by default for administrative and tenant-management routes.
- Applying explicit authorization checks for each sensitive operation, including tenant- and role-level permissions.
- Keeping route, application, and middleware identifiers consistent and validating their bindings at startup.
- Limiting administrative API exposure and running related services with least-privilege access.
- Treating unauthenticated access as a testable failure condition rather than relying on middleware configuration alone.
How teams detect issues like this
- Review route and middleware configuration for mismatched application identifiers or routes that bypass authentication.
- Use static analysis and code review checks to identify sensitive handlers without explicit authentication and authorization enforcement.
- Add automated tests that verify unauthenticated requests to every administrative endpoint are rejected.
- Monitor API access logs for tenant-management requests without an authenticated identity, and enforce policies requiring authentication on administrative routes.

