/

CVE-2026-120446

Severity:

CRITICAL RISK

(9.4)

Missing Authentication (CWE-306) in madong-admin SaaS API

CVE-2026-120446

Deferred

Vulnerability type

Category:

Missing Authentication

CWE:

CWE-306

Impact:

Unauthorized tenant administration

Severity:

CRITICAL RISK

(9.4)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

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.

Sources

SourceLink
github.comgithub.com/madong-code/madong-admin-saas/blob/v5.1.4/app/platform/controller/tenant/AccountController.php#L26
github.comgithub.com/madong-code/madong-admin-saas/blob/v5.1.4/config/middleware.php
github.comgithub.com/madong-code/madong-admin-saas/commit/2a199a1523ed749c94b876bc2ae5fedf252b2e39
github.comgithub.com/madong-code/madong-admin-saas/issues/2
vulncheck.comvulncheck.com/advisories/madong-admin-saas-through-5.1.4-missing-authentication-via-platform-tenant-management-api

Frequently asked

questions

Yes. The described endpoints are remotely callable, and the vulnerability description states that authentication is not required.

No authenticated access is described as a prerequisite. The affected API must be reachable for requests to reach it.

Require authentication and operation-specific authorization on every tenant-management route, with access denied by default.

Validate middleware-to-route bindings, test that unauthenticated requests are rejected, and include authentication enforcement in code review and API security policies.

Find out what's already
exploitable in your codebase.