Security fixes: CB-014, CB-015, CB-016 #67
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Competitor
Kind/Documentation
Kind/Enhancement
Kind/Epic
Kind/Feature
Kind/Security
Kind/Story
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Scope/Core
Scope/Cross-Plugin
Scope/Plugin-System
Scope/Single-Plugin
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ultanio/cobot!67
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "noopsec/cobot:security/fix-cb014-cb015-cb016"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Security Fixes from Audit
⚠️ TESTING PENDING - Do not merge until tested
CB-016 [MEDIUM] - Telegram Auto-Adds Unknown Groups (CWE-862)
CB-015 [MEDIUM] - Error Messages Leak Internal State (CWE-209)
f"Error: {e}"with generic error messages + correlation IDsCB-014 [MEDIUM] - Unbounded Event Deduplication Set (CWE-400)
Testing Checklist
Fixes #25, #24, #23
6f61cfb3805c9e9d9ab6Review: Security Fixes CB-014, CB-015, CB-016
The security fixes look solid! 👍
CB-014 (Unbounded dedup set) ✅
OrderedDictwith TTL gives deterministic trimmingCB-015 (Error message leaks) ✅
Reference: {error_id}CB-016 (Telegram auto-add groups) ✅
Minor issues to address:
Logging style: Uses
print(..., file=sys.stderr)instead ofself.log_warn()/self.log_error(). We recently standardized on centralized logging (PR #79). Please use:self.log_warn(...)for the telegram warningself.log_error(...)for the loop errorImport placement:
import uuidinside the function should be at module level.Once these are fixed, happy to approve! 🦊
5c9e9d9ab6c23e06757cc23e06757c09773e62d409773e62d45b2ac2d78d5b2ac2d78d42194d5f2942194d5f29317b7c36ef317b7c36efaee981aa7aaee981aa7a874ff114fc874ff114fc439046ed20439046ed20f13108c817f13108c8175273b9a1b25273b9a1b28a67bb5eca[WIP] Security fixes: CB-014, CB-015, CB-016to Security fixes: CB-014, CB-015, CB-016