Authentication bypass via hard-coded JWT signing key
Published Aug 24, 2024 · Updated Aug 26, 2024
Hard-coded signing key in token.go in Go-Tribe gotribe through cd3ccd32cd77852c9ea73f986eaf8c301cfb6310 allows remote attackers to forge JWTs. pkg/token/token.go initializes config.key to a source-visible constant, and Sign passes that value to SignedString for HS256 token generation. Knowledge of the published key is sufficient to mint tokens containing attacker-chosen identity claims, enabling unauthenticated impersonation wherever the application trusts those tokens.
Summary
What happened
Hard-coded signing key in token.go in Go-Tribe gotribe through cd3ccd32cd77852c9ea73f986eaf8c301cfb6310 allows remote attackers to forge JWTs. pkg/token/token.go initializes config.key to a source-visible constant, and Sign passes that value to SignedString for HS256 token generation. Knowledge of the published key is sufficient to mint tokens containing attacker-chosen identity claims, enabling unauthenticated impersonation wherever the application trusts those tokens.
The record
- CVE
- CVE-2024-8135
- Published
- Aug 24, 2024
- Updated
- Aug 26, 2024
- Vendor
- Go-Tribe
- Product
- gotribe
- Classifications
- CWE-798, T1606
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 24, 2024CVE publishedPublication date reported by the CVE source.
- Aug 26, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=cd3ccd32cd77852c9ea73f986eaf8c301cfb6310
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo