AIDotNet OpenDeepWiki: Hard-coded JWT signing key allows admin token forgery
OpenDeepWiki through 2.0.6 uses a JWT signing key that is hard-coded in appsettings.json (Jwt:SecretKey) and publicly visible in the source code. An unauthenticated remote attacker can sign HS256 tokens with an Admin role claim and use them against /api/admin endpoints. This allows control over users, roles, repositories, settings and stored API keys. The attack requires only network access to the instance and knowledge of the public key.
AIDotNet · OpenDeepWiki
