Related with {T194204} (T194204#4203099)
Pre requirements
- User having a change user rights privileges (*not* restrict to "userrights" permissions)
Steps to Reproduce
- Go to https://test.wikipedia.org with no logged in session (e.g. Open with Secret mode)
- Make sure you are not logged in
- logged in via https://test.wikipedia.org/wiki/Special:Login
- Create bot password from https://test.wikipedia.org/wiki/Special:BotPasswords/test20180514
- Make sure "Basic rights" is checked
- Write down the botpassword credentials
- Steward does lock the account ( Step 3 )
- Go to https://test.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&meta=tokens&type=login
- Push [Make request] button
- copy "logintoken" value (without last '\')
- Go to https://test.wikipedia.org/wiki/Special:ApiSandbox#action=login&format=json
- input "lgname" form in botpassword's username
- input "lgpassword" form in botpassword's password
- input "lgtoken" form in that get step 10
- Push [Make request] button
- Go to https://test.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&meta=tokens&type=userrights
- Push [Make request] button
- Write down the "userrightstoken" value
- Go to https://test.wikipedia.org/wiki/Special:ApiSandbox#action=userrights&format=json
- input "user" form or "userid" form
- choose add or remove rights
- input "token" form that get in step 17
- Push [Make request] button
- done
Problems:
- botpassword can be logged in when user have been locked (It seems not found an available "hook" for this)
- userrights can be changeable in "basic" grants.
- CentralAuth does not reject a request because CentralAuth does not use hook for "ChangeUserGroups"