Skip to content

[Broker] ServerCnx should not respond with Success until verifying originalAuthData #19311

Closed

Description

@michaeljmarshall

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

The current ServerCnx class follows this protocol when validating authentication data from a proxy that forwards the client's original auth data and when the broker is configured to verify this auth data.

  1. Verify proxy's authData.
  2. If 1 is successful, send Conncted response to remote client.
  3. Verify the originalAuthData.
  4. If 3 fails, close the connection and send Error to the remote client.

Solution

We should not send the Connected result until we complete the validation of the Connect command data.

Alternatives

None yet.

Anything else?

This is not a vulnerability for several reasons. First, the proxy authentication data must be valid. Second, the ServerCnx validates the authentication data before processing any other commands on the connection.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. added
    type/enhancement
    on Jan 23, 2023
  2. changed the title [-][Broker] ServerCnx should not response with Success until verifying originalAuthData[/-] [+][Broker] ServerCnx should not respond with Success until verifying originalAuthData[/+] on Jan 23, 2023
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

    type/enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions