Last modified: 2014-02-12 23:35:40 UTC
Environment, where the flaw has been repeatedly reproduced: Folder <webroot>/../tmp does not exist. A static copy of the phpinfo(); resides at http://longterm.softf1.com/2013/bug_reports/mediawiki/2013_02_07_flaw_x1/2013_02_07_softf1_com_phpinfo.html ========================================================= Reproduction sequence: 1) Create a folder (other than the <webroot>/../tmp) on a server and unpack the tarball of MediaWiki 1.20.2 to that folder. 2) Go to the main, index, page of the MediaWiki installation. Screenshot: http://longterm.softf1.com/2013/bug_reports/mediawiki/2013_02_07_flaw_x1/screenshot_1.png flaw_occurrence) Click on the "set up the wiki" link and a text with a structure of ---modified-citation--start-- Error starting session: session_start() [<a href='function.session-start'>function.session-start</a>]: open(<webroot/../>tmp/sessions/sess_4eb0a6ec79237ce8110e41f5252f6a1d, O_RDWR) failed: No such file or directory (2) ---modified-citation--end-- appears. Screenshot: http://longterm.softf1.com/2013/bug_reports/mediawiki/2013_02_07_flaw_x1/screenshot_2.png ========================================================= Flaw Workaround: Manually create an empty text file with the path of <webroot>/../tmp/sessions/sess_4eb0a6ec79237ce8110e41f5252f6a1d =========================================================
Hi Martin, thanks for reporting. To clarify: The problem only happens when <webroot>/../tmp does not exist?
I retested it. In pseudo-Bash, the cd <webroot>/../ mkdir ./tmp chmod -f -R 0777 ./tmp IS NOT ENOUGH for the workaround. On the other hand, cd <webroot>/../ mkdir -p ./tmp/sessions chmod -f -R 0777 ./tmp chmod -f -R 0777 ./tmp/sessions IS ENOUGH for the workaround and the session file gets created automatically. Currently it seems to me that the sessions folder is not created automatically, but if it were created automatically, the flaw would not be visible, provided that the <webroot>/../tmp existed and were writable for the server process. The MediaWiki 1.20.2 tarball installation instructions in the INSTALL file do not mention anything about the <webroot>/../tmp