client
client copied to clipboard
Security Risk: Disabling certificate validation in HTTPS agent
A security issue was found in your project. I hope you will check whether this approach poses security risks.
- 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.