An issue was discovered in MediaWiki before 1.35.5, 1.36.x before 1.36.3, and 1.37.x before 1.37.1. It is possible to use action=mcrundo followed by action=mcrrestore to replace the content of any arbitrary page (that the user doesn't have edit rights for). This applies to any public wiki, or a private wiki that has at least one page set in $wgWhitelistRead.
{
"versions": [
{
"introduced": "0"
},
{
"fixed": "1.35.5"
},
{
"introduced": "1.36.0"
},
{
"fixed": "1.36.3"
},
{
"introduced": "1.37.0"
},
{
"fixed": "1.37.1"
}
]
}