Not sure how serious that is (Can usernames/servicenames contain < or >. Normal mw names cannot). Erring on the side of caution
discovered by phan taint check
Bawolff | |
Sep 8 2018, 5:05 PM |
F25791645: T203885-2-1.patch | |
Sep 13 2018, 1:45 AM |
F25791564: T203885-2.patch | |
Sep 13 2018, 1:34 AM |
F25713771: Special:NovaSudoer XSS | |
Sep 8 2018, 5:08 PM |
Not sure how serious that is (Can usernames/servicenames contain < or >. Normal mw names cannot). Erring on the side of caution
discovered by phan taint check
Pretty sure they cannot contain <>. From https://wikitech.wikimedia.org/wiki/Special:CreateAccount
... It must start with a-z, and can only contain lowercase a-z, 0-9 and - characters.
+1 to the patch.
They definitely can't in MediaWiki (<> or invalid in Titles, user's have to be valid Titles. Although the CreateAccount page seems wrong as my name has a space/underscore in). I was more not sure about new horizion stuff and what a "servicename" is.
Change 459640 had a related patch set uploaded (by Brian Wolff; owner: Brian Wolff):
[mediawiki/extensions/OpenStackManager@master] SECURITY: Escape usernames on Special:NovaSudoer
Change 459640 merged by Brian Wolff:
[mediawiki/extensions/OpenStackManager@master] SECURITY: Escape usernames on Special:NovaSudoer
Patch "SECURITY: Escape usernames on Special:NovaSudoer" is apparently merged and has made it into 1.32.0-wmf.22. I have dropped it from the cluster.
Change 472380 had a related patch set uploaded (by Brian Wolff; owner: Brian Wolff):
[mediawiki/extensions/OpenStackManager@master] SECURITY: Fix escaping of "runas" users on Special:NovaSudoer
Change 472380 merged by Brian Wolff:
[mediawiki/extensions/OpenStackManager@master] SECURITY: Fix escaping of "runas" users on Special:NovaSudoer