Proof of concept:
- Person A creates a patch demo wiki using https://patchdemo.wmcloud.org/ using the default settings (except with the "Use (Catalyst) Kubernetes backend (beta)" option unticked, due to T384662).
- Person A takes actions on the demo wiki while logged in to an account.
- Person B logs into the demo wiki using the account "Patch Demo", which will have been automatically added to the checkuser group (https://gitlab.wikimedia.org/repos/test-platform/catalyst/patchdemo/-/blob/6f56abcc924eab54eeef55a9d859aa6f00c6a213/new/postinstall.sh#L100-102). The credentials for this account appear to be public knowledge (see e.g., https://www.mediawiki.org/wiki/Design_System_Team/Test_environments#Patchdemo, https://gitlab.wikimedia.org/repos/test-platform/catalyst/patchdemo/-/blob/6f56abcc924eab54eeef55a9d859aa6f00c6a213/new.php#L118). This is understandable given that the point of the wiki is to easily test patches; however, this means that anyone with an Internet connection can theoretically log-into & act as this account.
- After logging in, Person B navigates to Special:CheckUser, and runs a check against every account listed at Special:ListUsers. Person B now knows the User-Agent(s) used by Person A (and any other people that have used the demo wiki) -- who, to my knowledge, will not have been told that their User-Agent(s) can be accessed by anyone in this way.
Notes
- Although a User-Agent string is arguably less sensitive than an IP address, to my knowledge it is still considered personal information, hence why I am submitting this security report.
- Although many patch demo wikis may only ever be used by a very small number of people involved with developing a patch, this will not always be the case -- for example, https://en.wikipedia.org/wiki/Wikipedia:Administrators%27_noticeboard#h-Try_it_out-Reverse_partial_blocks_are_coming_to_MediaWiki! is an example of a situation where a demo wiki may be more widely advertised in order to (e.g.) solicit feedback on a proposed change to MediaWiki.
