GeezerVison is showing github.com — MqttConnectPayload.toString() includes password · Issue #15547 · netty/netty
MqttConnectPayload.toString() includes password #15547
Description
io.netty.handler.codec.mqtt.MqttConnectPayload includes the password field (i.e. the password passed in from a remote user) in the toString() implementation. Applications using MqttConnectPayload may print these objects to their log (e.g. in case of a connection issue) and unwittingly include the user's password.
It would be much safer for MqttConnectPayload to simply log a placeholder value (e.g. ****) instead of the actual password. If the application really wants to fetch the password it can do so with the relevant getters.
Activity
changed the title
[-]MqttConnectPayload includes password in plain-text in toString()[/-] [+]MqttConnectPayload.toString() includes password in plain-text[/+] on Aug 11, 2025normanmaurer commented on Aug 11, 2025
jbertram commented on Aug 11, 2025
ContributorAuthor
More actions
changed the title
[-]MqttConnectPayload.toString() includes password in plain-text[/-] [+]MqttConnectPayload.toString() includes password[/+] on Aug 11, 2025
Metadata
Metadata
Development
No branches or pull requestsIssue actions