Bug Description
Sensitive authentication data may be exposed in extension console logs during normal usage.
When generating reports, debug/storage logs can include token-related values, creating a security risk if logs are shared or collected.
Steps to Reproduce
- Open Scrum Helper in browser developer mode.
- Open extension popup and enter a valid GitHub personal access token.
- Click Generate to fetch activity.
- Open DevTools for the extension (popup/service worker/content script console).
- Observe verbose log output containing storage/debug data that may reveal sensitive auth information.
Expected Behavior
- Tokens and authorization values should never be printed in logs.
- Logs should be sanitized/redacted in all extension contexts.
- Production behavior should avoid verbose debug output by default.
Actual Behavior
- Verbose runtime logs are emitted in production paths.
- Storage/debug logs may include sensitive token-related fields.
- This can leak credentials through screenshots, shared logs, or enterprise log collectors.
Additional Context
- Severity: Security / Privacy
- Impact: Potential credential exposure and unauthorized API use if token is leaked
- Suggested fix:
- Add centralized log sanitization (redact keys like githubToken, gitlabToken, authorization).
- Gate debug logs behind a disabled-by-default flag.
- Remove raw storage object logging from production code paths.
- Add regression checks to ensure secrets never appear in console output.
Contribution Checklist
Bug Description
Sensitive authentication data may be exposed in extension console logs during normal usage.
When generating reports, debug/storage logs can include token-related values, creating a security risk if logs are shared or collected.
Steps to Reproduce
Expected Behavior
Actual Behavior
Additional Context
Contribution Checklist