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

C++: New query for SSL result conflation #7242

Merged
merged 8 commits into from Nov 30, 2021
Merged

C++: New query for SSL result conflation #7242

merged 8 commits into from Nov 30, 2021

Conversation

@geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Nov 25, 2021

This is the first of two new queries for CWE-295: Improper Certificate Validation.

Results:

  • on all LGTM C/C++ projects; very thin (only 1 result).
  • this is disappointing, but the query does cover 2 of the 5 examples given in the CWE definition.

Precision:

  • provisionally set to @medium, it's difficult to judge without seeing more real world results.

Performance:

  • tested locally on kamailio_kamailio and chakra-core (performance is great with a warmed up cache)
  • no timeouts on the above LGTM run.
@geoffw0 geoffw0 added the C++ label Nov 25, 2021
@geoffw0 geoffw0 requested a review from as a code owner Nov 25, 2021
Copy link
Contributor

@MathiasVP MathiasVP left a comment

LGTM! Could we upgrade this query to precision high right away? It's certainly not very noisy!

Loading

@MathiasVP
Copy link
Contributor

@MathiasVP MathiasVP commented Nov 26, 2021

Actually. Do you mind running DCA to make sure we don't get any re-evaluation in the suite @geoffw0?

Loading

@geoffw0
Copy link
Contributor Author

@geoffw0 geoffw0 commented Nov 29, 2021

Will do...

Loading

@geoffw0
Copy link
Contributor Author

@geoffw0 geoffw0 commented Nov 29, 2021

It's certainly not very noisy!

I'd like to tune it to detect a bit more (support more libraries and more variants of logic / flow), but the truth may be that the mistake simply isn't as common as the CWE examples led us to believe.

I'm a bit reluctant to increase precision to high without more real world evidence (I guess it wouldn't do much harm though).

Loading

@geoffw0
Copy link
Contributor Author

@geoffw0 geoffw0 commented Nov 29, 2021

DCA shows no significant change in performance.

Loading

@MathiasVP
Copy link
Contributor

@MathiasVP MathiasVP commented Nov 30, 2021

Great! Merging! 🎉

Loading

@MathiasVP MathiasVP merged commit f4555ed into github:main Nov 30, 2021
11 checks passed
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants