Skip to content

Commit e6c2103

Browse files
committed
Fixes XSS vuln.
1 parent 7b035a1 commit e6c2103

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ All notable changes to **Device Detector** are documented in this *changelog*.
33

44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and **Device Detector** adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6+
## [4.2.1] - 2024-12-11
7+
8+
### Fixed
9+
- [SEC005] XSS vulnerability.
10+
611
## [4.2.0] - 2024-11-22
712

813
### Added

device-detector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Plugin Name: Device Detector
1111
* Plugin URI: https://perfops.one/device-detector
1212
* Description: Full featured analytics reporting and management tool that detects all devices accessing your WordPress site.
13-
* Version: 4.2.0
13+
* Version: 4.2.1
1414
* Requires at least: 6.2
1515
* Requires PHP: 8.1
1616
* Author: Pierre Lannoy / PerfOps One

includes/features/class-analyticsfactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public static function get_analytics( $reload = false ) {
7171
if ( empty( $id ) ) {
7272
$id = '';
7373
}
74+
$id = sanitize_key( $id );
7475
if ( ! ( $extended = filter_input( INPUT_GET, 'extended' ) ) ) {
7576
$extended = filter_input( INPUT_POST, 'extended' );
7677
}

init.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
define( 'PODD_PRODUCT_SHORTNAME', 'Device Detector' );
1313
define( 'PODD_PRODUCT_ABBREVIATION', 'podd' );
1414
define( 'PODD_SLUG', 'device-detector' );
15-
define( 'PODD_VERSION', '4.2.0' );
15+
define( 'PODD_VERSION', '4.2.1' );
1616
define( 'PODD_API_VERSION', '3' );
1717
define( 'PODD_CODENAME', '"-"' );
1818

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: bot, detection, detector, device, mobile
44
Requires at least: 6.2
55
Requires PHP: 8.1
66
Tested up to: 6.7
7-
Stable tag: 4.2.0
7+
Stable tag: 4.2.1
88
License: GPLv3
99
License URI: https://www.gnu.org/licenses/gpl-3.0.html
1010

0 commit comments

Comments
 (0)