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

(security) the user agent is disclosed in the “application” field of every post #362

Closed
bruceleerabbit opened this issue May 29, 2023 · 3 comments

Comments

@bruceleerabbit
Copy link

All of every user’s posts include a JSON field “application” which tips off any potential adversaries what software the user is running. This needless disclosure can be used to plan an attack.

This also creates a doxxing vulnerability. It leaves fingerprints all over the place publicly, so if (for example) EdVargo@VargoCorp also has a pseudo-anonymous account [email protected], someone working for VargoCorp can put the two together & figure out that both accounts are by the same person. This actually happened to me. People are clever & toot is a rare client.

There’s also a social problem. I really do not want any github URLs in my messages. I oppose Github and I shame Microsoft. I’m here under protest & actually do not report many bugs on any projects for which the bug tracker is exclusively on a Microsoft asset.

Most users are likely unaware of this user agent disclosure. Thus the field should be omitted by default.

@llfw
Copy link
Contributor

llfw commented Jan 1, 2024

Mastodon doesn't provide an easy way to avoid this on the client side. logging in to the API requires creating an application, which takes client_name as a required parameter. this client name is also displayed to the user in the web UI when authorising the application, and in the list of authorised applications, so setting this to anything other than "toot" by default would create a confusing user experience.

Mastodon already provides functionality to hide the application name from other people at "Preferences > Other > [ ] Disclose application used to send posts", which is probably the right way for users to disable this behaviour.

@igalic
Copy link

igalic commented Jan 1, 2024

I always thought that's an advertising feature, so people can see what client you are using, to quickly spread new clients

even if you don't like the feature, calling it a security issue seems mildly overblown

@ihabunek
Copy link
Owner

ihabunek commented Jan 4, 2024

Mastodon already provides functionality to hide the application name from other people at "Preferences > Other > [ ] Disclose application used to send posts", which is probably the right way for users to disable this behaviour.

I believe this should fix the problem outlined in the issue. Thanks @lexiwinter

@ihabunek ihabunek closed this as completed Jan 4, 2024
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

4 participants