Description
Tianji through 2.1.0 contains an authentication bypass vulnerability in the LemonSqueezy billing webhook that allows unauthenticated attackers to forge events because LEMON_SQUEEZY_SIGNATURE_SECRET defaults to an empty HMAC key. Attackers can sign forged subscription_updated events to change workspace tiers, pausing analytics ingestion, upgrading to paid tiers, or adding AI credits.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| msgbyte | tianji | 0 ≤2.1.0 | — |
References
- https://github.com/msgbyte/tianji/blob/v2.1.0/src/server/router/billing.ts#L18-L27
- https://github.com/msgbyte/tianji/blob/v2.1.0/src/server/router/billing.ts#L133-L144
- https://github.com/msgbyte/tianji/blob/v2.1.0/src/server/model/billing/index.ts#L57-L69
- https://www.vulncheck.com/advisories/tianji-through-2.1.0-authentication-bypass-via-lemonsqueezy-webhook-empty-hmac-key