Last modified: 2009-03-11 18:12:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T19879, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17879 - AuthPlugin allows the creation of locally forbidden names.
AuthPlugin allows the creation of locally forbidden names.
Status: RESOLVED DUPLICATE of bug 17877
Product: MediaWiki extensions
Classification: Unclassified
CentralAuth (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-09 07:32 UTC by Robert Rohde
Modified: 2009-03-11 18:12 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Robert Rohde 2009-03-09 07:32:29 UTC
User::isValidUserName prevents the local creation of usernames that are prefixed with namespace keys, i.e. User:Wikipedia:Bob is forbidden when Wikipedia: is a local namespace.

However, the vandal mentioned in bug 17877 demonstrated that CentralAuth (and AuthPlugins in general) can allow one to bypass this.

For example, create an account such as User:WP:ANI in a wiki that does not have a WP: namespace and then use single user login to create the same account on enwiki, where it would normally be forbidden.

I'm filing this separately from 17877 because strictly speaking one could address that issue without addressing this one (or vice versa), but I believe that if the AuthPlugin functionality is fixed to prevent the creation of accounts whose names are locally forbidden due to naming conflicts then that would eliminate the most likely and accessible path that leads to the bug described in 17877.  (Other paths to a 17877 scenario include the post-facto creation of a conflicting namespace, or the use of RenameUser to intentionally move an account to a conflicting name.)

Also, I think the best approach is to patch Mediawiki to prevent AuthPlugins from creating new accounts for locally forbidden names, but I suppose one might also consider patching just CentralAuth to accomplish the same thing for just Wikimedia.
Comment 1 Robert Rohde 2009-03-11 18:12:12 UTC
The way Andrew approached 17877 essentially made it a duplicate of this.  Marking as such.

*** This bug has been marked as a duplicate of bug 17877 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links