Database Hacked?

Post

Posted
Rating:
#5214 (In Topic #1054)

500 errors on site

I believe that my site has been hacked by a renaming of the OCP tables. Here is a screenshot:

Post

Posted
Rating:
#5215
Ok. I've determined that it has something to do with the PHP version being used by my host. Reverting to 5.6 got the site working again but switching to 7.0+ is giving problems… I've installed a new script in a subdirectory which works for PHP 7.0+ but something is conflicting. What needs to be enabled to get compo.sr working again properly under 7.0? The host has 7.3…

Post

Posted
Rating:
#5216
Hi,

So the original table prefix really was 'crap_'   :lol: ?
If it's working again, I'd guess so.

What version of ocPortal are you on? PHP 7.0 did break compatibility with some versions.

Post

Posted
Rating:
#5218
So of course ocPortal 9 has been discontinued for some time, but I'll try and help.

PHP 7.0 support was added in 9.0.23.

The following files were changed:
  • sources/developer_tools.php
  • sources/global.php
  • sources/global2.php

The latest versions of the files can be found on the old ocPortal GitHub:
https://github.com/chrisgraham/ocPortal/tree/v9
You can browse through files and get to the raw source code.

And the actual changes to the files were made in this commit https://github.com/chrisgraham/ocPortal/commit/3173f0f3361ef9b9ae8c64dbcd8297aaabf37102
Along with some other completely unrelated things unfortunately, so ignore changes to any other files in that commit.

Post

Posted
Rating:
#5269
Apologies. I'm running the latest version of Composer. Just used to the term since I've been using OCPortal and have since switched to Composer some time ago.

Post

Posted
Rating:
#5271
I'm going to close this topic, as it is the same issue as:
https://compo.sr/forum/topicview/browse/deploying/error-503-showing-up.htm
(just the server now is reporting errors differently)
1 guest and 0 members have recently viewed this.