An unexpected error has occurred. Please reload the page and try again. in ojs3

Hi Friends

When I open Submissions (as admin) or the admin Dashboard, I get the modal:

Error
An unexpected error has occurred. Please reload the page and try again.

In the browser Network tab, the AJAX calls to _submissions return 500.

Example entries:

lua

CopyEdit

_submissions?status=1&assignedTo=-1&searchPhrase=&count=30&offset=0 → 500 _submissions?status=1&searchPhrase=&count=30&offset=0 → 500 _submissions?status[]=4&status[]=3&...&count=30&offset=0 → 500

If I temporarily turn on debugging in config.inc.php:

ini

CopyEdit

display_errors = On show_stacktrace = On debug = On

…I then see a PHP fatal (from the failing request):

php

CopyEdit

Fatal error: Uncaught RuntimeException: Unexpected data in output buffer. Maybe you have characters before an opening <?php tag? in /lib/pkp/lib/vendor/slim/slim/Slim/App.php:621 Stack trace: #0 /lib/pkp/lib/vendor/slim/slim/Slim/App.php(317): Slim\App->finalize() #1 /lib/pkp/classes/core/APIRouter.inc.php(115): Slim\App->run() #2 /lib/pkp/classes/core/Dispatcher.inc.php(144): APIRouter->route() #3 /lib/pkp/classes/core/PKPApplication.inc.php(360): Dispatcher->dispatch() #4 /index.php(68): PKPApplication->execute()

With debugging Off, the modal returns and the requests are 500 again.

Hi @Alnasser,

Would you mind indicating what specific version of OJS you’re using (e.g. 3.3.0-13)?

-Roger

PKP Team

The OJS version is

3.3.0.21

I think there is a security vulnerability related to uploading files in the form of submissions, through which the hacker was able to display this error, as well as delete the previous files published in the first volume of the journal.

Hi @Alnasser,

What is the value of your files_dir setting in the config.inc.php configuration file?

Regards,
Alec Smecher
Public Knowledge Project Team

files_dir = “/home/xxxxxxxxxxxxx/domains/ujbatm.urnammuacademy.org/filesxxxxx”

Today, again same problem.

this happen when person visit my website, which i know using the flag counter.

Hi @Alnasser,

Is that directory inside the web root (in other words, are its contents web-accessible if someone can guess the URL)? If so, that’s a dangerous configuration and would explain how your server got hacked. There are warnings about this in the installation form, configuration file, and in our various related pieces of documentation.

Regards,
Alec Smecher
Public Knowledge Project Team

To solve this, I upload the lib files from original version the the ojs work again? what is your suggestions?

Hi @Alnasser,

How to cleaning up a backdoored application is a general web admin question, so you might find good advice on e.g. StackOverflow. But there are some recommendations here:

Regards,
Alec Smecher
Public Knowledge Project Team

This topic was automatically closed after 12 days. New replies are no longer allowed.