Skip to content

Security Risk: Disabling certificate validation in HTTPS agent #1485

Description

@tianjk99

A security issue was found in your project. I hope you will check whether this approach poses security risks.

  1. src/common/util/getRPCEndpoint.js, line 6.
    The current implementation in getRPCEndpoint.js disables certificate validation by setting the rejectUnauthorized option of the https.Agent to false. This introduces a potential security risk.

It is recommended to enable certificate validation by setting rejectUnauthorized to true in the https.Agent configuration. This ensures secure and authenticated HTTPS connections.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions