Details
Plane 4.0.0 fixes two flaws in OAuth apps.
- Any signed-in user could read an app’s webhook secret. The API that returns an app’s details included its webhook secret in plain text. It checked only that the caller was signed in, not that they belonged to the workspace that owns the app. Plane signs every webhook delivery to the app with this secret, in the
X-Plane-Signatureheader. - App creators could set fields that only Plane should set. Creating an app accepted values for whether members see the consent screen, whether the app is internal or featured, its publish status, and its client ID.
Impact
- With an app’s webhook secret, anyone can send requests to the app’s webhook URL that pass its signature check, so the app treats them as deliveries from Plane. This affects 2.0.0 and later, the versions where OAuth apps have webhook secrets.
- A member who can create apps in a workspace could turn off the consent screen for their app. A member who followed the app’s authorization link would then grant it access without seeing what it asked for. The creator could also mark the app as featured or published without review. This affects 1.9.0 and later.
Remediation
Upgrade Plane Commercial Edition to 4.0.0. Plane Cloud already runs the fix.
After upgrading, on any edition:
- If you’ve built an OAuth app, set a new webhook secret in the app’s settings and update your webhook receiver to check the new one. Treat the old secret as known to others.
- Upgrading doesn’t change apps created before it. Review the OAuth apps in your workspaces and remove any you don’t recognize.
There’s no workaround for earlier versions.
Credit
Found by the Plane engineering team.