Changeset 3462933
- Timestamp:
- 02/16/2026 10:07:38 PM (3 weeks ago)
- Location:
- codemonkeys-hipaa-forms/trunk
- Files:
-
- 9 edited
-
admin-enqueue.php (modified) (1 diff)
-
ajax-functions-php7.php (modified) (7 diffs)
-
css/admin-style.css (modified) (1 diff)
-
css/style.css (modified) (1 diff)
-
enqueue.php (modified) (1 diff)
-
hipaa-forms.php (modified) (1 diff)
-
js/admin-script.js (modified) (1 diff)
-
js/script.js (modified) (12 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
codemonkeys-hipaa-forms/trunk/admin-enqueue.php
r3445824 r3462933 37 37 // ENQUEUE SCRIPT 38 38 wp_enqueue_script( 'jquery-form' ); 39 wp_enqueue_script( 'cmHipaaAdminBuggyFill', plugin_dir_url(__FILE__) . 'js/viewport-units-buggyfill.js', array('jquery'), '3.1. 8', true );40 wp_enqueue_script( 'cmHipaaAdminBuggyFillHack', plugin_dir_url(__FILE__) . 'js/viewport-units-buggyfill.hacks.js', array('jquery'), '3.1. 8', true );41 wp_enqueue_script( 'cmHipaaAdminScript', plugin_dir_url(__FILE__) . 'js/admin-script.js', array('jquery'), '3.1. 8', true );42 wp_enqueue_script( 'cm-hipaa-signature', plugin_dir_url(__FILE__) . 'js/jSignature/jSignature.min.noconflict.js', array('jquery'), '3.1. 8', true);43 wp_enqueue_script( 'cm-hipaa-jquery-print', plugin_dir_url(__FILE__) . 'js/printThis.js', array('jquery'), '3.1. 8', true);39 wp_enqueue_script( 'cmHipaaAdminBuggyFill', plugin_dir_url(__FILE__) . 'js/viewport-units-buggyfill.js', array('jquery'), '3.1.9', true ); 40 wp_enqueue_script( 'cmHipaaAdminBuggyFillHack', plugin_dir_url(__FILE__) . 'js/viewport-units-buggyfill.hacks.js', array('jquery'), '3.1.9', true ); 41 wp_enqueue_script( 'cmHipaaAdminScript', plugin_dir_url(__FILE__) . 'js/admin-script.js', array('jquery'), '3.1.9', true ); 42 wp_enqueue_script( 'cm-hipaa-signature', plugin_dir_url(__FILE__) . 'js/jSignature/jSignature.min.noconflict.js', array('jquery'), '3.1.9', true); 43 wp_enqueue_script( 'cm-hipaa-jquery-print', plugin_dir_url(__FILE__) . 'js/printThis.js', array('jquery'), '3.1.9', true); 44 44 }; 45 45 }; -
codemonkeys-hipaa-forms/trunk/ajax-functions-php7.php
r2732797 r3462933 536 536 function cm_hipaa_validate_account() { 537 537 if (isset($_REQUEST)) { 538 $nononce = sanitize_text_field($_REQUEST['nononce']) ?? ''; 539 $nonce = sanitize_text_field($_REQUEST['nonce']) ?? ''; 540 541 if($nononce !== '1' && !wp_verify_nonce($nonce, 'cm-hipaa-forms-nonce')) { 538 $nonce = sanitize_text_field($_REQUEST['nonce']) ?? ''; 539 540 if(!wp_verify_nonce($nonce, 'cm-hipaa-forms-nonce')) { 542 541 $results = array( 543 542 'error' => 'Nonce expired, please refresh the page. If the error persists please contact the site administrator' … … 616 615 function cm_hipaa_get_file_upload_url() { 617 616 if (isset($_REQUEST)) { 618 $nononce = sanitize_text_field($_REQUEST['nononce']) ?? '';619 617 $nonce = sanitize_text_field($_REQUEST['nonce']) ?? ''; 620 618 $fileName = sanitize_text_field($_REQUEST['file_name']) ?? ''; 621 619 622 if( $nononce !== '1' &&!wp_verify_nonce($nonce, 'cm-hipaa-forms-nonce')) {620 if(!wp_verify_nonce($nonce, 'cm-hipaa-forms-nonce')) { 623 621 $results = array( 624 622 'error' => 'Nonce expired, please refresh the page. If the error persists please contact the site administrator' … … 807 805 $formHtml = $_REQUEST['formHtml'] ?? ''; 808 806 $signature = sanitize_text_field($_REQUEST['signature']) ?? ''; 809 $nononce = sanitize_text_field($_REQUEST['nononce']) ?? '';810 807 $nonce = sanitize_text_field($_REQUEST['nonce']) ?? ''; 811 808 $selectedUserSlug = sanitize_text_field($_REQUEST['selectedUserSlug']) ?? ''; … … 851 848 $fields = array(); 852 849 853 if( $nononce !== '1' &&!wp_verify_nonce($nonce, 'cm-hipaa-forms-nonce')) {850 if(!wp_verify_nonce($nonce, 'cm-hipaa-forms-nonce')) { 854 851 echo 'Nonce expired, please refresh the page. If the error persists please contact the site administrator'; 855 852 } else { … … 1140 1137 } 1141 1138 } 1142 //var_dump($formOptions);1143 1139 1144 1140 // GET AJAX VALUES … … 1153 1149 $formHtml = $_REQUEST['formHtml'] ?? ''; // FULL HTML FORM 1154 1150 $signature = sanitize_text_field($_REQUEST['signature']) ?? ''; 1155 $nononce = sanitize_text_field($_REQUEST['nononce']) ?? '';1156 1151 $nonce = sanitize_text_field($_REQUEST['nonce']) ?? ''; 1157 1152 $selectedUser = sanitize_text_field($_REQUEST['selectedUser']) ?? ''; … … 1195 1190 } 1196 1191 1197 if( $nononce !== '1' &&!wp_verify_nonce($nonce, 'cm-hipaa-forms-nonce')) {1192 if(!wp_verify_nonce($nonce, 'cm-hipaa-forms-nonce')) { 1198 1193 echo 'Nonce expired, please refresh the page. If the error persists please contact the site administrator'; 1199 1194 } else { -
codemonkeys-hipaa-forms/trunk/css/admin-style.css
r3445824 r3462933 1 1 /** 2 2 * Created by codemonkeys on 7/16/2018. 3 * V3.1. 83 * V3.1.9 4 4 */ 5 5 -
codemonkeys-hipaa-forms/trunk/css/style.css
r3445824 r3462933 1 1 /** 2 2 * Created by codemonkeys on 7/16/2018. 3 * V3.1. 83 * V3.1.9 4 4 */ 5 5 -
codemonkeys-hipaa-forms/trunk/enqueue.php
r3445824 r3462933 14 14 15 15 // ENQUEUE CUSTOM JS 16 wp_enqueue_script( 'cmHipaaBuggyFill', plugin_dir_url(__FILE__) . 'js/viewport-units-buggyfill.js', array('jquery'), '3.1. 8', true );17 wp_enqueue_script( 'cmHipaaBuggyFillHack', plugin_dir_url(__FILE__) . 'js/viewport-units-buggyfill.hacks.js', array('jquery'), '3.1. 8', true );18 wp_enqueue_script('cm-hipaa-script', plugin_dir_url(__FILE__) . 'js/script.js', array('jquery'), '3.1. 8&time=' . time(), true);19 wp_enqueue_script('cm-hipaa-signature', plugin_dir_url(__FILE__) . 'js/jSignature/jSignature.min.noconflict.js', array('jquery'), '3.1. 8', true);16 wp_enqueue_script( 'cmHipaaBuggyFill', plugin_dir_url(__FILE__) . 'js/viewport-units-buggyfill.js', array('jquery'), '3.1.9', true ); 17 wp_enqueue_script( 'cmHipaaBuggyFillHack', plugin_dir_url(__FILE__) . 'js/viewport-units-buggyfill.hacks.js', array('jquery'), '3.1.9', true ); 18 wp_enqueue_script('cm-hipaa-script', plugin_dir_url(__FILE__) . 'js/script.js', array('jquery'), '3.1.9&time=' . time(), true); 19 wp_enqueue_script('cm-hipaa-signature', plugin_dir_url(__FILE__) . 'js/jSignature/jSignature.min.noconflict.js', array('jquery'), '3.1.9', true); 20 20 21 21 // CHECK IF HOMEPAGE -
codemonkeys-hipaa-forms/trunk/hipaa-forms.php
r3445824 r3462933 10 10 * Plugin URI: https://www.hipaaforms.online 11 11 * Description: HIPAA Compliant Forms 12 * Version: 3.1. 812 * Version: 3.1.9 13 13 * Author: Code Monkeys LLC 14 14 * Author URI: https://www.codemonkeysllc.com -
codemonkeys-hipaa-forms/trunk/js/admin-script.js
r3445824 r3462933 1 1 /** 2 * V3.1. 82 * V3.1.9 3 3 */ 4 4 -
codemonkeys-hipaa-forms/trunk/js/script.js
r3445824 r3462933 1 1 /** 2 * V3.1. 82 * V3.1.9 3 3 */ 4 4 … … 167 167 data: { 168 168 'action': 'cm_hipaa_validate_account', 169 'nononce': '1',170 169 'nonce': cmHipaaScript.nonce 171 170 }, … … 1513 1512 data: { 1514 1513 'action': 'cm_hipaa_validate_account', 1515 'nononce': '1',1516 1514 'nonce': cmHipaaScript.nonce 1517 1515 }, … … 1568 1566 'action': 'cm_hipaa_get_file_upload_url', 1569 1567 'file_name': fileName, 1570 'nononce': '1',1571 1568 'nonce': cmHipaaScript.nonce 1572 1569 }, … … 1623 1620 'formHtml': hiddenForm.html(), 1624 1621 'signature': signature, 1625 'nononce': '1',1626 1622 'nonce': nonce, 1627 1623 'selectedUserSlug': selectedUserSlug, … … 1743 1739 'formHtml': hiddenForm.html(), 1744 1740 'signature': signature, 1745 'nononce': '1',1746 1741 'nonce': nonce, 1747 1742 'selectedUserSlug': selectedUserSlug, … … 1857 1852 'formHtml': hiddenForm.html(), 1858 1853 'signature': signature, 1859 'nononce': '1',1860 1854 'nonce': nonce, 1861 1855 'selectedUserSlug': selectedUserSlug, … … 3182 3176 data: { 3183 3177 'action': 'cm_hipaa_validate_account', 3184 'nononce': '1',3185 3178 'nonce': cmHipaaScript.nonce 3186 3179 }, … … 3242 3235 'action': 'cm_hipaa_get_file_upload_url', 3243 3236 'file_name': fileName, 3244 'nononce': '1',3245 3237 'nonce': cmHipaaScript.nonce 3246 3238 }, … … 3300 3292 'formHtml': hiddenForm.html(), 3301 3293 'signature': signature, 3302 'nononce': '1',3303 3294 'nonce': nonce, 3304 3295 'selectedUser': selectedUser, … … 3438 3429 'formHtml': hiddenForm.html(), 3439 3430 'signature': signature, 3440 'nononce': '1',3441 3431 'nonce': nonce, 3442 3432 'selectedUser': selectedUser, … … 3570 3560 'formHtml': hiddenForm.html(), 3571 3561 'signature': signature, 3572 'nononce': '1',3573 3562 'nonce': nonce, 3574 3563 'selectedUser': selectedUser, -
codemonkeys-hipaa-forms/trunk/readme.txt
r3445824 r3462933 4 4 Requires at least: 5.4 5 5 Tested up to: 7.5.0 6 Stable tag: 3.1. 86 Stable tag: 3.1.9 7 7 License: GPLv2 8 8 … … 186 186 187 187 == Changelog == 188 V3.1.9 189 - Patched potential nonce security issue 190 188 191 V3.1.8 189 192 - Fixed type-o on "tested up to" Wordpress version
Note: See TracChangeset
for help on using the changeset viewer.