-
Notifications
You must be signed in to change notification settings - Fork 253
[Java]: CWE 295 - Insecure TrustManager - MiTM #222
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
Comments
Has the listed issue opencast/opencast@4225bf9 already been detected by the query codeql/java/ql/src/experimental/Security/CWE/CWE-273/UnsafeCertTrust.ql? Will the queries be merged?
|
I don't know whether I tried building an database of opencast but building failed. I found it easier for me to create a new query and then remove the overlapping code from |
You can download a database at https://lgtm.com/projects/g/opencast/opencast/ci/#ql |
I know that I can download databases from lgtm.com, but the issue has already been fixed. |
Ah, yes I think that is the case, sorry. |
@intrigus-lgtm Would you be able to share the build log with us so that we can check what went wrong with the build and then perhaps can help you to build the database? Thanks. |
@m-y-mo sure, but the problem seems to be related to a maven package that is missing. |
Your submission is now in status SecLab review. For information, the evaluation workflow is the following: |
@intrigus-lgtm Thanks. I'm mostly interested to see if there the |
@m-y-mo the build failure was not related to codeql :) |
Your submission is now in status CodeQL review. For information, the evaluation workflow is the following: |
Your submission is now in status SecLab finalize. For information, the evaluation workflow is the following: |
Your submission is now in status Pay. For information, the evaluation workflow is the following: |
Created Hackerone report 1250306 for bounty 314830 : [222] [Java]: CWE 295 - Insecure TrustManager - MiTM |
Your submission is now in status Closed. For information, the evaluation workflow is the following: |
CVE ID(s)
List the CVE ID(s) associated with this vulnerability. GitHub will automatically link CVE IDs to the GitHub Advisory Database.
Report
Describe the vulnerability. Provide any information you think will help GitHub assess the impact your query has on the open source community.
A insecure
TrustManager
is an implementation of theTrustManager
interface, where thecheckServerTrusted
method trusts any certificate because it never throws aCertificateException
.As the
TrustManager
trusts any certificate, an attacker can create a self-signed certificate that will be accepted as any certificate is trusted. This leads to a MiTM attack against the connection thereby stealing sensitive secrets such as login data or other tokens is possible.Query:
github/codeql#4879
Result(s)
Provide at least one useful result found by your query, on some revision of a real project.
The text was updated successfully, but these errors were encountered: