Summary
Nezha Dashboard versions before 2.6.0 have authorization and tenant-isolation weaknesses across features such as NAT, DDNS, OAuth, cron, and server transfer. Depending on the affected path, members or unauthenticated attackers may capture login request bodies, take over DDNS profiles, create executable schedules without the required scope, or consume memory with buffered NAT requests.
Affected context
The vulnerabilities affect Nezha Dashboard functionality for managing NAT requests, DDNS profiles, OAuth-related hostnames, cron schedules, and server transfers. They arise where authorization, tenant boundaries, or resource limits are not consistently enforced; exposure depends on which features are enabled and how the Dashboard is configured.
Exploit preconditions
- Attack surface: Dashboard endpoints and workflows for NAT, DDNS, OAuth, cron, or server transfer
- Required access: A Dashboard member account for some actions; certain described paths may be reachable without authentication
- Trigger point: A request that claims a hostname, accesses or changes a profile, creates a schedule, transfers a server, or initiates a buffered NAT operation
- Why exploitation is possible: The affected paths may fail to enforce appropriate authorization, tenant ownership, execution scope, or resource limits
Why this happens
The primary issue is incorrect authorization (CWE-863): access decisions do not reliably match the requested action, resource ownership, or required scope. In combination with inadequate tenant isolation and resource controls, this can allow operations on another context or permit resource-intensive requests beyond intended limits.
Potential impact
- Attackers may capture login request bodies by claiming undeclared Dashboard hostnames.
- DDNS profiles may be hijacked or modified without proper authorization.
- Executable schedules may be created without the required execution scope.
- Buffered NAT requests may consume excessive memory and affect service availability.
- Server transfer or other feature workflows may be abused across authorization or tenant boundaries.
General mitigation guidance
Defensive approaches generally center on consistent authorization and bounded resource use:
- Apply server-side authorization checks to every action and resource, including ownership and tenant boundaries.
- Use explicit, least-privilege scopes for sensitive operations such as creating executable schedules.
- Validate hostname claims and bind them to verified ownership or approved configuration.
- Limit request sizes, buffering, concurrency, and processing time for resource-intensive operations.
- Prefer secure-by-default feature settings and minimize the privileges available to Dashboard members and service accounts.
- Treat client-supplied identifiers and configuration as untrusted, and avoid relying on UI checks as security controls.
How teams detect issues like this
- Review endpoint handlers and service-layer code for missing or inconsistent authorization checks, especially where resource ownership or tenant context is determined.
- Use static analysis and code review patterns to flag sensitive actions that lack explicit permission or scope checks.
- Test access-control policies across roles and tenants, including unauthenticated requests where applicable.
- Monitor for unusual hostname claims, DDNS profile changes, schedule creation, server transfers, and elevated NAT request volume or memory use.
- Enforce API policies for authentication, authorization, request size, and rate limits; automated review tools may help identify risky patterns.

