Large wfConfig Table Causing PHP Crash
-
Wordfence Security Version 7.1.15 [Free]
WordPress 4.9.8 with all plugins updated
CentOS 6 running WHM/cPanelWe have an installation of WordFence that seems to be going crazy and overpopulating its config table. Eventually, it became several MB large, and caused PHP to crash due to the memory limit being surpassed.
[26-Sep-2018 08:14:51 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /home/[redacted]/public_html/wp-content/plugins/wordfence/lib/wfConfig.php on line 280While the obvious answer to fix this crashing would be to up the memory limit, it would just mask the problem. I believe 256MB is plenty for most websites already (it’s fine for the other 20+ websites on this server).
When inspecting the table wp_wfConfig, it seems to have a ton of duplicate entries. I had done a complete uninstall/re-install of the plugin in order to get the site back online, and a week later it is up to 14820 rows already (it added 10 more while typing this); I cannot remember how many it was before when it crashed the site, but it was in the hundreds of thousands possibly. I’ve checked with other sites I manage, and none have more than a few hundred rows.
An example of the last 25 rows (unable to display the BLOB contents except individually thru PhpMyAdmin):
name val autoload lastBruteForceDataSendTime [BLOB - 17 B] yes lastBruteForceDataSendTime [BLOB - 17 B] yes lastBruteForceDataSendTime [BLOB - 17 B] yes lastBruteForceDataSendTime [BLOB - 17 B] yes totalLoginHits [BLOB - 3 B] yes totalLoginHits [BLOB - 3 B] yes totalIPsBlocked [BLOB - 3 B] yes total503s [BLOB - 3 B] yes lastBruteForceDataSendTime [BLOB - 17 B] yes lastBruteForceDataSendTime [BLOB - 17 B] yes lastBruteForceDataSendTime [BLOB - 17 B] yes totalLoginHits [BLOB - 3 B] yes lastBruteForceDataSendTime [BLOB - 17 B] yes totalLoginHits [BLOB - 3 B] yes totalIPsBlocked [BLOB - 3 B] yes total503s [BLOB - 3 B] yes total503s [BLOB - 3 B] yes lastBruteForceDataSendTime [BLOB - 17 B] yes totalLoginHits [BLOB - 3 B] yes totalIPsBlocked [BLOB - 3 B] yes total503s [BLOB - 3 B] yes total503s [BLOB - 3 B] yes lastBruteForceDataSendTime [BLOB - 17 B] yes lastBruteForceDataSendTime [BLOB - 17 B] yes lastBruteForceDataSendTime [BLOB - 17 B] yesIs this from the site being under attack? I haven’t received email alerts of crazy proportions, and all scans have been clean.
The topic ‘Large wfConfig Table Causing PHP Crash’ is closed to new replies.