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

Customized TrustManager bypasses certificate verification #445

Open
GraceXiaoYa opened this issue Jan 17, 2021 · 0 comments
Open

Customized TrustManager bypasses certificate verification #445

GraceXiaoYa opened this issue Jan 17, 2021 · 0 comments

Comments

@GraceXiaoYa
Copy link

Vulnerability Description:

We found a security vulnerability in file LittleProxy/src/main/java/org/littleshoot/proxy/extras/SelfSignedSslEngineSource.java. The customized TrustManger (at Line 125) allows all certificates to pass the verification.

Security Impact:

The checkClientTrusted and checkServerTrusted methods are expected to implement the certificate validation logic. Bypassing it could allow man-in-the-middle attacks.

Useful Resources:

https://cwe.mitre.org/data/definitions/295.html

https://developer.android.com/training/articles/security-ssl

Solution we suggest:

Do not customize the TrustManger or specify the certificate validation logic instead of allowing all certificates. See here to securely allow self-signed certificates and other common cases.

Please share with us your opinions/comments if there is any:

Is the bug report helpful?

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

No branches or pull requests

1 participant