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

[Java]: CWE 295 - Insecure TrustManager - MiTM #221

Closed
1 task done
intrigus-lgtm opened this issue Dec 24, 2020 · 14 comments
Closed
1 task done

[Java]: CWE 295 - Insecure TrustManager - MiTM #221

intrigus-lgtm opened this issue Dec 24, 2020 · 14 comments
Labels
The Bug Slayer Submissions to The Bug Slayer bounty

Comments

@intrigus-lgtm
Copy link
Contributor

intrigus-lgtm commented Dec 24, 2020

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 the TrustManager interface, where the checkServerTrusted method trusts any certificate because it never throws a CertificateException.
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

  • Are you planning to discuss this vulnerability submission publicly? (Blog Post, social networks, etc). We would love to have you spread the word about the good work you are doing
@intrigus-lgtm intrigus-lgtm added the The Bug Slayer Submissions to The Bug Slayer bounty label Dec 24, 2020
@smowton
Copy link

smowton commented Jan 4, 2021

@intrigus-lgtm this relates to github/codeql#3581 right?

@smowton
Copy link

smowton commented Jan 4, 2021

And/or github/codeql#4536 ? (If the latter, could you answer my review questions?)

@smowton
Copy link

smowton commented Jan 4, 2021

Or even github/codeql#4879 ?

@intrigus-lgtm
Copy link
Contributor Author

intrigus-lgtm commented Jan 4, 2021

This relates to github/codeql#4879.

I just added a link to the query in the issue.

I will try to apply your review questions/suggestions from github/codeql#4536 to github/codeql#4879 to the extend that the code in questions still exists.

@smowton
Copy link

smowton commented Jan 4, 2021

I now see that there's also #222 -- might be worth commenting briefly about the difference between the two

@intrigus-lgtm
Copy link
Contributor Author

I now see that there's also #222 -- might be worth commenting briefly about the difference between the two

#221 is for the "The Bug Slayer" bounty and #222 is for the "All For One" bounty.
Both use the same query.

@JarLob
Copy link
Contributor

JarLob commented Mar 1, 2021

Hey @intrigus-lgtm I'll take this out of our bounty pipeline for now similarly to #108
Feel free to re-submit when you get the extra CVEs.

@JarLob JarLob removed the The Bug Slayer Submissions to The Bug Slayer bounty label Mar 1, 2021
@ghsecuritylab
Copy link
Collaborator

Your submission is now in status Closed.

For information, the evaluation workflow is the following:
CodeQL initial assessment > SecLab review > CodeQL review > SecLab finalize > Pay > Closed

@JarLob
Copy link
Contributor

JarLob commented Mar 2, 2021

I'm going to close the issue. Feel free to re-open it when ready.

@JarLob JarLob closed this as completed Mar 2, 2021
@JarLob JarLob added the The Bug Slayer Submissions to The Bug Slayer bounty label Mar 2, 2021
@intrigus-lgtm
Copy link
Contributor Author

@JarLob please re-open 🎉 🎉

@JarLob JarLob reopened this Jun 30, 2021
@ghsecuritylab
Copy link
Collaborator

Your submission is now in status SecLab finalize.

For information, the evaluation workflow is the following:
SecLab review > Generate Query Results > FP Check > CodeQL review > SecLab finalize > Pay > Closed

@ghsecuritylab
Copy link
Collaborator

Your submission is now in status Pay.

For information, the evaluation workflow is the following:
SecLab review > Generate Query Results > FP Check > CodeQL review > SecLab finalize > Pay > Closed

@xcorail
Copy link
Contributor

xcorail commented Jul 15, 2021

Created Hackerone report 1264781 for bounty 317584 : [221] [Java]: CWE 295 - Insecure TrustManager - MiTM

@xcorail xcorail closed this as completed Jul 15, 2021
@ghsecuritylab
Copy link
Collaborator

Your submission is now in status Closed.

For information, the evaluation workflow is the following:
SecLab review > Generate Query Results > FP Check > CodeQL review > SecLab finalize > Pay > Closed

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

No branches or pull requests

5 participants