checker: ruby_ssl_no_verify#110
Merged
sourya-deepsource merged 1 commit intoDeepSourceCorp:masterfrom Mar 6, 2025
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
e8b2d7b to
13bbbb3
Compare
13bbbb3 to
97b45d9
Compare
sourya-deepsource
approved these changes
Mar 6, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a new Ruby checker to detect the use of
OpenSSL::SSL::VERIFY_NONE, which disables SSL/TLS certificate verification. Disabling verification exposes applications to Man-in-the-Middle (MITM) attacks, allowing attackers to intercept and manipulate sensitive data in transit. This checker is flagged as a security issue to ensure SSL certificates are always validated.Detection Logic
The checker flags the following case:
ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONERecommended Alternatives
Instead of disabling SSL verification, consider:
OpenSSL::SSL::VERIFY_PEERto verify certificates and ensure secure communications.Exclusions
To reduce noise, the checker does not flag occurrences in:
References