GHSA-h3rm-78g3-j7cp: @better-auth/stripe: cross-organization billing tampering in organization subscription actions
An org subscription action can run against the wrong org. The actions are cancel, change plan, restore, and open the billing portal. The plugin checks permission against the org id in the request query string. It then runs the action against the caller’s active org from their session. When these two ids differ, a member can act on billing for an org they may not manage. The target is always an org the caller belongs to.
References
- github.com/advisories/GHSA-h3rm-78g3-j7cp
- github.com/better-auth/better-auth/commit/29fbcb573261242d8a05b131a9d39c9ae4352b06
- github.com/better-auth/better-auth/releases/tag/v1.6.21
- github.com/better-auth/better-auth/releases/tag/v1.7.0-beta.10
- github.com/better-auth/better-auth/security/advisories/GHSA-h3rm-78g3-j7cp
Code Behaviors & Features
Detect and mitigate GHSA-h3rm-78g3-j7cp with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →