T09 · Insecure Skill Coding Practices
- Location
scripts/oauth_web.py:255- Finding
OAuth Access and Refresh Tokens Stored in an Unprotected Plaintext File
- Content
View full analysis
.token.json`. 4. A local process, another local user with filesystem access, backup collector, or accidentally shared workspace reads the token file. 5. The attacker submits the access token to Microsoft Graph or exchanges the refresh token for a new access token. 6. The attacker exercises the mailbox privileges granted to the shared Azure application. ### Impact Assessment A stolen token may permit: - Reading email and message metadata. - Searching the mailbox. - Modifying message state. - Sending email as the user. - Continuing access through refresh-token exchange. - Accessing any additional data covered by the granted OAuth scopes. The exposure is limited to actors that can obtain the local token file, but the resulting mailbox privileges are ...[truncated 19 chars]- Remediation
View remediation
