• Resolved janh2

    (@janh2)


    Uncaught TypeError: Unsupported operand types: int - string in /var/www/public/wp-content/plugins/contact-form-7-honeypot/includes/honeypot4cf7.php:159

    Stemming from this code:

    		// SPAM CHECK #1: Let's check submission speed first, as it's time sensitive. :)
    $timecheck_start = isset( $_POST[$hpid.'-time-start'] ) ? $_POST[$hpid.'-time-start'] : '';

    if ( $timecheck_start ) {
    $submission_time = time();
    $timecheck_value = isset( $_POST[$hpid.'-time-check'] ) ? $_POST[$hpid.'-time-check'] : '';
    $submission_interval = $submission_time - $timecheck_start;

    This was triggered by an exploit scanner fuzzing a form. We don’t log the $_POST contents with these, but I assume that it was a combination of a string and an int being passed in $_POST.

    I think the easiest remedy would be cast the values from $_POST to int when they are being retrieved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Muhammad Usama

    (@usamaazad99)

    Hi @janh2 ,

    Thank you for contacting us. I hope you are doing well.

    We have forwarded your query to our technical team. They will investigate the issue, and I will update you soon.

    If you have any other queries, please let us know. We are always here to help you.

    Thanks & Regards,
    WP Experts Support Team

    Plugin Support Muhammad Usama

    (@usamaazad99)

    Hi @janh2 ,

    Thanks for your patience. I hope you are doing well.

    I have attached the Honeypot beta version link below. We have made some code changes that should resolve your issue. Please check this version on a staging site first before using it on the production site.

    Download Beta Version

    Once we have received your confirmation, we will proceed with the release.

    Thanks & Regards,
    WP Experts Support Team

    Thread Starter janh2

    (@janh2)

    Hi @usamaazad99 , thanks for your prompt reaction.

    Looks good to me, the typecast does address the problem.

    Plugin Support Muhammad Usama

    (@usamaazad99)

    Hi @janh2 ,

    Thanks for the update. I hope you are doing well. 

    If you have any other issues, please feel free to open a new ticket. We are always here to help you. 

    Have a great day!

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