Files
dumpsterChat/ISSUES.md
T

3.8 KiB

dumpsterChat Codebase Audit Report

This document contains a comprehensive audit of the dumpsterChat repository, highlighting security vulnerabilities, functional bugs, dead code, and maintenance issues.


1. Security Vulnerabilities & Bypasses

🚨 Plaintext Webhook Tokens Stored in Database (Task 8 Regression/Incomplete) RESOLVED

🚨 Message and Channel Access Bypasses Role Permissions & Overrides

  • Location: internal/message/handlers.go, internal/channel/handlers.go
  • Description: Access to channel reading, message listing, and message posting is checked solely via server membership (members table). Role permissions (like VIEW_CHANNEL or SEND_MESSAGES) and channel-level overrides (channel_overrides table) are completely ignored.
  • Impact: Any user who is a member of a server can read, search, and post messages in any channel on that server (including private, forum, calendar, or documentation channels), completely bypassing the permissions configuration system.
  • Remediation: Update requireChannelAccess in message.Handler to use permissions.Checker to verify channel permission overrides and server roles.

2. Functional Bugs & Defects

🐛 User Avatar Cannot Be Changed RESOLVED

🐛 TUI Client Auth Failure Fallback Bug RESOLVED

  • Location: cmd/tui/auth.go
  • Fix: Fallback reads into password variable instead of overwriting email.

3. Dead Code

🗑️ Unused ComputeChannelPermissions RESOLVED

🗑️ Duplicated Permission Verification

  • Location: internal/message/handlers.go
  • Description: The checkPermission method in message.Handler duplicates role checking queries instead of using the permissions.Checker struct.

🗑️ Obsolete Handler Type RESOLVED


4. Maintenance & Infrastructure

🧪 No Tests

  • Description: There are zero unit or integration tests in the Go backend or React frontend (go test ./... runs but finds no test files).
  • Remediation: Introduce tests for critical components such as permissions checking, message parsing, and session stores.

🔑 Hardcoded Valkey Password Placeholder RESOLVED