T09 · Insecure Skill Coding Practices
- Location
vendor/xhs_api/apis/xhs_pc_login_apis.py:414- Finding
Authentication Cookies and QR Login Material Exposed Through Logs
- Content
View full analysis
- Remediation
View remediation
" return f"{value[:3]}...{value[-3:]}" ``` 4. Do not rely solely on redaction at the logging sink. Prevent secrets from being passed to the logger in the first place. 5. Configure log retention and access controls so existing historical logs containing cookies are deleted or tightly restricted. 6. Invalidate sessions that may already have been recorded in logs. 7. Add automated tests that fail if keys such as `web_session`, `cookie`, `authorization`, QR tokens, or verification codes are passed to logging functions. ]]>
