Plugin Directory

Changeset 3185636


Ignore:
Timestamp:
11/11/2024 11:21:20 AM (17 months ago)
Author:
zohocrm
Message:

Security review changes has been updated

Location:
zoho-crm-forms/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • zoho-crm-forms/trunk/Readme.txt

    r3185097 r3185636  
    77Author: Zoho CRM
    88Tested up to: 6.7
    9 Stable tag:1.7.9.7
     9Stable tag:1.7.9.8
    1010License: GPLv2 or later
    11 Version: 1.7.9.7
     11Version: 1.7.9.8
    1212License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1313
     
    296296Wordpress latest version compatibility check
    2972971.7.9.5
    298 Security review chnages has been updated
     298Security review changes has been updated
    2992991.7.9.6
    300 Security review chnages has been updated
     300Security review changes has been updated
    3013011.7.9.7
    302302Wordpress latest version compatibility check
     3031.7.9.8
     304Security review changes has been updated
    303305
    304306== Upgrade notice ==
  • zoho-crm-forms/trunk/includes/crmcontactformgenerator.php

    r3185097 r3185636  
    5353
    5454function zcf_ContactFormFieldsGenerator($attr, $thirdparty) {
    55 
    56 
    5755    global $HelperObj;
    5856    global $module_options, $module, $isWidget, $assignedto, $check_duplicate, $update_record, $formattr, $attrname;
    5957    $module_options = 'Leads';
    6058    $newform = new zcffieldlistDatamanage();
    61     if($attr['name'] ==''){
    62       $attr['name'] = $attr['id'];
     59    if (empty($attr['name'])) {
     60        $attr['name'] = sanitize_text_field($attr['id']); 
     61    } else {
     62        $attr['name'] = sanitize_text_field($attr['name']);
    6363    }
    6464    $newshortcode = $newform->zcfformfieldsPropsettings($attr['name']);
     
    7272    $check_duplicate = $FormSettings->duplicate_handling;
    7373    if (isset($shortcodes['update_record'])) {
    74         $update_record = $shortcodes['update_record'];
    75     }
     74        $update_record = sanitize_text_field($shortcodes['update_record']); // Sanitize if needed
     75    }
     76
    7677    return zcf_ContactFormfieldlistsMapping($module, $config_fields, $module_options, "post", $thirdparty);
    7778}
     79
    7880
    7981function zcf_callcontactform7mapping($formtype) {
  • zoho-crm-forms/trunk/includes/crmwebformsfieldsmapping.php

    r3178287 r3185636  
    383383    function zcfFormPropSettings($shortcodename = "") {
    384384        global $wpdb;
    385         $query = "";
    386         $where = "";
     385        $query = "SELECT * FROM zcf_zohoshortcode_manager";
     386       
     387        // Use a prepared statement to safely handle user input
    387388        if ($shortcodename != "") {
    388             $where = " where shortcode_name = '$shortcodename'";
    389         }
    390         $query = "select * from zcf_zohoshortcode_manager";
    391         $sql = $query . $where;
     389            $sql = $wpdb->prepare("SELECT * FROM zcf_zohoshortcode_manager WHERE shortcode_name = %s", $shortcodename);
     390        } else {
     391            $sql = $query;
     392        }
     393
    392394        $results = $wpdb->get_results($sql);
    393         if (( $shortcodename != "" ) && ( count($results) > 0 )) {
    394             $return_results = $results[0];
    395             return $return_results;
     395       
     396        if (($shortcodename != "") && (count($results) > 0)) {
     397            return $results[0];
    396398        } else {
    397399            return $results;
  • zoho-crm-forms/trunk/index.php

    r3185097 r3185636  
    44 * Plugin Name: Zoho CRM Lead Magnet
    55 * Description: Websites are one of the most important sources of leads for your business. That means your CRM system should be well integrated with your website to contextually capture each and every visitor to turn them into a lead.Introducing the Zoho CRM Lead Capture plugin for Wordpress. This lets you create webforms, embed them in your website, and automatically capture leads directly into your CRM with zero attenuation.Not only is the integration easy to set-up but it's also easy on your wallet.
    6  * Version: 1.7.9.7
     6 * Version: 1.7.9.8
    77 * ***************************************************************************************** */
    88if (!defined('ABSPATH'))
    99    exit;
    1010
    11         define( 'ZCF_VERSION', '1.7.9.7' );
     11        define( 'ZCF_VERSION', '1.7.9.8' );
    1212        define( 'ZCF_LBPLUGINFILE', __FILE__ );
    1313        define( 'ZCF_LBPLUGIN_URL', untrailingslashit( plugins_url( '', ZCF_LBPLUGINFILE ) ) );
Note: See TracChangeset for help on using the changeset viewer.