/

CVE-2026-111626

Severity:

CRITICAL RISK

(9.8)

Authentication Bypass (CWE-306) in Damselfly API Routes

CVE-2026-111626

Deferred

Vulnerability type

Category:

Authentication Bypass

CWE:

CWE-306

Impact:

Unauthenticated account takeover and 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

Webreaper Damselfly through version 4.5.3 contains an authentication bypass affecting API routes whose authorization controls are not enforced. An unauthenticated attacker may create administrator accounts or reset other users' passwords, potentially gaining complete control of the application.

Webreaper Damselfly through version 4.5.3 contains an authentication bypass affecting API routes whose authorization controls are not enforced. An unauthenticated attacker may create administrator accounts or reset other users' passwords, potentially gaining complete control of the application.

Affected context

The vulnerability occurs in Damselfly deployments where /api/* endpoints are reachable and controller-level authorization attributes remain disabled or are otherwise not applied. The risk is highest when the API is exposed to untrusted networks and permits user-management operations without an authenticated security boundary.

The vulnerability occurs in Damselfly deployments where /api/* endpoints are reachable and controller-level authorization attributes remain disabled or are otherwise not applied. The risk is highest when the API is exposed to untrusted networks and permits user-management operations without an authenticated security boundary.

Exploit preconditions

  • Attack surface: Damselfly HTTP API routes under /api/*
  • Required access: No prior authentication or valid account is required
  • Trigger point: Requests to user-management operations, including account creation or password-reset functionality
  • Why exploitation is possible: Authorization enforcement is absent, allowing unauthenticated requests to reach privileged controller actions
  • Attack surface: Damselfly HTTP API routes under /api/*
  • Required access: No prior authentication or valid account is required
  • Trigger point: Requests to user-management operations, including account creation or password-reset functionality
  • Why exploitation is possible: Authorization enforcement is absent, allowing unauthenticated requests to reach privileged controller actions

Why this happens

The underlying defect is a missing authentication and authorization check on protected API operations. Controller authorization attributes have been disabled or commented out, causing requests to proceed without verifying the caller's identity or privileges. This maps to CWE-306: Missing Authentication for Critical Function, where sensitive functionality is accessible without establishing an authenticated user context.

The underlying defect is a missing authentication and authorization check on protected API operations. Controller authorization attributes have been disabled or commented out, causing requests to proceed without verifying the caller's identity or privileges. This maps to CWE-306: Missing Authentication for Critical Function, where sensitive functionality is accessible without establishing an authenticated user context.

Potential impact

  • An attacker may create administrator accounts
  • An attacker could reset passwords belonging to other users
  • Unauthorized users may gain administrative control of the application
  • Sensitive application data may be accessed, modified, or deleted
  • Compromised administrative accounts could be used for persistence or further abuse
  • An attacker may create administrator accounts
  • An attacker could reset passwords belonging to other users
  • Unauthorized users may gain administrative control of the application
  • Sensitive application data may be accessed, modified, or deleted
  • Compromised administrative accounts could be used for persistence or further abuse

General mitigation guidance

Mitigation generally focuses on restoring consistent authentication and authorization enforcement for every protected API operation.

Common defensive patterns include:

  • Require authentication and appropriate role checks for all user-management endpoints
  • Apply authorization by default rather than relying on individual controllers to opt in
  • Separate administrative operations from ordinary user functions
  • Enforce server-side authorization independently of client-supplied roles or identity fields
  • Apply least privilege to service accounts and administrative roles
  • Restrict API exposure through network policy, gateway controls, or trusted access paths
  • Add regression tests confirming unauthenticated and underprivileged requests are rejected

Mitigation generally focuses on restoring consistent authentication and authorization enforcement for every protected API operation.

Common defensive patterns include:

  • Require authentication and appropriate role checks for all user-management endpoints
  • Apply authorization by default rather than relying on individual controllers to opt in
  • Separate administrative operations from ordinary user functions
  • Enforce server-side authorization independently of client-supplied roles or identity fields
  • Apply least privilege to service accounts and administrative roles
  • Restrict API exposure through network policy, gateway controls, or trusted access paths
  • Add regression tests confirming unauthenticated and underprivileged requests are rejected

How teams detect issues like this

Organizations can identify this class of weakness through:

  • Static analysis and code review checks for disabled, commented, or missing authorization attributes
  • Inventory reviews comparing sensitive API routes with their authentication and role requirements
  • Integration tests that exercise user creation, password reset, and role-management operations without credentials
  • API gateway and application policy checks requiring authentication for protected route patterns
  • Monitoring for unauthenticated requests to administrative endpoints and unexpected administrator-account creation
  • Automated security review tools that flag missing authentication on critical functions

Organizations can identify this class of weakness through:

  • Static analysis and code review checks for disabled, commented, or missing authorization attributes
  • Inventory reviews comparing sensitive API routes with their authentication and role requirements
  • Integration tests that exercise user creation, password reset, and role-management operations without credentials
  • API gateway and application policy checks requiring authentication for protected route patterns
  • Monitoring for unauthenticated requests to administrative endpoints and unexpected administrator-account creation
  • Automated security review tools that flag missing authentication on critical functions

Sources

SourceLink
github.comgithub.com/Webreaper/Damselfly/blob/4.5.3/Damselfly.Web.Server/Controllers/UserManagementController.cs#L8-L53
github.comgithub.com/Webreaper/Damselfly/blob/4.5.3/Damselfly.Web.Server/Program.cs#L238-L242
github.comgithub.com/Webreaper/Damselfly/issues/409
hackmd.iohackmd.io/@hieuPenguinnn/damselfly-api-missing-authorization
vulncheck.comvulncheck.com/advisories/webreaper-damselfly-through-4.5.3-missing-authentication-on-rest-api-controllers

Frequently asked

questions

Yes. If the Damselfly API is reachable by an attacker, exploitation may be possible without a prior account or authentication.

The attacker generally needs only network access to the affected /api/* routes. A valid user account is not required according to the described vulnerability.

Enforce authentication and role-based authorization by default for all sensitive API operations, with explicit tests verifying that unauthenticated requests are denied.

Use centralized authorization middleware or policies, review protected-route coverage, prohibit disabled security attributes in code review, and continuously test critical endpoints with both authenticated and unauthenticated requests.

Yes. If the Damselfly API is reachable by an attacker, exploitation may be possible without a prior account or authentication.

The attacker generally needs only network access to the affected /api/* routes. A valid user account is not required according to the described vulnerability.

Enforce authentication and role-based authorization by default for all sensitive API operations, with explicit tests verifying that unauthenticated requests are denied.

Use centralized authorization middleware or policies, review protected-route coverage, prohibit disabled security attributes in code review, and continuously test critical endpoints with both authenticated and unauthenticated requests.

Find out what's already
exploitable in your codebase.