• Hello, I got a warning from wordfence that razorpay has malcious or unsafe file. I have attached the alert message below. I downloaded that bootstrap.php file and checked with VirusTotal and it shows no issue. Also checked with some other AI tools and got safe message. But wordfence is showing warning message. Maybe a false positive. Please contact with wordfence and resolve the issue.

    File appears to be malicious or unsafe: –tutor/wp-content/plugins/woo-razorpay/tests/phpunit/bootstrap.php

    <?php
    
    // path to test lib bootstrap.php
    $test_lib_bootstrap_file = dirname( __FILE__ ) . '/includes/bootstrap.php';
    
    if ( ! file_exists( $test_lib_bootstrap_file ) ) {
        echo PHP_EOL . "Error : unable to find " . $test_lib_bootstrap_file . PHP_EOL;
        exit( '' . PHP_EOL );
    }
    
    // set plugin and options for activation
    $GLOBALS[ 'wp_tests_options' ] = array(
        'active_plugins' => array(
            'woocommerce/woocommerce.php',
            basename(realpath(dirname(__FILE__) . '/../../')) . '/woo-razorpay.php'
        ),
        'wpsp_test' => true
    );
    
    // call test-lib's bootstrap.php
    require_once $test_lib_bootstrap_file;
    
    require_once 'tests/phpunit/util/class-util.php';
    require_once PLUGIN_DIR . '/vendor/autoload.php';
    $current_user = new WP_User( 1 );
    $current_user->set_role( 'administrator' );
    
    echo PHP_EOL;
    echo 'Using WordPress core : ' . ABSPATH . PHP_EOL;
    echo PHP_EOL;
    • This topic was modified 6 months, 1 week ago by karthic24.
Viewing 3 replies - 1 through 3 (of 3 total)
  • marcopolo11

    (@marcopolo11)

    I got same alert from wordfence (and I get repeatedly), @razorpay should look into this at the earliest.

    Thread Starter karthic24

    (@karthic24)

    2 months and still no response ??

    Razorpay development team never bothers with tickets raised directly on their site, we are expecting them to respond here on wordpress. There is a reason their plugin rating is so bad.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.