Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21c424b71f |
No files matched your search
@@ -1129,8 +1129,6 @@ The changes hold in front of every app, and no setting undoes them:
|
|||||||
- `wpPassword` on MediaWiki's pages;
|
- `wpPassword` on MediaWiki's pages;
|
||||||
- `password` and `retype` on `Special:ChangeCredentials`;
|
- `password` and `retype` on `Special:ChangeCredentials`;
|
||||||
- `retype` on `Special:CreateAccount`;
|
- `retype` on `Special:CreateAccount`;
|
||||||
- `retype` on `Special:UserLogin`, where a password reset sets the new
|
|
||||||
password;
|
|
||||||
- `lgpassword`, `password` and `retype` on `/api.php`.
|
- `lgpassword`, `password` and `retype` on `/api.php`.
|
||||||
|
|
||||||
They skip each rule that random passwords set off:
|
They skip each rule that random passwords set off:
|
||||||
|
|||||||
@@ -952,7 +952,6 @@ func TestPasswordFieldsStayCheckedInTheQuery(t *testing.T) {
|
|||||||
{mediawikiAccountChange, passwordField},
|
{mediawikiAccountChange, passwordField},
|
||||||
{mediawikiAccountChange, retypeKey + "="},
|
{mediawikiAccountChange, retypeKey + "="},
|
||||||
{mediawikiSignUp, retypeKey + "="},
|
{mediawikiSignUp, retypeKey + "="},
|
||||||
{"/wiki/Special:UserLogin", retypeKey + "="},
|
|
||||||
{"/user/sign_up", passwordField},
|
{"/user/sign_up", passwordField},
|
||||||
{"/user/settings/account", "old_password="},
|
{"/user/settings/account", "old_password="},
|
||||||
{wpLogin, "pass1="},
|
{wpLogin, "pass1="},
|
||||||
|
|||||||
@@ -198,7 +198,6 @@ SecRule REQUEST_FILENAME "@rx ^/(?:w/)?api\.php$" \
|
|||||||
# pages that take them:
|
# pages that take them:
|
||||||
# password, retype: changing the password at Special:ChangeCredentials
|
# password, retype: changing the password at Special:ChangeCredentials
|
||||||
# retype: signing up at Special:CreateAccount
|
# retype: signing up at Special:CreateAccount
|
||||||
# retype: setting the new password after a reset at Special:UserLogin
|
|
||||||
# The path names the page, or the path is /index.php and title names it. A title
|
# The path names the page, or the path is /index.php and title names it. A title
|
||||||
# on any other path does not count, so another app's paths under /index.php/
|
# on any other path does not count, so another app's paths under /index.php/
|
||||||
# keep every rule.
|
# keep every rule.
|
||||||
@@ -242,9 +241,9 @@ SecRule REQUEST_FILENAME "@rx ^/(?:w/)?index\.php$|^/(?:(?:w/)?index\.php|wiki)/
|
|||||||
ctl:ruleRemoveTargetById=942550;ARGS:/^(?:password|retype)$/,\
|
ctl:ruleRemoveTargetById=942550;ARGS:/^(?:password|retype)$/,\
|
||||||
ctl:ruleRemoveTargetById=944150;ARGS:/^(?:password|retype)$/"
|
ctl:ruleRemoveTargetById=944150;ARGS:/^(?:password|retype)$/"
|
||||||
|
|
||||||
SecRule REQUEST_FILENAME "@rx ^/(?:w/)?index\.php$|^/(?:(?:w/)?index\.php|wiki)/Special:(?:CreateAccount|UserLogin)(?:/|$)" \
|
SecRule REQUEST_FILENAME "@rx ^/(?:w/)?index\.php$|^/(?:(?:w/)?index\.php|wiki)/Special:CreateAccount(?:/|$)" \
|
||||||
"id:900920,phase:1,pass,nolog,chain"
|
"id:900920,phase:1,pass,nolog,chain"
|
||||||
SecRule REQUEST_FILENAME|ARGS_GET:title "@rx ^(?:/(?:(?:w/)?index\.php|wiki)/)?Special:(?:CreateAccount|UserLogin)(?:/|$)" "chain"
|
SecRule REQUEST_FILENAME|ARGS_GET:title "@rx ^(?:/(?:(?:w/)?index\.php|wiki)/)?Special:CreateAccount(?:/|$)" "chain"
|
||||||
SecRule &ARGS_GET:retype "@eq 0" \
|
SecRule &ARGS_GET:retype "@eq 0" \
|
||||||
"ctl:ruleRemoveTargetById=920270;ARGS:retype,\
|
"ctl:ruleRemoveTargetById=920270;ARGS:retype,\
|
||||||
ctl:ruleRemoveTargetById=920540;ARGS:retype,\
|
ctl:ruleRemoveTargetById=920540;ARGS:retype,\
|
||||||
|
|||||||
@@ -255,8 +255,6 @@ func TestMediaWikiSignUpAndPasswordChangeFieldsPass(t *testing.T) {
|
|||||||
{mediawikiSignUp, formData, retype},
|
{mediawikiSignUp, formData, retype},
|
||||||
{"/index.php/Special:CreateAccount", formData, retype},
|
{"/index.php/Special:CreateAccount", formData, retype},
|
||||||
{"/index.php?title=Special:CreateAccount&returnto=Main_Page", formData, retype},
|
{"/index.php?title=Special:CreateAccount&returnto=Main_Page", formData, retype},
|
||||||
{"/wiki/Special:UserLogin", formData, retype},
|
|
||||||
{mediawikiSignIn, formData, retype},
|
|
||||||
{mediawikiAccountChange, formData, change},
|
{mediawikiAccountChange, formData, change},
|
||||||
{mediawikiAccountChange + subpage, formData, change},
|
{mediawikiAccountChange + subpage, formData, change},
|
||||||
{"/index.php/Special:ChangeCredentials", formData, change},
|
{"/index.php/Special:ChangeCredentials", formData, change},
|
||||||
|
|||||||
Reference in new issue
Block a user