• Resolved xxxsokxxx

    (@xxxsokxxx)


    Filename: /public_html/wp-content/index.php
    File Type: Core
    Details: This WordPress core file has been modified and differs from the original file distributed with this version of WordPress.

    pls see the screenshot
    https://prnt.sc/TqpWS5RwiHyM

    I think the original is the new file the old one with this is removed from index
    must update the scan core of worfence
    ================
    old file
    <?php
    // Silence is golden.
    ====================================
    new file
    <?php
    /**
    * Front to the WordPress application. This file doesn’t do anything, but loads
    * wp-blog-header.php which does and tells WordPress to load the theme.
    *
    * @package WordPress
    */

    /**
    * Tells WordPress to load the WordPress theme and output it.
    *
    * @var bool
    */
    define( ‘WP_USE_THEMES’, true );

    /** Loads the WordPress Environment and Template */
    require __DIR__ . ‘/wp-blog-header.php’;

Viewing 1 replies (of 1 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @xxxsokxxx, thanks for reaching out to us.

    This is fairly interesting as I don’t think it points to a compromize on first-look but something has changed from the core installation.

    The original file simply containing the // Silence is golden. line is the intended content of public_html/wp-content/index.php, because it simply serves as a blank page so that your wp-content folder can’t be viewed in the browser when directly input in the address bar. This is what is present in my site’s installation.

    However, the modified file appears to be legitimate WordPress code, but should be present in the index.php file in the root directory of WordPress, not the wp-content directory. I would revert the file after checking that your public_html/index.php contains code similar or the same to the modified contents in this case.

    It may be appropriate to take a site backup before taking any action just in case anything breaks unexpectedly as a result of the change.

    Thanks,

    Peter.

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress core file modified: wp-content/index.php Type: File’ is closed to new replies.