Page MenuHomePhabricator

MediaWiki\Page\PageAssertionException: The given PageIdentity User:* does not represent a proper page
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   MediaWiki\Page\PageAssertionException: The given PageIdentity {pageIdentity} does not represent a proper page
exception.trace
from /srv/mediawiki/php-1.38.0-wmf.9/includes/page/WikiPageFactory.php(59)
#0 /srv/mediawiki/php-1.38.0-wmf.9/includes/MediaWiki.php(425): MediaWiki\Page\WikiPageFactory->newFromTitle(Title)
#1 /srv/mediawiki/php-1.38.0-wmf.9/includes/MediaWiki.php(318): MediaWiki->initializeArticle()
#2 /srv/mediawiki/php-1.38.0-wmf.9/includes/MediaWiki.php(925): MediaWiki->performRequest()
#3 /srv/mediawiki/php-1.38.0-wmf.9/includes/MediaWiki.php(559): MediaWiki->main()
#4 /srv/mediawiki/php-1.38.0-wmf.9/index.php(53): MediaWiki->run()
#5 /srv/mediawiki/php-1.38.0-wmf.9/index.php(46): wfIndexMain()
#6 /srv/mediawiki/w/index.php(3): require(string)
#7 {main}
Impact
Notes
  • The input is a fuzzing attempt -- a sql query
  • Creates a reproducible exception with a GET request

Details

Request URL
https://en.wikipedia.org/wiki/Special:MyPage/sandbox*{obvious fuzzing input}

Event Timeline

This is related to a long title (>255 chars), not the fuzzy attempt.

The code changed for 1.38-wmf.12 in https://gerrit.wikimedia.org/r/c/mediawiki/core/+/702614 - and it works for me (shows badtitle with message title-invalid-too-long).

The code changed for 1.38-wmf.12 in https://gerrit.wikimedia.org/r/c/mediawiki/core/+/702614 - and it works for me (shows badtitle with message title-invalid-too-long).

It only fails with Special:MyPage. It works when the redirected page is refreshed. SpecialMypage.php is using Title::makeTitle with the long subpage and that produces an Title object with an invalid title. That fails to redirect to badtitle also with current master.

Change 745582 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/core@master] Handle bad redirect target for personally identifiable special pages

https://gerrit.wikimedia.org/r/745582

Umherirrender triaged this task as Low priority.

Change 745582 merged by jenkins-bot:

[mediawiki/core@master] Handle bad redirect target for personally identifiable special pages

https://gerrit.wikimedia.org/r/745582