Changeset 2548059
- Timestamp:
- 06/15/2021 10:20:14 AM (5 years ago)
- Location:
- wp-google-maps/trunk
- Files:
-
- 4 edited
-
includes/class.crud.php (modified) (2 diffs)
-
includes/class.settings-page.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wpGoogleMaps.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-google-maps/trunk/includes/class.crud.php
r2458784 r2548059 556 556 $this->assert_not_trashed(); 557 557 558 if(is_string($arg)) 559 { 558 if(is_string($arg)){ 559 if(is_string($val)){ 560 $val = wp_kses_post($val); 561 } 560 562 $this->__set($arg, $val); 561 } 562 else if(is_array($arg) || is_object($arg)) 563 { 564 foreach($arg as $key => $value) 565 { 566 if($this->is_read_only($key)) 563 } else if(is_array($arg) || is_object($arg)){ 564 foreach($arg as $key => $value){ 565 if($this->is_read_only($key)){ 567 566 throw new \Exception('Property is read only'); 567 } 568 568 569 if(is_string($value)){ 570 $value = wp_kses_post($value); 571 } 569 572 $this->fields[$key] = $value; 570 573 } 571 574 572 575 $this->update(); 573 } 574 else 576 } else{ 575 577 throw new \Exception('Invalid argument'); 578 } 576 579 577 580 return $this; … … 675 678 throw new \Exception('Property is read only'); 676 679 680 if(is_string($value)){ 681 $value = wp_kses_post($value); 682 } 683 677 684 $this->fields[$name] = $value; 678 685 -
wp-google-maps/trunk/includes/class.settings-page.php
r2476807 r2548059 45 45 // NB: Prevent slashes accumulating in paths on Windows machines 46 46 $data = array_map('stripslashes', $_POST); 47 48 // KSES to stop Authenticated XSS, and just generally to improve the safety of the stored data 49 $data = array_map('wp_kses_post', $data); 47 50 48 51 $this->document->populate($data); -
wp-google-maps/trunk/readme.txt
r2541907 r2548059 197 197 == Upgrade Notice == 198 198 199 = 8.1.13 = 200 Please update to 8.1.13 or above to ensure you are using the latest security enhancements. 201 199 202 = 8.1.12 = 200 203 Please update to 8.1.12 for PHP8 compatibility. … … 214 217 == Changelog == 215 218 219 = 8.1.13 - 2021-06-15 = 220 * Fixed issue where Authenticated Persistent XSS could be executed on any CRUD module. Uses wp_kses_post for cleanup. Applies to Markers, Polygons, Polylines and Shapes (Thanks to Visse) 221 * Fixed issue where Authenticated Persistent XSS could be executed on GDPR settings fields. This was resolved by adding wp_kses_post to all settings fields (Thanks to Visse) 222 * Updated security report credit for 8.1.12 withi changlog and readme files 223 216 224 = 8.1.12 - 2021-06-03 = 217 * Fixed issue where authenticated Stored Cross-Site Scripting could be executed in the map list (Thanks to wpscan.com - Erwan)225 * Fixed issue where authenticated Stored Cross-Site Scripting could be executed in the map list (Thanks to Mohammed Adam) 218 226 * Fixed issue with translation file name for no_NO. Changed to nb_NO 219 227 * Fixed issue where some OpenLayers tilesets were loaded via http instead of https -
wp-google-maps/trunk/wpGoogleMaps.php
r2541907 r2548059 4 4 Plugin URI: https://www.wpgmaps.com 5 5 Description: The easiest to use Google Maps plugin! Create custom Google Maps with high quality markers containing locations, descriptions, images and links. Add your customized map to your WordPress posts and/or pages quickly and easily with the supplied shortcode. No fuss. 6 Version: 8.1.1 26 Version: 8.1.13 7 7 Author: WP Google Maps 8 8 Author URI: https://www.wpgmaps.com … … 13 13 14 14 /* 15 * 8.1.13 - 2021-06-15 16 * Fixed issue where Authenticated Persistent XSS could be executed on any CRUD module. Uses wp_kses_post for cleanup. Applies to Markers, Polygons, Polylines and Shapes (Thanks to Visse) 17 * Fixed issue where Authenticated Persistent XSS could be executed on GDPR settings fields. This was resolved by adding wp_kses_post to all settings fields (Thanks to Visse) 18 * Updated security report credit for 8.1.12 withi changlog and readme files 19 * 15 20 * 8.1.12 - 2021-06-03 16 * Fixed issue where authenticated Stored Cross-Site Scripting could be executed in the map list (Thanks to wpscan.com - Erwan)21 * Fixed issue where authenticated Stored Cross-Site Scripting could be executed in the map list (Thanks to Mohammed Adam) 17 22 * Fixed issue with translation file name for no_NO. Changed to nb_NO 18 23 * Fixed issue where some OpenLayers tilesets were loaded via http instead of https
Note: See TracChangeset
for help on using the changeset viewer.