Description
Express Gateway through 1.16.11 contains a hardcoded cryptographic key vulnerability that allows attackers with datastore access to decrypt stored OAuth 2.0 token secrets via the default crypto.cipherKey 'sensitiveKey'. Attackers who can read Redis can decrypt tokenEncrypted values and combine them with stored token IDs to obtain valid bearer tokens for any user.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ExpressGateway | express-gateway | ≤ 1.16.11 | — |
References
- GitHub Issue #1078 issue-tracking
- https://github.com/ExpressGateway/express-gateway product
- https://github.com/ExpressGateway/express-gateway/blob/45612814d12f65889ef3bdf80b2ed7ab9b557736/lib/config/system.config.yml#L15-L22 technical-description
- https://github.com/ExpressGateway/express-gateway/blob/45612814d12f65889ef3bdf80b2ed7ab9b557736/lib/services/utils.js#L18-L28 technical-description
- VulnCheck Advisory: Express Gateway through 1.16.11 Hardcoded Default cipherKey Exposes OAuth Tokens third-party-advisory