Security context

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

getpublii/publii
master @ 5a8ecd6
6
Fixes
1
CVEs
HIGH
Peak severity
16.7%
Coverage
Highlights
Path Traversal: 2 prior fixes. Scrutinize any change in this area.
app/back-end: most-fixed (1 issue). Treat as high-risk during review.
5 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.

SQL Injection: Database queries executed via 'this.db.prepare' previously accepted unparameterized, user-supplied input, posing a critical SQL injection risk during backend operations and HTML rendering. Developers must consistently use parameterized queries across all database contexts.
Path Traversal: Improperly validated directory segments and filenames allowed attackers to conduct directory traversal attacks, escaping intended scopes during plugin, theme, or language removal. Relying on a central path-validator is critical but requires rigorous testing.
Sandbox Escape: Arbitrary directory and file operations could be triggered from the renderer process via IPC channels using 'ipcMain.on'. IPC handlers must enforce strict validation to prevent sandbox escape vectors.