Intent-Code Divergence
Medium
- Confidence
- 95% confidence
- Finding
- When `consent === 'broad'`, the script requests `Mail.Read`, `Mail.ReadWrite`, and `Mail.Send` regardless of the narrower `allow`/`baseScopes` selected by the user. This creates a privilege mismatch: a profile that appears limited in policy can still obtain tokens capable of reading, modifying, and sending mail if the downstream code uses the granted token directly.
