/

CVE-2026-111643

Severity:

CRITICAL RISK

(9.8)

Authentication Bypass (CWE-306) in Misaka Danmu Server

CVE-2026-111643

Deferred

Vulnerability type

Category:

Authentication Bypass

CWE:

CWE-306

Impact:

Unauthorized Administrative Access

Severity:

CRITICAL RISK

(9.8)

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

Misaka Danmu Server contains an authentication bypass in the unprotected configuration rollback endpoint. An unauthenticated attacker may alter security-related configuration keys, potentially gaining administrator-level access to protected endpoints.

Misaka Danmu Server contains an authentication bypass in the unprotected configuration rollback endpoint. An unauthenticated attacker may alter security-related configuration keys, potentially gaining administrator-level access to protected endpoints.

Affected context

The vulnerability occurs in Misaka Danmu Server deployments where the

POST /api/ui/config-history/rollback endpoint is reachable without

authentication and permits arbitrary configuration-key updates. Risk is

increased when settings such as IP allowlists, trusted proxy definitions,

or webhook credentials influence authorization decisions without requiring

independent validation or administrative authentication.

The vulnerability occurs in Misaka Danmu Server deployments where the

POST /api/ui/config-history/rollback endpoint is reachable without

authentication and permits arbitrary configuration-key updates. Risk is

increased when settings such as IP allowlists, trusted proxy definitions,

or webhook credentials influence authorization decisions without requiring

independent validation or administrative authentication.

Exploit preconditions

  • Attack surface: The HTTP API, specifically the configuration rollback endpoint
  • Required access: Network reachability to the endpoint; no valid credentials are required
  • Trigger point: Processing a request that writes security-sensitive configuration keys
  • Why exploitation is possible: The endpoint lacks effective authentication and accepts changes that can influence access-control decisions
  • Attack surface: The HTTP API, specifically the configuration rollback endpoint
  • Required access: Network reachability to the endpoint; no valid credentials are required
  • Trigger point: Processing a request that writes security-sensitive configuration keys
  • Why exploitation is possible: The endpoint lacks effective authentication and accepts changes that can influence access-control decisions

Why this happens

The underlying flaw is an authentication control missing from a state-changing administrative endpoint. Configuration values that affect authorization are writable through an unauthenticated request, allowing an external party to modify the server's trust and access boundaries. This behavior maps to CWE-306: Missing Authentication for Critical Function, because a security-sensitive operation is exposed without verifying the caller's identity and authority.

The underlying flaw is an authentication control missing from a state-changing administrative endpoint. Configuration values that affect authorization are writable through an unauthenticated request, allowing an external party to modify the server's trust and access boundaries. This behavior maps to CWE-306: Missing Authentication for Critical Function, because a security-sensitive operation is exposed without verifying the caller's identity and authority.

Potential impact

  • An unauthenticated attacker may bypass protected API endpoints
  • Attackers could obtain administrator-level functionality
  • Security controls such as IP allowlists or trusted proxy rules may be weakened
  • Sensitive application data or administrative configuration could be exposed or modified
  • Webhook integrations and downstream systems may be abused
  • An unauthenticated attacker may bypass protected API endpoints
  • Attackers could obtain administrator-level functionality
  • Security controls such as IP allowlists or trusted proxy rules may be weakened
  • Sensitive application data or administrative configuration could be exposed or modified
  • Webhook integrations and downstream systems may be abused

General mitigation guidance

Mitigation generally focuses on protecting every security-sensitive configuration

operation with strong authentication and authorization.

Common defensive patterns include:

  • Require authenticated, authorized administrative sessions for configuration changes
  • Apply deny-by-default access controls to administrative API routes
  • Separate configuration rollback from arbitrary key modification
  • Permit updates only to an allowlisted schema of non-security-sensitive settings
  • Validate and constrain IP, proxy, credential, and trust-boundary values
  • Use independent authorization checks rather than relying solely on mutable configuration
  • Run the service with least privilege and restrict management interfaces to trusted networks
  • Record configuration changes and alert on unauthenticated or anomalous modification attempts

Mitigation generally focuses on protecting every security-sensitive configuration

operation with strong authentication and authorization.

Common defensive patterns include:

  • Require authenticated, authorized administrative sessions for configuration changes
  • Apply deny-by-default access controls to administrative API routes
  • Separate configuration rollback from arbitrary key modification
  • Permit updates only to an allowlisted schema of non-security-sensitive settings
  • Validate and constrain IP, proxy, credential, and trust-boundary values
  • Use independent authorization checks rather than relying solely on mutable configuration
  • Run the service with least privilege and restrict management interfaces to trusted networks
  • Record configuration changes and alert on unauthenticated or anomalous modification attempts

How teams detect issues like this

Organizations can identify this class of issue through:

  • Static analysis and route audits for state-changing handlers without authentication middleware
  • Code review checks for administrative endpoints that write configuration before authorization
  • API tests that verify unauthenticated requests cannot alter security-sensitive settings
  • Policy enforcement requiring authentication and authorization annotations on management routes
  • Runtime monitoring for configuration changes, access-control changes, and unusual requests to rollback endpoints
  • Automated security review tools that flag missing access-control checks on critical functions

Organizations can identify this class of issue through:

  • Static analysis and route audits for state-changing handlers without authentication middleware
  • Code review checks for administrative endpoints that write configuration before authorization
  • API tests that verify unauthenticated requests cannot alter security-sensitive settings
  • Policy enforcement requiring authentication and authorization annotations on management routes
  • Runtime monitoring for configuration changes, access-control changes, and unusual requests to rollback endpoints
  • Automated security review tools that flag missing access-control checks on critical functions

Sources

SourceLink
github.comgithub.com/l429609201/misaka_danmu_server/blob/v2.8.9/src/api/ui/config_history.py#L51-L66
github.comgithub.com/l429609201/misaka_danmu_server/blob/v2.8.9/src/security.py#L136-L182
hackmd.iohackmd.io/@hieuPenguinnn/misaka-danmu-server-ui-api-missing-authentication
vulncheck.comvulncheck.com/advisories/misaka-danmu-server-through-2.8.9-authentication-bypass-via-config-history-rollback

Frequently asked

questions

Yes, when the affected API endpoint is network-reachable. Exploitation does not

require a local account if the endpoint remains unauthenticated.

The attacker generally needs only network access to the server's API. Valid

credentials should not be necessary for the vulnerable operation.

Require authentication and explicit administrative authorization before allowing

configuration rollback or modification, while restricting updates to a validated

and narrowly defined schema.

Treat configuration-changing endpoints as privileged functions, enforce

deny-by-default access policies, test unauthenticated and low-privilege API

behavior, and monitor all security-sensitive configuration changes.

Yes, when the affected API endpoint is network-reachable. Exploitation does not

require a local account if the endpoint remains unauthenticated.

The attacker generally needs only network access to the server's API. Valid

credentials should not be necessary for the vulnerable operation.

Require authentication and explicit administrative authorization before allowing

configuration rollback or modification, while restricting updates to a validated

and narrowly defined schema.

Treat configuration-changing endpoints as privileged functions, enforce

deny-by-default access policies, test unauthenticated and low-privilege API

behavior, and monitor all security-sensitive configuration changes.

Find out what's already
exploitable in your codebase.