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

CVE-2026-108860: BotSharp Auth Bypass Vulnerability

CVE-2026-108860 is an authentication bypass vulnerability in BotSharp that allows attackers to forge bearer tokens using hard-coded secrets. 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-108860 Overview

CVE-2026-108860 is an authentication bypass vulnerability in BotSharp through version 5.2.0. The flaw stems from a hard-coded JSON Web Token (JWT) signing key committed to the project's WebStarter/appsettings.json file. Unauthenticated remote attackers can forge valid bearer tokens using the exposed HMAC secret, the fixed botsharp issuer, and matching audience. Forged tokens pass validation on any [Authorize]-protected API route, allowing attackers to impersonate any known user, including administrators. The vulnerability is tracked under CWE-321: Use of Hard-coded Cryptographic Key.

Critical Impact

Unauthenticated attackers can forge administrator bearer tokens and gain full access to protected BotSharp API endpoints without any credentials or user interaction.

Affected Products

  • BotSharp through version 5.2.0
  • BotSharp WebStarter component shipping the public Jwt:Key value
  • Any downstream deployment reusing the default appsettings.json configuration

Discovery Timeline

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

Technical Details for CVE-2026-108860

Vulnerability Analysis

BotSharp configures JWT bearer authentication in BotSharpOpenApiExtensions.cs, loading the signing key and token parameters directly from appsettings.json. The default configuration ships a static HMAC secret in the public repository, along with the fixed issuer and audience value botsharp. Any attacker who clones the repository obtains the exact material required to mint tokens that the running service will accept.

Because the signing key is symmetric, token verification and token forgery use the same secret. Attackers craft a token containing arbitrary sub, name, or role claims, sign it with HMAC-SHA256 using the committed key, and submit it as a bearer token. The server validates the signature, issuer, and audience successfully and treats the request as an authenticated session for the chosen identity.

Root Cause

The root cause is storage of a cryptographic signing key in version-controlled source code [CWE-321]. The Jwt:Key value in src/WebStarter/appsettings.json is readable by anyone with access to the public GitHub repository. BotSharp provides no runtime check that rejects the default key or forces operators to supply a unique secret before enabling authentication.

Attack Vector

Exploitation requires only network reachability to a BotSharp API endpoint. The attacker generates an HMAC-signed JWT offline using the publicly known key, issuer, and audience values. The forged token is then sent in the Authorization: Bearer <token> header against any [Authorize]-protected route. No prior authentication, user interaction, or elevated privileges are needed. See the VulnCheck BotSharp Authentication Bypass Advisory and the HackMD BotSharp JWT Key Documentation for technical details.

// No verified exploit code is published. Refer to the VulnCheck advisory
// and the BotSharp OpenAPI extension source for the vulnerable JWT setup.

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-108860

Indicators of Compromise

  • Authenticated API requests originating from IP addresses that never completed a login flow against the BotSharp identity provider.
  • JWTs presented to BotSharp with iss and aud values of botsharp and signatures validating against the published default key.
  • Administrator-level actions performed by accounts outside their normal working hours, geographic regions, or user agents.

Detection Strategies

  • Compare the running Jwt:Key configuration value against the hash of the default key published in the BotSharp repository and alert on matches.
  • Inspect web server access logs for Authorization: Bearer headers on [Authorize] routes without a preceding /auth/login or token issuance request.
  • Decode captured JWTs at the proxy or WAF layer and flag tokens signed with the known-compromised key.

Monitoring Recommendations

  • Forward BotSharp application logs and reverse-proxy access logs to a centralized analytics platform for correlation of authentication events.
  • Monitor for sudden spikes in privileged API calls, user enumeration, or configuration changes against BotSharp endpoints.
  • Track outbound connections from BotSharp hosts for signs of post-exploitation data exfiltration or secondary tooling.

How to Mitigate CVE-2026-108860

Immediate Actions Required

  • Replace the Jwt:Key value in appsettings.json with a cryptographically random 256-bit secret generated per deployment.
  • Rotate any previously issued tokens by changing the signing key and invalidating existing sessions.
  • Restrict network access to BotSharp API endpoints to trusted sources until a unique signing key is in place.

Patch Information

At the time of publication, no fixed BotSharp release is identified in the NVD record. Operators should monitor the GitHub BotSharp Repository for upstream remediation and review the GitHub BotSharp OpenAPI Extension and GitHub BotSharp Appsettings Configuration to confirm the key source in their build.

Workarounds

  • Override Jwt:Key, Jwt:Issuer, and Jwt:Audience using environment variables or a secrets manager instead of the shipped appsettings.json values.
  • Place BotSharp behind an authenticating reverse proxy that enforces its own identity controls before requests reach the vulnerable API.
  • Disable or remove unused [Authorize]-protected endpoints that are not required for the deployment.
bash
# Generate a unique signing key and inject it at runtime
export Jwt__Key="$(openssl rand -base64 48)"
export Jwt__Issuer="$(uuidgen)"
export Jwt__Audience="$(uuidgen)"
dotnet run --project src/WebStarter

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.