commons-app / apps-android-commons

The Wikimedia Commons Android app allows users to upload pictures from their Android phone/tablet to Wikimedia Commons
https://commons-app.github.io/
Apache License 2.0
1.03k stars 1.24k forks source link

Non-app edit using tag Wikimedia Commons App #3089

Open nicolas-raoul opened 5 years ago

nicolas-raoul commented 5 years ago

The edit creating this Wikidata user page is tagged as being made by the Wikimedia Commons App: https://www.wikidata.org/w/index.php?title=User:V123456789012&curid=65309449&action=history

It is obviously wrong, and I wonder how the tag managed to get there.

maskaravivek commented 5 years ago

It is obviously wrong, and I wonder how the tag managed to get there.

Do you mean its ethically wrong or technically?

I was under the assumption that anyone can add a tag to any revision using a simple authenticated API call. Is there a way to restrict a tag's usage?

nicolas-raoul commented 5 years ago

Morally I guess haha

If it is a test, why not, but using it outside the app interferes with our statistics. I actually spotted it when monitoring, so that interferes with monitoring too.

nicolas-raoul commented 5 years ago

The user who had performed the edits above has been blocked for sockpupetting.

But here is already another example (item created by the new editor for self-promotion): https://www.wikidata.org/w/index.php?title=Q66124491&offset=&limit=500&action=history

whym commented 5 years ago

They must be modifying the user agent header. If the user agent header contains "Commons/", MediaWiki recognizes it as this app: https://github.com/wikimedia/mediawiki-extensions-MobileApp/blob/5712e704bd55adf16bdbc192a72e855ab7d0889e/includes/MobileAppHooks.php#L27

(It could be unlucky coincidence if there is a browser with such a user agent name, but I don't know one.)