Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security Risk: Disabling certificate validation in HTTPS agent #1485

Open
tianjk99 opened this issue Dec 4, 2023 · 0 comments
Open

Security Risk: Disabling certificate validation in HTTPS agent #1485

tianjk99 opened this issue Dec 4, 2023 · 0 comments

Comments

@tianjk99
Copy link

tianjk99 commented Dec 4, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant