Florium ein echtes C++ Forum
-
Habe neues Forum gebaut in C++ mit meinen Frameworks läuft unter FenrirOS.
So langsam finden alle Komponenten zusammen

https://tuxist.de/git/tuxist/florium
live zusehen unter:
-
Wenn ich so sehe, wie viele Schwierigkeiten "die Großen", wie bspw. Discourse, haben, ein sicheres Forum auf die Beine zu stellen (und wie oft das tägliche Updates erhält...), frage ich mich, wieso dir das so spielend einfach gelingt? Du hast bestimmt ausgeprägtes Expertenwissen in IT-Sicherheit? Ich selbst hatte zwei Vorlesungen dazu, würde mir aber auch nicht zutrauen, das Rad neu zu erfinden. Gen. Vibe-Coding...

-
Ok, ich habe etwas Unbequemes gesagt... Fehler sollten lieber nicht mehr angesprochen werden dürfen... Mea culpa.
Tolles Projekt, nichts zu beanstanden...

-
Damit mir kein Schwachsinn unterstellt wird: Es kann möglichweise ein aktiviertes Benutzer-Konto angelegt werden, mit einer ungültigen E-Mail-Adresse und der Admin-Rolle (mit einem kleinen Umweg über eine Wegwerf-Adresse)... Das willst du vermutlich vermeiden.
Hinweis: Ich habe darauf verzichtet, eine der gefundenen Impacts im Demo-Forum auszunutzen.

Security Review
Finding 1: Restricted-forum attachments may be exposed
- Severity: High
- Confidence: 10/10
- Location:
src/forum.cpp:1819–1854 - Impact: The attachment handler returns media based on its numeric ID without checking whether the requester can read the forum containing it. Attachments from restricted forums may therefore be accessible outside the forum's access controls.
- Recommendation: Associate attachments with their posts or forums and enforce the corresponding read permission before returning media.
Finding 2: Cached access may survive directory-service failures
- Severity: Medium
- Confidence: 8/10
- Location:
src/auth.cpp:340–356,src/forum.cpp:525–537 - Impact: If the directory service is unreachable or client authentication fails, session validation treats the session as alive. When permission refresh also fails, cached grants and role are retained; users whose access was revoked may keep gated access during the outage, potentially until the local session expires.
- Recommendation: Fail closed for authorization-sensitive operations when validation or grant refresh cannot complete, or use a short, privilege-limited grace period.
Finding 3: Verification link may use HTTP
- Severity: Medium
- Confidence: 9/10
- Location:
src/ucp.cpp:628–638 - Impact: If the public forum uses HTTPS but
secureCookiesis false and no trusted forwarded-protocol header overrides it, the verification URL may send its registration token over HTTP. An observer could use the token to complete registration for that verified address. - Recommendation: Generate verification links from a trusted external HTTPS origin or validated proxy scheme, independently of the cookie setting.