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

Error messages on invalid SSL certificates miss certificate information #8461

Open
2xB opened this issue Jan 8, 2025 · 0 comments
Open

Error messages on invalid SSL certificates miss certificate information #8461

2xB opened this issue Jan 8, 2025 · 0 comments

Comments

@2xB
Copy link

2xB commented Jan 8, 2025

Summary

Error messages on invalid SSL certificates contain no information about what the offending certificate is. This makes it hard to understand sporadic certificate errors. Since sporadic certificate errors may be the sign of an attack, the required information to track such an issue should be available.

Environment Information

  • Mattermost App Version: Android 2.23.1

Steps to reproduce

Connect to a server from the Android app, change the SSL certificate of that server to an invalid certificate.

Expected behavior

I believe that one should be able to see what the offending certificate is - at least in the debug log - and be informed what the result of this is - whether actually data is at risk as the error message currently seems to imply or the connection is at least dropped to protect user data.

Observed behavior (that appears unintentional)

One is just informed that the certificate is invalid with an identical message in the debug log.

Possible fixes

I believe the debug log text comes from https://github.com/mattermost/react-native-network-client/blob/0ad8fad7867e1f7540a4a39caeecd918558054fa/android/src/main/java/com/mattermost/networkclient/NetworkClient.kt#L486 where the issue of missing debug information w.r.t. the offending certificate could be improved centrally.

The frontend text of the alert window shown to users currently uses the identical wording and is shown in

. I think it would be rather difficult to provide certificate information here, so I'd propose to just change mattermost/react-native-network-client and potentially just add some documentation to the frontend text about more information in the debug log.

@2xB 2xB changed the title Error messages on invalid SSL certificates are not explanatory Error messages on invalid SSL certificates miss certificate information Jan 8, 2025
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