Skip to main content
Vulnerability Database/CVE-2026-111643

CVE-2026-111643: Misaka Danmu Server Auth Bypass Vulnerability

CVE-2026-111643 is an authentication bypass flaw in Misaka Danmu Server that lets attackers modify configuration settings without credentials. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-111643 Overview

CVE-2026-111643 is an authentication bypass vulnerability in Misaka Danmu Server through version 2.8.9. The flaw resides in the unprotected POST /api/ui/config-history/rollback endpoint, which allows unauthenticated attackers to write arbitrary configuration keys. Attackers can set the ipWhitelist key to their own /32 address, or alter trustedProxies and webhookApiKey, to access every protected endpoint as the administrator. The weakness is categorized under CWE-306: Missing Authentication for Critical Function.

Critical Impact

Unauthenticated remote attackers can modify server configuration to grant themselves administrator-equivalent access to all protected endpoints.

Affected Products

  • Misaka Danmu Server versions through 2.8.9
  • Deployments exposing the /api/ui/config-history/rollback endpoint to untrusted networks
  • Instances relying on ipWhitelist, trustedProxies, or webhookApiKey for access control

Discovery Timeline

  • 2026-10-16 - CVE-2026-111643 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-111643

Vulnerability Analysis

Misaka Danmu Server exposes a configuration history rollback endpoint at POST /api/ui/config-history/rollback without an authentication check. The handler accepts arbitrary configuration keys and persists them to the running configuration. Because the server trusts specific configuration keys for identity and access decisions, an unauthenticated attacker can overwrite those keys to impersonate the administrator.

The three most impactful keys are ipWhitelist, trustedProxies, and webhookApiKey. Setting ipWhitelist to the attacker's /32 address makes the attacker's source IP a trusted client. Overwriting trustedProxies allows an attacker to spoof upstream proxy headers and inject arbitrary identities. Replacing webhookApiKey lets the attacker authenticate to webhook interfaces using a secret they chose.

Root Cause

The rollback handler at src/api/ui/config_history.py lines 51–66 does not enforce authentication or authorization before applying configuration changes. The access control logic in src/security.py lines 136–182 reads trust-sensitive values from the same configuration store that the unprotected endpoint can mutate. This creates a self-referential trust loop in which an unauthenticated caller can rewrite the inputs that drive subsequent authorization decisions.

Attack Vector

An attacker sends a single unauthenticated HTTP POST request to /api/ui/config-history/rollback with a payload that targets a sensitive configuration key. After the server accepts the write, subsequent requests from the attacker satisfy the server's IP, proxy, or API key checks. The attacker then invokes any administrator-protected endpoint without credentials.

See the VulnCheck Authentication Bypass Advisory and the HackMD Authentication Analysis for the full technical write-up. The vulnerable source is referenced in the GitHub Configuration History Code and the GitHub Security Code Review.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-111643

Indicators of Compromise

  • Unauthenticated HTTP POST requests to /api/ui/config-history/rollback in web server or reverse proxy access logs.
  • Unexpected modifications to the ipWhitelist, trustedProxies, or webhookApiKey configuration keys.
  • Administrator-protected endpoints accessed from source IPs or API keys that were not previously provisioned.

Detection Strategies

  • Alert on any request to /api/ui/config-history/rollback that lacks a valid session cookie or authentication header.
  • Monitor the configuration store for diffs on sensitive keys and correlate changes with the user or request that produced them.
  • Compare active values of ipWhitelist and trustedProxies against a known-good baseline on a scheduled interval.

Monitoring Recommendations

  • Forward application and reverse proxy logs to a centralized analytics tier for sustained review of the rollback endpoint.
  • Track administrative actions chronologically to surface post-configuration-change privilege use.
  • Enable file and object integrity monitoring on the backing configuration history store.

How to Mitigate CVE-2026-111643

Immediate Actions Required

  • Block external access to /api/ui/config-history/rollback at the reverse proxy or web application firewall until an upstream patch is applied.
  • Audit current values of ipWhitelist, trustedProxies, and webhookApiKey and reset any unexpected entries.
  • Rotate webhookApiKey and any credentials that may have been exposed by prior unauthorized configuration writes.

Patch Information

At the time of publication, no vendor-fixed version is listed in the NVD record for CVE-2026-111643. Review the project repository and the VulnCheck advisory for updates beyond version 2.8.9.

Workarounds

  • Restrict the Misaka Danmu Server UI and API to a trusted management network using network-layer controls.
  • Place an authenticating reverse proxy in front of all /api/ui/* routes and reject unauthenticated requests before they reach the application.
  • Treat ipWhitelist and trustedProxies as mutable only through an out-of-band administrative channel until the endpoint enforces authentication.
bash
# Example NGINX restriction for the vulnerable endpoint
location = /api/ui/config-history/rollback {
    allow 10.0.0.0/24;   # trusted management subnet
    deny all;
    proxy_pass http://misaka_backend;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.