You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(site): XSS vectors in generated static site #468
Three injection vectors in the generated static site:
| safe in conversation page template (site/templates_conversation.py:215): {{ msg.html_content | safe }} strips all defense-in-depth from Jinja2 autoescaping. Same pattern in rendering/templates/conversation.html:376.
innerHTML in search JS (site/search.py:134-143): Search results rendered via JavaScript template literals interpolating doc.title, doc.provider, and doc.preview from the database into innerHTML without sanitization. A conversation title containing </h2><script>alert(1)</script> executes when anyone loads the index page and searches.
Search index JSON (site/models.py:80): The search index file contains full conversation previews for ALL conversations, placed in the static site output and served to any visitor without authentication.
While the user owns their own archive (self-XSS in local context), if the generated static site is published to a web server, these become stored XSS.
Activity
fix: remaining audit findings — content hash, XSS, TOCTOU, detection,…
fix: remaining audit findings — content hash, XSS, TOCTOU, detection,…