I would more suspect a code injection via a plugin’s vulnerability; there have been a few of those lately. I don’t think it is a virus; just someone that exploited an unpatched vulnerability.
You don’t specify whether the site has been updated (WP, plugins, themes) or the PHP version; this would be useful information.
To clean, I would upload fresh/clean versions of all theme and plugin code (deleting those plugin/theme folder’s contents first), then upload a fresh WP (everything except your wp-config.php).
I’d also look at your htaccess files, and any custom Child Themes, for any inserted/invalid code. A good database backup is a good idea; and an inspection of the wp-contents table for inserted or modified post records.
And, of course, strong passwords everywhere (WP, database, hosting, FTP); an admin user that is not called ‘admin’ (and not user #1), and strong passwords on all admin-level accounts.
Related Posts:
- Does wordpress have an error log?
- Recommend a guide to catching plugin errors, please?
- Can’t Change Theme And White Screen When Activating Any Plugin
- Fatal error: Allowed memory size of 146800640 bytes exhausted (tried to allocate 57 bytes) in public_html/wp-includes/rewrite.php on line 1561
- White Screen on Site but wp-admin OK
- Fatal error: Uncaught Error: Call to undefined function wp() in /home/nr4dxonhypyy/public_html/wp-blog-header.php:16
- Fatal error: Uncaught Error: Call to undefined function add_action()
- Unable to edit with Elementor
- Why does this show up when i try to log in
- Fatal error: Allowed memory size of bytes exhausted (tried to allocate 36 bytes)
- WP_Error message
- Fatal error: Cannot declare class WP_User_Request, because the name is already in use?
- I’m getting Call to undefined function wp_parse_list() out of the blue
- Fatal error: require(): Failed opening required ‘load.php’
- Fatal error trace not shown in development setup
- Cannot access non-wordpress subdirectories as wordpress overrides them with a 404 error
- Change login error messages
- Undefined offset: 0 in > […] /wp-includes/capabilities.php on line 1067
- Notice: Undefined index: host in /var/www/html/wp-includes/canonical.php on line 445
- Notice: Constant WP_POST_REVISIONS already defined
- How to stop certain warning logging in error.log?
- Debug mode shows Strict Standards
- Why on Earth am I getting “undefined_index” errors?
- Displaying oEmbed errors?
- “Apache HTTP Service has stopped working” with WP Query in WordPress 2.9.2
- Showing “ Notice: Undefined variable:” and “ Notice: Trying to get property of non-object”
- Publishing Time – WordPress Plain White Screen with No Error
- Sodium compat error
- Fatal error: require(): Failed opening required ‘WP_DIRwp-blog-header.php’
- add_sub_menu page() to be replaced by add_theme_page()
- Removing warnings and notices from production servers
- What does this error mean? WordPress database error: [MySQL server has gone away]
- Fatal error: Call to undefined function is_multisite()
- Error trying to publish immediately. Post status = future (Missed schedule error)
- WordPress white screen with word ‘error’ [closed]
- File does not exist – wp-index.php
- I need https::/mysite.com instead of https::/mysite.com/wordpress
- Nginx 404, 500 errors and WordPress
- Warning: Invalid argument supplied for foreach() in portfolio-list.php [closed]
- “Undefined index” in wp-includes/media.php
- Can’t post to my WordPress site
- Error message prevents access to WP
- I could not access my website wp-admin after installing SSL. And error with mixed content
- Page Not Found on categories / tags / pages
- is there any function to store logs & send mail to admin?
- Error on moving WordPress site to Host from Local installation
- wp_remote_get sslv3 alert handshake failure
- Getting notices on fresh 3.6.1 install
- Error after moving WordPress installation
- Declare Global Variable In OOP PHP
- How can I fix buggy WordPress dashboard [duplicate]
- I was adding the custom CSS & JS using hooks and there was this error even I didn’t touch the wp-class-hook
- Why can I not execute php files under the wp-includes folder?
- Headers already sent by
- Failed: Filesystem preventing downloads. ( ftpext)
- Code snippet to display ID gives critical error
- There has been a critical error on your website – won’t fix no matter what
- I tried to build a theme from scratch and it crashed everything
- error log bloated by add_view
- Warning: require_once(/home/onetwo/public_html/wp-config.php): [closed]
- Unable to locate WordPress content directory
- WP Core Update Issue
- Cannot upgrade to 4.0 – get SSL certificate error
- Fatal Error: get_header();
- Error when setting cookie
- styles/default.css in markup, where does it come from? [closed]
- download count29.php whene loading site [closed]
- My new WordPress blog keeps refreshing in Chrome browser
- Undefined index error on options array element?
- Getting no Error Log File saved to my local directory, and no debug info displayed in the web browser
- How to turn off WP error handling, but turn on php error handling?
- Replace old theme that understand old css (vcex_icon_box css_animation)
- Error regarding invalid file permissions for upgrading WordPress version
- How to solve the error “Oops! That page can’t be found” when access Portfolio
- Fatal Error when trying to load Permalinks page on WP admin [closed]
- Publication in wrong category
- Suddenly get errors in admin when editing post type
- Dashboard widget, screen options/help doesn’t work?
- Getting amp; on every single category, post and page title. How to Remove?
- WordPress fails when my post is larger than 1400 words
- Seeing “error” as text on white when accessing admin
- Unregister Settings Error
- Weird Parse Error on Uploaded File
- 500 internal server error with wordpress
- call user func array error after moved the site to new server
- Plugin won’t activate, fatal error (widget class not found)
- Why I am having error Call to undefined function get_header()?
- Avoiding “headers already sent” in WordPress
- problem ajaxurl – designthemes-core-features
- Help with overloading the limits of CPU/RAM issue in a resseler account with wp sites
- Whole right area of wordpress admin dashboard not showing
- Only specific users timing out
- kali php problem [closed]
- WordPress Customizer not loading
- Error Message – Cannot login to WordPress
- syntax error, unexpected ‘=>’ (T_DOUBLE_ARROW) [closed]
- Error code 499 on specific cron job
- Please Help Me, How to Fix PHP Error Undefined Array Key “srcset”
- My websit dosent worke http errors 500
- 403 forbidden in admin console: fix seems to be temporary and then error is back