NetSight
medium4.8No CVE yet

GHSA-gxhx-2686-5h9g

slack-go `SecretsVerifier` accepts empty signing secret without precondition

Impact

`SecretsVerifier` in slack-go/slack before v0.23.1 accepts an empty signing secret without error. If an application is misconfigured (e.g., an unset or empty `SLACK_SIGNING_SECRET`), `NewSecretsVerifier` builds an HMAC-SHA256 keyed with an empty string, allowing an unauthenticated attacker to forge a valid `X-Slack-Signature` and bypass Slack request authentication. Fixed in v0.23.1, which rejects empty secrets with `ErrInvalidConfiguration`. This is patched in version 0.23.1.

An attacker can exploit this over the network, without logging in, without any action by a user. Specific conditions have to be met, which makes an attack harder. If it succeeds: low risk of data being read, high risk of data or systems being changed.

Affected packages

EcosystemPackageAffectedFixed in
gogithub.com/slack-go/slack< 0.23.10.23.1

Weakness classification

References