Skip to content

BUG: DTLS deferred/observe responses sent as plaintext #83

Description

@cvik

Severity: HIGH (from external code review)

drainDeferred() and drainNotifications() use send_data() which queues raw UDP sends. For requests that arrived over DTLS, follow-up traffic (deferred responses, observe notifications) must be encrypted.

Currently, secure requests can produce plaintext follow-up traffic — a correctness and security bug.

Fix: Track whether the original request was DTLS. Use send_dtls_packet() for secure sessions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcriticalCritical bug — data corruption or security

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions