Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

lss233/kirara-ai
master @ 8295a5d
7
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Auth Bypass: 3 prior fixes. Scrutinize any change in this area.
bot.py: most-fixed (3 issues). Treat as high-risk during review.
3 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Auth Bypass: A recurring issue where concurrent requests or session-specific conversation contexts are not properly isolated, causing potential conversation data leaks between users. This is exacerbated by logical flaws in permission checks.
Reflected XSS: Unescaped user input inside the markdown rendering template allows execution of malicious scripts. The fix added a Content Security Policy to constrain execution context.
Authentication Bypass: Static class-level initialization of authorization headers caused headers to be evaluated once, potentially leading to stale, shared, or invalid credentials across different sessions.