Skip to content

[Security] Unhandled print() Statements in Production Code #515

@mefai-dev

Description

@mefai-dev

Bug Name

Unhandled print() Statements in Production Code

Attack Scenario

Two print() statements exist in production code that bypass the logging framework and cannot be filtered or redirected.

Impact

Debug output mixed with application output, cannot be suppressed via logging configuration.

Components

Files: utils.py:806 -- print(f'Failed to parse {event_name}: {e}'), websocket.py:427 -- print(f'Reconnected WebSocket {close_old_connection}').

Reproduction

  1. Trigger a WebSocket reconnection or event parsing failure.
  2. Observe print() output on stdout regardless of logging configuration.

Fix

Replace with logging.warning() or logging.info() calls.

Details

Finding ID: SEC-08
Severity: Informational


Researcher: Independent Security Researcher -- Mefai Security Team

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions