Skip to content

Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.

Freeze the reviewed TRUNCATE of the demo reset in the Brakeman baseline

Guido Boyke75c31b569f03
diff --git a/CLAUDE.md b/CLAUDE.md
index a258a19..8afbd3a 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -122,12 +122,14 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
* **Zwei Sicherheits-Jobs, absichtlich getrennt.** Ein Job trägt genau einen Status, und
`dependencies` ist heute rot (s. u.). Zusammengelegt wäre brakemans Rot von diesem Rot nicht
mehr zu unterscheiden, und brakemans ganzer Wert ist die Aussage „Rot = NEUER Befund":
- * `brakeman`, gegen die frozen `config/brakeman.ignore`-Baseline (37 Einträge, Stand
- 01.10.2026; der `constantize`-Eintrag im Datei-Proxy ist mit #915 behoben statt neu
+ * `brakeman`, gegen die frozen `config/brakeman.ignore`-Baseline (38 Einträge, Stand
+ 20.10.2026; der `constantize`-Eintrag im Datei-Proxy ist mit #915 behoben statt neu
eingefroren, der Eintrag der Titelsuche ging mit dem Umbau der Ticketsuche).
Rot = NEUER Befund. **Jeder Eintrag ist geprüft** und nennt im `note`-Feld
den Grund, warum er sicher ist; die Datei darf nur schrumpfen, und ein neuer Eintrag
- braucht dieselbe Begründung. Bei der Prüfung am 26.09.2026 war einer eine echte
+ braucht dieselbe Begründung. Ausnahme seit 20.10.2026: das TRUNCATE des Demo-Resets
+ (`lib/lalabase/demo/reset.rb`), ohne Eingabe; Brakeman sieht die Quotierung durch
+ `map` und `join` nicht. Bei der Prüfung am 26.09.2026 war einer eine echte
SQL-Injection (Ticketsuche, #889); fünf weitere wurden gehärtet statt eingefroren.
⚠️ Ein eingefrorener Eintrag ist öffentlich sichtbar: „ungeprüft" darin ist eine Liste mit
Angriffszielen.
diff --git a/config/brakeman.ignore b/config/brakeman.ignore
index 99d127b..3aebe92 100644
--- a/config/brakeman.ignore
+++ b/config/brakeman.ignore
@@ -332,6 +332,15 @@
"line": 8,
"fingerprint": "6290e53c8c83863741d60e150142e37c0a44000507f36ffd071a9f2a81ec6086",
"note": "Reviewed 26.09.2026: the component is built by Dashboards::LayoutEngine.component_for_widget from a server-side registry constant (nil for unknown keys); the preview action authorizes the project and the partial renders only if should_render?."
+ },
+ {
+ "warning_type": "SQL Injection",
+ "check_name": "SQL",
+ "message": "Possible SQL injection",
+ "file": "lib/lalabase/demo/reset.rb",
+ "line": 89,
+ "fingerprint": "16d009bd985f82192c5e8bde0deecdda839a27bd99eac7abf8dae4ce258599e1",
+ "note": "Reviewed 20.10.2026: no input reaches it. The names are the tables of the database itself (connection.tables) minus a constant keep-list, each quoted with quote_table_name; one TRUNCATE has to name them all, because TRUNCATE refuses a table referenced from outside the statement, and Brakeman cannot see the quoting through map and join. Runs only from the reset job and the rake tasks, behind both demo latches."
}
],
"updated": "2026-08-27 00:00:00 +0200",