From 49f527b7df221b1deb09cb16b28d4ff39bb0b2bd Mon Sep 17 00:00:00 2001 From: kawsarahmedr Date: Tue, 30 Jul 2024 13:17:29 +0600 Subject: [PATCH 1/5] Enhanced security issue --- composer.lock | 818 +++++++++------------- src/Admin/ListTables/ActivationsTable.php | 2 +- src/Admin/ListTables/KeysTable.php | 5 +- src/Admin/ListTables/ListTable.php | 3 +- src/Admin/Menus.php | 24 +- src/Admin/Metaboxes.php | 6 + src/Admin/Notices.php | 6 + src/Admin/views/html-list-keys.php | 3 +- 8 files changed, 371 insertions(+), 496 deletions(-) diff --git a/composer.lock b/composer.lock index da502f43..2f31ae43 100644 --- a/composer.lock +++ b/composer.lock @@ -222,26 +222,26 @@ }, { "name": "carbonphp/carbon-doctrine-types", - "version": "3.2.0", + "version": "2.1.0", "source": { "type": "git", "url": "https://github.com/CarbonPHP/carbon-doctrine-types.git", - "reference": "18ba5ddfec8976260ead6e866180bd5d2f71aa1d" + "reference": "99f76ffa36cce3b70a4a6abce41dba15ca2e84cb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/CarbonPHP/carbon-doctrine-types/zipball/18ba5ddfec8976260ead6e866180bd5d2f71aa1d", - "reference": "18ba5ddfec8976260ead6e866180bd5d2f71aa1d", + "url": "https://api.github.com/repos/CarbonPHP/carbon-doctrine-types/zipball/99f76ffa36cce3b70a4a6abce41dba15ca2e84cb", + "reference": "99f76ffa36cce3b70a4a6abce41dba15ca2e84cb", "shasum": "" }, "require": { - "php": "^8.1" + "php": "^7.4 || ^8.0" }, "conflict": { - "doctrine/dbal": "<4.0.0 || >=5.0.0" + "doctrine/dbal": "<3.7.0 || >=4.0.0" }, "require-dev": { - "doctrine/dbal": "^4.0.0", + "doctrine/dbal": "^3.7.0", "nesbot/carbon": "^2.71.0 || ^3.0.0", "phpunit/phpunit": "^10.3" }, @@ -271,7 +271,7 @@ ], "support": { "issues": "https://github.com/CarbonPHP/carbon-doctrine-types/issues", - "source": "https://github.com/CarbonPHP/carbon-doctrine-types/tree/3.2.0" + "source": "https://github.com/CarbonPHP/carbon-doctrine-types/tree/2.1.0" }, "funding": [ { @@ -287,7 +287,7 @@ "type": "tidelift" } ], - "time": "2024-02-09T16:56:22+00:00" + "time": "2023-12-11T17:09:12+00:00" }, { "name": "codeception/codeception", @@ -1063,16 +1063,16 @@ }, { "name": "composer/ca-bundle", - "version": "1.5.0", + "version": "1.5.1", "source": { "type": "git", "url": "https://github.com/composer/ca-bundle.git", - "reference": "0c5ccfcfea312b5c5a190a21ac5cef93f74baf99" + "reference": "063d9aa8696582f5a41dffbbaf3c81024f0a604a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/ca-bundle/zipball/0c5ccfcfea312b5c5a190a21ac5cef93f74baf99", - "reference": "0c5ccfcfea312b5c5a190a21ac5cef93f74baf99", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/063d9aa8696582f5a41dffbbaf3c81024f0a604a", + "reference": "063d9aa8696582f5a41dffbbaf3c81024f0a604a", "shasum": "" }, "require": { @@ -1082,7 +1082,7 @@ }, "require-dev": { "phpstan/phpstan": "^1.10", - "psr/log": "^1.0", + "psr/log": "^1.0 || ^2.0 || ^3.0", "symfony/phpunit-bridge": "^4.2 || ^5", "symfony/process": "^4.0 || ^5.0 || ^6.0 || ^7.0" }, @@ -1119,7 +1119,7 @@ "support": { "irc": "irc://irc.freenode.org/composer", "issues": "https://github.com/composer/ca-bundle/issues", - "source": "https://github.com/composer/ca-bundle/tree/1.5.0" + "source": "https://github.com/composer/ca-bundle/tree/1.5.1" }, "funding": [ { @@ -1135,7 +1135,7 @@ "type": "tidelift" } ], - "time": "2024-03-15T14:00:32+00:00" + "time": "2024-07-08T15:28:20+00:00" }, { "name": "composer/class-map-generator", @@ -1395,30 +1395,38 @@ }, { "name": "composer/pcre", - "version": "3.1.4", + "version": "3.2.0", "source": { "type": "git", "url": "https://github.com/composer/pcre.git", - "reference": "04229f163664973f68f38f6f73d917799168ef24" + "reference": "ea4ab6f9580a4fd221e0418f2c357cdd39102a90" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/04229f163664973f68f38f6f73d917799168ef24", - "reference": "04229f163664973f68f38f6f73d917799168ef24", + "url": "https://api.github.com/repos/composer/pcre/zipball/ea4ab6f9580a4fd221e0418f2c357cdd39102a90", + "reference": "ea4ab6f9580a4fd221e0418f2c357cdd39102a90", "shasum": "" }, "require": { "php": "^7.4 || ^8.0" }, + "conflict": { + "phpstan/phpstan": "<1.11.8" + }, "require-dev": { - "phpstan/phpstan": "^1.3", + "phpstan/phpstan": "^1.11.8", "phpstan/phpstan-strict-rules": "^1.1", - "symfony/phpunit-bridge": "^5" + "phpunit/phpunit": "^8 || ^9" }, "type": "library", "extra": { "branch-alias": { "dev-main": "3.x-dev" + }, + "phpstan": { + "includes": [ + "extension.neon" + ] } }, "autoload": { @@ -1446,7 +1454,7 @@ ], "support": { "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/3.1.4" + "source": "https://github.com/composer/pcre/tree/3.2.0" }, "funding": [ { @@ -1462,20 +1470,20 @@ "type": "tidelift" } ], - "time": "2024-05-27T13:40:54+00:00" + "time": "2024-07-25T09:36:02+00:00" }, { "name": "composer/semver", - "version": "3.4.0", + "version": "3.4.2", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "35e8d0af4486141bc745f23a29cc2091eb624a32" + "reference": "c51258e759afdb17f1fd1fe83bc12baaef6309d6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/35e8d0af4486141bc745f23a29cc2091eb624a32", - "reference": "35e8d0af4486141bc745f23a29cc2091eb624a32", + "url": "https://api.github.com/repos/composer/semver/zipball/c51258e759afdb17f1fd1fe83bc12baaef6309d6", + "reference": "c51258e759afdb17f1fd1fe83bc12baaef6309d6", "shasum": "" }, "require": { @@ -1527,7 +1535,7 @@ "support": { "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.4.0" + "source": "https://github.com/composer/semver/tree/3.4.2" }, "funding": [ { @@ -1543,7 +1551,7 @@ "type": "tidelift" } ], - "time": "2023-08-31T09:50:34+00:00" + "time": "2024-07-12T11:35:52+00:00" }, { "name": "composer/spdx-licenses", @@ -1902,30 +1910,30 @@ }, { "name": "doctrine/instantiator", - "version": "2.0.0", + "version": "1.5.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0" + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", - "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", "shasum": "" }, "require": { - "php": "^8.1" + "php": "^7.1 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^11", + "doctrine/coding-standard": "^9 || ^11", "ext-pdo": "*", "ext-phar": "*", - "phpbench/phpbench": "^1.2", - "phpstan/phpstan": "^1.9.4", - "phpstan/phpstan-phpunit": "^1.3", - "phpunit/phpunit": "^9.5.27", - "vimeo/psalm": "^5.4" + "phpbench/phpbench": "^0.16 || ^1", + "phpstan/phpstan": "^1.4", + "phpstan/phpstan-phpunit": "^1", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.30 || ^5.4" }, "type": "library", "autoload": { @@ -1952,7 +1960,7 @@ ], "support": { "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/2.0.0" + "source": "https://github.com/doctrine/instantiator/tree/1.5.0" }, "funding": [ { @@ -1968,7 +1976,7 @@ "type": "tidelift" } ], - "time": "2022-12-30T00:23:10+00:00" + "time": "2022-12-30T00:15:36+00:00" }, { "name": "eftec/bladeone", @@ -2185,22 +2193,22 @@ }, { "name": "guzzlehttp/guzzle", - "version": "7.8.1", + "version": "7.9.2", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "41042bc7ab002487b876a0683fc8dce04ddce104" + "reference": "d281ed313b989f213357e3be1a179f02196ac99b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/41042bc7ab002487b876a0683fc8dce04ddce104", - "reference": "41042bc7ab002487b876a0683fc8dce04ddce104", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/d281ed313b989f213357e3be1a179f02196ac99b", + "reference": "d281ed313b989f213357e3be1a179f02196ac99b", "shasum": "" }, "require": { "ext-json": "*", - "guzzlehttp/promises": "^1.5.3 || ^2.0.1", - "guzzlehttp/psr7": "^1.9.1 || ^2.5.1", + "guzzlehttp/promises": "^1.5.3 || ^2.0.3", + "guzzlehttp/psr7": "^2.7.0", "php": "^7.2.5 || ^8.0", "psr/http-client": "^1.0", "symfony/deprecation-contracts": "^2.2 || ^3.0" @@ -2211,9 +2219,9 @@ "require-dev": { "bamarni/composer-bin-plugin": "^1.8.2", "ext-curl": "*", - "php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999", + "guzzle/client-integration-tests": "3.0.2", "php-http/message-factory": "^1.1", - "phpunit/phpunit": "^8.5.36 || ^9.6.15", + "phpunit/phpunit": "^8.5.39 || ^9.6.20", "psr/log": "^1.1 || ^2.0 || ^3.0" }, "suggest": { @@ -2291,7 +2299,7 @@ ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.8.1" + "source": "https://github.com/guzzle/guzzle/tree/7.9.2" }, "funding": [ { @@ -2307,20 +2315,20 @@ "type": "tidelift" } ], - "time": "2023-12-03T20:35:24+00:00" + "time": "2024-07-24T11:22:20+00:00" }, { "name": "guzzlehttp/promises", - "version": "2.0.2", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "bbff78d96034045e58e13dedd6ad91b5d1253223" + "reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/bbff78d96034045e58e13dedd6ad91b5d1253223", - "reference": "bbff78d96034045e58e13dedd6ad91b5d1253223", + "url": "https://api.github.com/repos/guzzle/promises/zipball/6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8", + "reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8", "shasum": "" }, "require": { @@ -2328,7 +2336,7 @@ }, "require-dev": { "bamarni/composer-bin-plugin": "^1.8.2", - "phpunit/phpunit": "^8.5.36 || ^9.6.15" + "phpunit/phpunit": "^8.5.39 || ^9.6.20" }, "type": "library", "extra": { @@ -2374,7 +2382,7 @@ ], "support": { "issues": "https://github.com/guzzle/promises/issues", - "source": "https://github.com/guzzle/promises/tree/2.0.2" + "source": "https://github.com/guzzle/promises/tree/2.0.3" }, "funding": [ { @@ -2390,20 +2398,20 @@ "type": "tidelift" } ], - "time": "2023-12-03T20:19:20+00:00" + "time": "2024-07-18T10:29:17+00:00" }, { "name": "guzzlehttp/psr7", - "version": "2.6.2", + "version": "2.7.0", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "45b30f99ac27b5ca93cb4831afe16285f57b8221" + "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/45b30f99ac27b5ca93cb4831afe16285f57b8221", - "reference": "45b30f99ac27b5ca93cb4831afe16285f57b8221", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/a70f5c95fb43bc83f07c9c948baa0dc1829bf201", + "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201", "shasum": "" }, "require": { @@ -2418,8 +2426,8 @@ }, "require-dev": { "bamarni/composer-bin-plugin": "^1.8.2", - "http-interop/http-factory-tests": "^0.9", - "phpunit/phpunit": "^8.5.36 || ^9.6.15" + "http-interop/http-factory-tests": "0.9.0", + "phpunit/phpunit": "^8.5.39 || ^9.6.20" }, "suggest": { "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" @@ -2490,7 +2498,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.6.2" + "source": "https://github.com/guzzle/psr7/tree/2.7.0" }, "funding": [ { @@ -2506,35 +2514,35 @@ "type": "tidelift" } ], - "time": "2023-12-03T20:05:35+00:00" + "time": "2024-07-18T11:15:46+00:00" }, { "name": "illuminate/collections", - "version": "v11.14.0", + "version": "v9.52.16", "source": { "type": "git", "url": "https://github.com/illuminate/collections.git", - "reference": "358fd6dcce6927ee9d7cf520fa619f4597020d52" + "reference": "d3710b0b244bfc62c288c1a87eaa62dd28352d1f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/collections/zipball/358fd6dcce6927ee9d7cf520fa619f4597020d52", - "reference": "358fd6dcce6927ee9d7cf520fa619f4597020d52", + "url": "https://api.github.com/repos/illuminate/collections/zipball/d3710b0b244bfc62c288c1a87eaa62dd28352d1f", + "reference": "d3710b0b244bfc62c288c1a87eaa62dd28352d1f", "shasum": "" }, "require": { - "illuminate/conditionable": "^11.0", - "illuminate/contracts": "^11.0", - "illuminate/macroable": "^11.0", - "php": "^8.2" + "illuminate/conditionable": "^9.0", + "illuminate/contracts": "^9.0", + "illuminate/macroable": "^9.0", + "php": "^8.0.2" }, "suggest": { - "symfony/var-dumper": "Required to use the dump method (^7.0)." + "symfony/var-dumper": "Required to use the dump method (^6.0)." }, "type": "library", "extra": { "branch-alias": { - "dev-master": "11.x-dev" + "dev-master": "9.x-dev" } }, "autoload": { @@ -2561,20 +2569,20 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2024-06-28T20:14:10+00:00" + "time": "2023-06-11T21:17:10+00:00" }, { "name": "illuminate/conditionable", - "version": "v11.14.0", + "version": "v9.52.16", "source": { "type": "git", "url": "https://github.com/illuminate/conditionable.git", - "reference": "362dd761b9920367bca1427a902158225e9e3a23" + "reference": "bea24daa0fa84b7e7b0d5b84f62c71b7e2dc3364" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/conditionable/zipball/362dd761b9920367bca1427a902158225e9e3a23", - "reference": "362dd761b9920367bca1427a902158225e9e3a23", + "url": "https://api.github.com/repos/illuminate/conditionable/zipball/bea24daa0fa84b7e7b0d5b84f62c71b7e2dc3364", + "reference": "bea24daa0fa84b7e7b0d5b84f62c71b7e2dc3364", "shasum": "" }, "require": { @@ -2583,7 +2591,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "11.x-dev" + "dev-master": "9.x-dev" } }, "autoload": { @@ -2607,31 +2615,31 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2024-06-28T20:10:30+00:00" + "time": "2023-02-01T21:42:32+00:00" }, { "name": "illuminate/contracts", - "version": "v11.14.0", + "version": "v9.52.16", "source": { "type": "git", "url": "https://github.com/illuminate/contracts.git", - "reference": "eb8ccfbc5905c5631712d157cccdd7bc9db692e0" + "reference": "44f65d723b13823baa02ff69751a5948bde60c22" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/contracts/zipball/eb8ccfbc5905c5631712d157cccdd7bc9db692e0", - "reference": "eb8ccfbc5905c5631712d157cccdd7bc9db692e0", + "url": "https://api.github.com/repos/illuminate/contracts/zipball/44f65d723b13823baa02ff69751a5948bde60c22", + "reference": "44f65d723b13823baa02ff69751a5948bde60c22", "shasum": "" }, "require": { - "php": "^8.2", + "php": "^8.0.2", "psr/container": "^1.1.1|^2.0.1", "psr/simple-cache": "^1.0|^2.0|^3.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "11.x-dev" + "dev-master": "9.x-dev" } }, "autoload": { @@ -2655,29 +2663,29 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2024-07-01T21:58:24+00:00" + "time": "2023-02-08T14:36:30+00:00" }, { "name": "illuminate/macroable", - "version": "v11.14.0", + "version": "v9.52.16", "source": { "type": "git", "url": "https://github.com/illuminate/macroable.git", - "reference": "e1cb9e51b9ed5d3c9bc1ab431d0a52fe42a990ed" + "reference": "e3bfaf6401742a9c6abca61b9b10e998e5b6449a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/macroable/zipball/e1cb9e51b9ed5d3c9bc1ab431d0a52fe42a990ed", - "reference": "e1cb9e51b9ed5d3c9bc1ab431d0a52fe42a990ed", + "url": "https://api.github.com/repos/illuminate/macroable/zipball/e3bfaf6401742a9c6abca61b9b10e998e5b6449a", + "reference": "e3bfaf6401742a9c6abca61b9b10e998e5b6449a", "shasum": "" }, "require": { - "php": "^8.2" + "php": "^8.0.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "11.x-dev" + "dev-master": "9.x-dev" } }, "autoload": { @@ -2701,20 +2709,20 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2024-06-28T20:10:30+00:00" + "time": "2022-08-09T13:29:29+00:00" }, { "name": "illuminate/support", - "version": "v11.14.0", + "version": "v9.52.16", "source": { "type": "git", "url": "https://github.com/illuminate/support.git", - "reference": "a8f299ed76d52fc048decada3571628e65fa5c41" + "reference": "223c608dbca27232df6213f776bfe7bdeec24874" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/support/zipball/a8f299ed76d52fc048decada3571628e65fa5c41", - "reference": "a8f299ed76d52fc048decada3571628e65fa5c41", + "url": "https://api.github.com/repos/illuminate/support/zipball/223c608dbca27232df6213f776bfe7bdeec24874", + "reference": "223c608dbca27232df6213f776bfe7bdeec24874", "shasum": "" }, "require": { @@ -2722,33 +2730,30 @@ "ext-ctype": "*", "ext-filter": "*", "ext-mbstring": "*", - "illuminate/collections": "^11.0", - "illuminate/conditionable": "^11.0", - "illuminate/contracts": "^11.0", - "illuminate/macroable": "^11.0", - "nesbot/carbon": "^2.72.2|^3.0", - "php": "^8.2", + "illuminate/collections": "^9.0", + "illuminate/conditionable": "^9.0", + "illuminate/contracts": "^9.0", + "illuminate/macroable": "^9.0", + "nesbot/carbon": "^2.62.1", + "php": "^8.0.2", "voku/portable-ascii": "^2.0" }, "conflict": { "tightenco/collect": "<5.5.33" }, - "replace": { - "spatie/once": "*" - }, "suggest": { - "illuminate/filesystem": "Required to use the composer class (^11.0).", + "illuminate/filesystem": "Required to use the composer class (^9.0).", "league/commonmark": "Required to use Str::markdown() and Stringable::markdown() (^2.0.2).", "ramsey/uuid": "Required to use Str::uuid() (^4.7).", - "symfony/process": "Required to use the composer class (^7.0).", - "symfony/uid": "Required to use Str::ulid() (^7.0).", - "symfony/var-dumper": "Required to use the dd function (^7.0).", + "symfony/process": "Required to use the composer class (^6.0).", + "symfony/uid": "Required to use Str::ulid() (^6.0).", + "symfony/var-dumper": "Required to use the dd function (^6.0).", "vlucas/phpdotenv": "Required to use the Env class and env helper (^5.4.1)." }, "type": "library", "extra": { "branch-alias": { - "dev-master": "11.x-dev" + "dev-master": "9.x-dev" } }, "autoload": { @@ -2775,7 +2780,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2024-07-01T21:58:57+00:00" + "time": "2023-06-11T21:11:53+00:00" }, { "name": "justinrainbow/json-schema", @@ -3144,16 +3149,16 @@ }, { "name": "mck89/peast", - "version": "v1.16.2", + "version": "v1.16.3", "source": { "type": "git", "url": "https://github.com/mck89/peast.git", - "reference": "2791b08ffcc1862fe18eef85675da3aa58c406fe" + "reference": "645ec21b650bc2aced18285c85f220d22afc1430" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mck89/peast/zipball/2791b08ffcc1862fe18eef85675da3aa58c406fe", - "reference": "2791b08ffcc1862fe18eef85675da3aa58c406fe", + "url": "https://api.github.com/repos/mck89/peast/zipball/645ec21b650bc2aced18285c85f220d22afc1430", + "reference": "645ec21b650bc2aced18285c85f220d22afc1430", "shasum": "" }, "require": { @@ -3166,7 +3171,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.16.2-dev" + "dev-master": "1.16.3-dev" } }, "autoload": { @@ -3187,9 +3192,9 @@ "description": "Peast is PHP library that generates AST for JavaScript code", "support": { "issues": "https://github.com/mck89/peast/issues", - "source": "https://github.com/mck89/peast/tree/v1.16.2" + "source": "https://github.com/mck89/peast/tree/v1.16.3" }, - "time": "2024-03-05T09:16:03+00:00" + "time": "2024-07-23T14:00:32+00:00" }, { "name": "mikehaertl/php-shellcommand", @@ -3459,41 +3464,42 @@ }, { "name": "nesbot/carbon", - "version": "3.6.0", + "version": "2.72.5", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "39c8ef752db6865717cc3fba63970c16f057982c" + "reference": "afd46589c216118ecd48ff2b95d77596af1e57ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/39c8ef752db6865717cc3fba63970c16f057982c", - "reference": "39c8ef752db6865717cc3fba63970c16f057982c", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/afd46589c216118ecd48ff2b95d77596af1e57ed", + "reference": "afd46589c216118ecd48ff2b95d77596af1e57ed", "shasum": "" }, "require": { "carbonphp/carbon-doctrine-types": "*", "ext-json": "*", - "php": "^8.1", + "php": "^7.1.8 || ^8.0", "psr/clock": "^1.0", - "symfony/clock": "^6.3 || ^7.0", "symfony/polyfill-mbstring": "^1.0", - "symfony/translation": "^4.4.18 || ^5.2.1|| ^6.0 || ^7.0" + "symfony/polyfill-php80": "^1.16", + "symfony/translation": "^3.4 || ^4.0 || ^5.0 || ^6.0" }, "provide": { "psr/clock-implementation": "1.0" }, "require-dev": { - "doctrine/dbal": "^3.6.3 || ^4.0", - "doctrine/orm": "^2.15.2 || ^3.0", - "friendsofphp/php-cs-fixer": "^3.57.2", - "kylekatarnls/multi-tester": "^2.5.3", - "ondrejmirtes/better-reflection": "^6.25.0.4", - "phpmd/phpmd": "^2.15.0", - "phpstan/extension-installer": "^1.3.1", - "phpstan/phpstan": "^1.11.2", - "phpunit/phpunit": "^10.5.20", - "squizlabs/php_codesniffer": "^3.9.0" + "doctrine/dbal": "^2.0 || ^3.1.4 || ^4.0", + "doctrine/orm": "^2.7 || ^3.0", + "friendsofphp/php-cs-fixer": "^3.0", + "kylekatarnls/multi-tester": "^2.0", + "ondrejmirtes/better-reflection": "*", + "phpmd/phpmd": "^2.9", + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^0.12.99 || ^1.7.14", + "phpunit/php-file-iterator": "^2.0.5 || ^3.0.6", + "phpunit/phpunit": "^7.5.20 || ^8.5.26 || ^9.5.20", + "squizlabs/php_codesniffer": "^3.4" }, "bin": [ "bin/carbon" @@ -3561,7 +3567,7 @@ "type": "tidelift" } ], - "time": "2024-06-20T15:52:59+00:00" + "time": "2024-06-03T19:18:41+00:00" }, { "name": "nikic/php-parser", @@ -4496,45 +4502,45 @@ }, { "name": "phpunit/phpunit", - "version": "9.6.19", + "version": "9.6.20", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "a1a54a473501ef4cdeaae4e06891674114d79db8" + "reference": "49d7820565836236411f5dc002d16dd689cde42f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a1a54a473501ef4cdeaae4e06891674114d79db8", - "reference": "a1a54a473501ef4cdeaae4e06891674114d79db8", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/49d7820565836236411f5dc002d16dd689cde42f", + "reference": "49d7820565836236411f5dc002d16dd689cde42f", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.3.1 || ^2", + "doctrine/instantiator": "^1.5.0 || ^2", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.10.1", - "phar-io/manifest": "^2.0.3", - "phar-io/version": "^3.0.2", + "myclabs/deep-copy": "^1.12.0", + "phar-io/manifest": "^2.0.4", + "phar-io/version": "^3.2.1", "php": ">=7.3", - "phpunit/php-code-coverage": "^9.2.28", - "phpunit/php-file-iterator": "^3.0.5", + "phpunit/php-code-coverage": "^9.2.31", + "phpunit/php-file-iterator": "^3.0.6", "phpunit/php-invoker": "^3.1.1", - "phpunit/php-text-template": "^2.0.3", - "phpunit/php-timer": "^5.0.2", - "sebastian/cli-parser": "^1.0.1", - "sebastian/code-unit": "^1.0.6", + "phpunit/php-text-template": "^2.0.4", + "phpunit/php-timer": "^5.0.3", + "sebastian/cli-parser": "^1.0.2", + "sebastian/code-unit": "^1.0.8", "sebastian/comparator": "^4.0.8", - "sebastian/diff": "^4.0.3", - "sebastian/environment": "^5.1.3", - "sebastian/exporter": "^4.0.5", - "sebastian/global-state": "^5.0.1", - "sebastian/object-enumerator": "^4.0.3", - "sebastian/resource-operations": "^3.0.3", - "sebastian/type": "^3.2", + "sebastian/diff": "^4.0.6", + "sebastian/environment": "^5.1.5", + "sebastian/exporter": "^4.0.6", + "sebastian/global-state": "^5.0.7", + "sebastian/object-enumerator": "^4.0.4", + "sebastian/resource-operations": "^3.0.4", + "sebastian/type": "^3.2.1", "sebastian/version": "^3.0.2" }, "suggest": { @@ -4579,7 +4585,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.19" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.20" }, "funding": [ { @@ -4595,7 +4601,7 @@ "type": "tidelift" } ], - "time": "2024-04-05T04:35:58+00:00" + "time": "2024-07-10T11:45:39+00:00" }, { "name": "pluginever/framework-model", @@ -6244,23 +6250,23 @@ }, { "name": "seld/jsonlint", - "version": "1.10.2", + "version": "1.11.0", "source": { "type": "git", "url": "https://github.com/Seldaek/jsonlint.git", - "reference": "9bb7db07b5d66d90f6ebf542f09fc67d800e5259" + "reference": "1748aaf847fc731cfad7725aec413ee46f0cc3a2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/9bb7db07b5d66d90f6ebf542f09fc67d800e5259", - "reference": "9bb7db07b5d66d90f6ebf542f09fc67d800e5259", + "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/1748aaf847fc731cfad7725aec413ee46f0cc3a2", + "reference": "1748aaf847fc731cfad7725aec413ee46f0cc3a2", "shasum": "" }, "require": { "php": "^5.3 || ^7.0 || ^8.0" }, "require-dev": { - "phpstan/phpstan": "^1.5", + "phpstan/phpstan": "^1.11", "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0 || ^8.5.13" }, "bin": [ @@ -6292,7 +6298,7 @@ ], "support": { "issues": "https://github.com/Seldaek/jsonlint/issues", - "source": "https://github.com/Seldaek/jsonlint/tree/1.10.2" + "source": "https://github.com/Seldaek/jsonlint/tree/1.11.0" }, "funding": [ { @@ -6304,7 +6310,7 @@ "type": "tidelift" } ], - "time": "2024-02-07T12:57:50+00:00" + "time": "2024-07-11T14:55:45+00:00" }, { "name": "seld/phar-utils", @@ -6482,16 +6488,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.10.1", + "version": "3.10.2", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", - "reference": "8f90f7a53ce271935282967f53d0894f8f1ff877" + "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/8f90f7a53ce271935282967f53d0894f8f1ff877", - "reference": "8f90f7a53ce271935282967f53d0894f8f1ff877", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/86e5f5dd9a840c46810ebe5ff1885581c42a3017", + "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017", "shasum": "" }, "require": { @@ -6558,7 +6564,7 @@ "type": "open_collective" } ], - "time": "2024-05-22T21:24:41+00:00" + "time": "2024-07-21T23:26:44+00:00" }, { "name": "symfony/browser-kit", @@ -6632,92 +6638,18 @@ ], "time": "2024-05-31T14:33:22+00:00" }, - { - "name": "symfony/clock", - "version": "v7.1.1", - "source": { - "type": "git", - "url": "https://github.com/symfony/clock.git", - "reference": "3dfc8b084853586de51dd1441c6242c76a28cbe7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/clock/zipball/3dfc8b084853586de51dd1441c6242c76a28cbe7", - "reference": "3dfc8b084853586de51dd1441c6242c76a28cbe7", - "shasum": "" - }, - "require": { - "php": ">=8.2", - "psr/clock": "^1.0", - "symfony/polyfill-php83": "^1.28" - }, - "provide": { - "psr/clock-implementation": "1.0" - }, - "type": "library", - "autoload": { - "files": [ - "Resources/now.php" - ], - "psr-4": { - "Symfony\\Component\\Clock\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Decouples applications from the system clock", - "homepage": "https://symfony.com", - "keywords": [ - "clock", - "psr20", - "time" - ], - "support": { - "source": "https://github.com/symfony/clock/tree/v7.1.1" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2024-05-31T14:57:53+00:00" - }, { "name": "symfony/console", - "version": "v5.4.41", + "version": "v5.4.42", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "6473d441a913cb997123b59ff2dbe3d1cf9e11ba" + "reference": "cef62396a0477e94fc52e87a17c6e5c32e226b7f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/6473d441a913cb997123b59ff2dbe3d1cf9e11ba", - "reference": "6473d441a913cb997123b59ff2dbe3d1cf9e11ba", + "url": "https://api.github.com/repos/symfony/console/zipball/cef62396a0477e94fc52e87a17c6e5c32e226b7f", + "reference": "cef62396a0477e94fc52e87a17c6e5c32e226b7f", "shasum": "" }, "require": { @@ -6787,7 +6719,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v5.4.41" + "source": "https://github.com/symfony/console/tree/v5.4.42" }, "funding": [ { @@ -6803,7 +6735,7 @@ "type": "tidelift" } ], - "time": "2024-06-28T07:48:55+00:00" + "time": "2024-07-26T12:21:55+00:00" }, { "name": "symfony/css-selector", @@ -6873,25 +6805,25 @@ }, { "name": "symfony/deprecation-contracts", - "version": "v3.5.0", + "version": "v3.0.2", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1" + "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", - "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/26954b3d62a6c5fd0ea8a2a00c0353a14978d05c", + "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.0.2" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.5-dev" + "dev-main": "3.0-dev" }, "thanks": { "name": "symfony/contracts", @@ -6920,7 +6852,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.0.2" }, "funding": [ { @@ -6936,7 +6868,7 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2022-01-02T09:55:41+00:00" }, { "name": "symfony/dom-crawler", @@ -7100,26 +7032,29 @@ }, { "name": "symfony/event-dispatcher-contracts", - "version": "v3.5.0", + "version": "v3.0.2", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "8f93aec25d41b72493c6ddff14e916177c9efc50" + "reference": "7bc61cc2db649b4637d331240c5346dcc7708051" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/8f93aec25d41b72493c6ddff14e916177c9efc50", - "reference": "8f93aec25d41b72493c6ddff14e916177c9efc50", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/7bc61cc2db649b4637d331240c5346dcc7708051", + "reference": "7bc61cc2db649b4637d331240c5346dcc7708051", "shasum": "" }, "require": { - "php": ">=8.1", + "php": ">=8.0.2", "psr/event-dispatcher": "^1" }, + "suggest": { + "symfony/event-dispatcher-implementation": "" + }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.5-dev" + "dev-main": "3.0-dev" }, "thanks": { "name": "symfony/contracts", @@ -7156,7 +7091,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.0.2" }, "funding": [ { @@ -7172,30 +7107,27 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2022-01-02T09:55:41+00:00" }, { "name": "symfony/filesystem", - "version": "v7.1.2", + "version": "v6.0.19", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "92a91985250c251de9b947a14bb2c9390b1a562c" + "reference": "3d49eec03fda1f0fc19b7349fbbe55ebc1004214" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/92a91985250c251de9b947a14bb2c9390b1a562c", - "reference": "92a91985250c251de9b947a14bb2c9390b1a562c", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/3d49eec03fda1f0fc19b7349fbbe55ebc1004214", + "reference": "3d49eec03fda1f0fc19b7349fbbe55ebc1004214", "shasum": "" }, "require": { - "php": ">=8.2", + "php": ">=8.0.2", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-mbstring": "~1.8" }, - "require-dev": { - "symfony/process": "^6.4|^7.0" - }, "type": "library", "autoload": { "psr-4": { @@ -7222,7 +7154,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v7.1.2" + "source": "https://github.com/symfony/filesystem/tree/v6.0.19" }, "funding": [ { @@ -7238,20 +7170,20 @@ "type": "tidelift" } ], - "time": "2024-06-28T10:03:55+00:00" + "time": "2023-01-20T17:44:14+00:00" }, { "name": "symfony/finder", - "version": "v5.4.40", + "version": "v5.4.42", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "f51cff4687547641c7d8180d74932ab40b2205ce" + "reference": "0724c51fa067b198e36506d2864e09a52180998a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/f51cff4687547641c7d8180d74932ab40b2205ce", - "reference": "f51cff4687547641c7d8180d74932ab40b2205ce", + "url": "https://api.github.com/repos/symfony/finder/zipball/0724c51fa067b198e36506d2864e09a52180998a", + "reference": "0724c51fa067b198e36506d2864e09a52180998a", "shasum": "" }, "require": { @@ -7285,7 +7217,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v5.4.40" + "source": "https://github.com/symfony/finder/tree/v5.4.42" }, "funding": [ { @@ -7301,7 +7233,7 @@ "type": "tidelift" } ], - "time": "2024-05-31T14:33:22+00:00" + "time": "2024-07-22T08:53:29+00:00" }, { "name": "symfony/polyfill-ctype", @@ -7853,98 +7785,22 @@ ], "time": "2024-06-19T12:30:46+00:00" }, - { - "name": "symfony/polyfill-php83", - "version": "v1.30.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php83.git", - "reference": "dbdcdf1a4dcc2743591f1079d0c35ab1e2dcbbc9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/dbdcdf1a4dcc2743591f1079d0c35ab1e2dcbbc9", - "reference": "dbdcdf1a4dcc2743591f1079d0c35ab1e2dcbbc9", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "type": "library", - "extra": { - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php83\\": "" - }, - "classmap": [ - "Resources/stubs" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 8.3+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php83/tree/v1.30.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2024-06-19T12:35:24+00:00" - }, { "name": "symfony/process", - "version": "v7.1.1", + "version": "v6.0.19", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "febf90124323a093c7ee06fdb30e765ca3c20028" + "reference": "2114fd60f26a296cc403a7939ab91478475a33d4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/febf90124323a093c7ee06fdb30e765ca3c20028", - "reference": "febf90124323a093c7ee06fdb30e765ca3c20028", + "url": "https://api.github.com/repos/symfony/process/zipball/2114fd60f26a296cc403a7939ab91478475a33d4", + "reference": "2114fd60f26a296cc403a7939ab91478475a33d4", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.0.2" }, "type": "library", "autoload": { @@ -7972,7 +7828,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v7.1.1" + "source": "https://github.com/symfony/process/tree/v6.0.19" }, "funding": [ { @@ -7988,34 +7844,36 @@ "type": "tidelift" } ], - "time": "2024-05-31T14:57:53+00:00" + "time": "2023-01-01T08:36:10+00:00" }, { "name": "symfony/service-contracts", - "version": "v3.5.0", + "version": "v3.0.2", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f" + "reference": "d78d39c1599bd1188b8e26bb341da52c3c6d8a66" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", - "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/d78d39c1599bd1188b8e26bb341da52c3c6d8a66", + "reference": "d78d39c1599bd1188b8e26bb341da52c3c6d8a66", "shasum": "" }, "require": { - "php": ">=8.1", - "psr/container": "^1.1|^2.0", - "symfony/deprecation-contracts": "^2.5|^3" + "php": ">=8.0.2", + "psr/container": "^2.0" }, "conflict": { "ext-psr": "<1.1|>=2" }, + "suggest": { + "symfony/service-implementation": "" + }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.5-dev" + "dev-main": "3.0-dev" }, "thanks": { "name": "symfony/contracts", @@ -8025,10 +7883,7 @@ "autoload": { "psr-4": { "Symfony\\Contracts\\Service\\": "" - }, - "exclude-from-classmap": [ - "/Test/" - ] + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -8055,7 +7910,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/service-contracts/tree/v3.0.2" }, "funding": [ { @@ -8071,38 +7926,37 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2022-05-30T19:17:58+00:00" }, { "name": "symfony/string", - "version": "v6.4.9", + "version": "v6.0.19", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "76792dbd99690a5ebef8050d9206c60c59e681d7" + "reference": "d9e72497367c23e08bf94176d2be45b00a9d232a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/76792dbd99690a5ebef8050d9206c60c59e681d7", - "reference": "76792dbd99690a5ebef8050d9206c60c59e681d7", + "url": "https://api.github.com/repos/symfony/string/zipball/d9e72497367c23e08bf94176d2be45b00a9d232a", + "reference": "d9e72497367c23e08bf94176d2be45b00a9d232a", "shasum": "" }, "require": { - "php": ">=8.1", + "php": ">=8.0.2", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-intl-grapheme": "~1.0", "symfony/polyfill-intl-normalizer": "~1.0", "symfony/polyfill-mbstring": "~1.0" }, "conflict": { - "symfony/translation-contracts": "<2.5" + "symfony/translation-contracts": "<2.0" }, "require-dev": { - "symfony/error-handler": "^5.4|^6.0|^7.0", - "symfony/http-client": "^5.4|^6.0|^7.0", - "symfony/intl": "^6.2|^7.0", - "symfony/translation-contracts": "^2.5|^3.0", - "symfony/var-exporter": "^5.4|^6.0|^7.0" + "symfony/error-handler": "^5.4|^6.0", + "symfony/http-client": "^5.4|^6.0", + "symfony/translation-contracts": "^2.0|^3.0", + "symfony/var-exporter": "^5.4|^6.0" }, "type": "library", "autoload": { @@ -8141,7 +7995,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.4.9" + "source": "https://github.com/symfony/string/tree/v6.0.19" }, "funding": [ { @@ -8157,35 +8011,32 @@ "type": "tidelift" } ], - "time": "2024-06-28T09:25:38+00:00" + "time": "2023-01-01T08:36:10+00:00" }, { "name": "symfony/translation", - "version": "v6.4.8", + "version": "v6.0.19", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "a002933b13989fc4bd0b58e04bf7eec5210e438a" + "reference": "9c24b3fdbbe9fb2ef3a6afd8bbaadfd72dad681f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/a002933b13989fc4bd0b58e04bf7eec5210e438a", - "reference": "a002933b13989fc4bd0b58e04bf7eec5210e438a", + "url": "https://api.github.com/repos/symfony/translation/zipball/9c24b3fdbbe9fb2ef3a6afd8bbaadfd72dad681f", + "reference": "9c24b3fdbbe9fb2ef3a6afd8bbaadfd72dad681f", "shasum": "" }, "require": { - "php": ">=8.1", - "symfony/deprecation-contracts": "^2.5|^3", + "php": ">=8.0.2", "symfony/polyfill-mbstring": "~1.0", - "symfony/translation-contracts": "^2.5|^3.0" + "symfony/translation-contracts": "^2.3|^3.0" }, "conflict": { "symfony/config": "<5.4", "symfony/console": "<5.4", "symfony/dependency-injection": "<5.4", - "symfony/http-client-contracts": "<2.5", "symfony/http-kernel": "<5.4", - "symfony/service-contracts": "<2.5", "symfony/twig-bundle": "<5.4", "symfony/yaml": "<5.4" }, @@ -8193,19 +8044,22 @@ "symfony/translation-implementation": "2.3|3.0" }, "require-dev": { - "nikic/php-parser": "^4.18|^5.0", "psr/log": "^1|^2|^3", - "symfony/config": "^5.4|^6.0|^7.0", - "symfony/console": "^5.4|^6.0|^7.0", - "symfony/dependency-injection": "^5.4|^6.0|^7.0", - "symfony/finder": "^5.4|^6.0|^7.0", - "symfony/http-client-contracts": "^2.5|^3.0", - "symfony/http-kernel": "^5.4|^6.0|^7.0", - "symfony/intl": "^5.4|^6.0|^7.0", + "symfony/config": "^5.4|^6.0", + "symfony/console": "^5.4|^6.0", + "symfony/dependency-injection": "^5.4|^6.0", + "symfony/finder": "^5.4|^6.0", + "symfony/http-client-contracts": "^1.1|^2.0|^3.0", + "symfony/http-kernel": "^5.4|^6.0", + "symfony/intl": "^5.4|^6.0", "symfony/polyfill-intl-icu": "^1.21", - "symfony/routing": "^5.4|^6.0|^7.0", - "symfony/service-contracts": "^2.5|^3", - "symfony/yaml": "^5.4|^6.0|^7.0" + "symfony/service-contracts": "^1.1.2|^2|^3", + "symfony/yaml": "^5.4|^6.0" + }, + "suggest": { + "psr/log-implementation": "To use logging capability in translator", + "symfony/config": "", + "symfony/yaml": "" }, "type": "library", "autoload": { @@ -8236,7 +8090,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v6.4.8" + "source": "https://github.com/symfony/translation/tree/v6.0.19" }, "funding": [ { @@ -8252,29 +8106,32 @@ "type": "tidelift" } ], - "time": "2024-05-31T14:49:08+00:00" + "time": "2023-01-01T08:36:10+00:00" }, { "name": "symfony/translation-contracts", - "version": "v3.5.0", + "version": "v3.0.2", "source": { "type": "git", "url": "https://github.com/symfony/translation-contracts.git", - "reference": "b9d2189887bb6b2e0367a9fc7136c5239ab9b05a" + "reference": "acbfbb274e730e5a0236f619b6168d9dedb3e282" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/b9d2189887bb6b2e0367a9fc7136c5239ab9b05a", - "reference": "b9d2189887bb6b2e0367a9fc7136c5239ab9b05a", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/acbfbb274e730e5a0236f619b6168d9dedb3e282", + "reference": "acbfbb274e730e5a0236f619b6168d9dedb3e282", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.0.2" + }, + "suggest": { + "symfony/translation-implementation": "" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.5-dev" + "dev-main": "3.0-dev" }, "thanks": { "name": "symfony/contracts", @@ -8284,10 +8141,7 @@ "autoload": { "psr-4": { "Symfony\\Contracts\\Translation\\": "" - }, - "exclude-from-classmap": [ - "/Test/" - ] + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -8314,7 +8168,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/translation-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/translation-contracts/tree/v3.0.2" }, "funding": [ { @@ -8330,7 +8184,7 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2022-06-27T17:10:44+00:00" }, { "name": "symfony/yaml", @@ -8720,16 +8574,16 @@ }, { "name": "wp-cli/config-command", - "version": "v2.3.4", + "version": "v2.3.5", "source": { "type": "git", "url": "https://github.com/wp-cli/config-command.git", - "reference": "445dfd0276a8e717ed4d2dd6f9dd0b769097fba4" + "reference": "a4ae2c73a03706b7f5b8c74426a44b4df198352c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/config-command/zipball/445dfd0276a8e717ed4d2dd6f9dd0b769097fba4", - "reference": "445dfd0276a8e717ed4d2dd6f9dd0b769097fba4", + "url": "https://api.github.com/repos/wp-cli/config-command/zipball/a4ae2c73a03706b7f5b8c74426a44b4df198352c", + "reference": "a4ae2c73a03706b7f5b8c74426a44b4df198352c", "shasum": "" }, "require": { @@ -8788,9 +8642,9 @@ "homepage": "https://github.com/wp-cli/config-command", "support": { "issues": "https://github.com/wp-cli/config-command/issues", - "source": "https://github.com/wp-cli/config-command/tree/v2.3.4" + "source": "https://github.com/wp-cli/config-command/tree/v2.3.5" }, - "time": "2024-03-01T12:07:39+00:00" + "time": "2024-07-22T10:31:46+00:00" }, { "name": "wp-cli/core-command", @@ -8934,16 +8788,16 @@ }, { "name": "wp-cli/db-command", - "version": "v2.1.0", + "version": "v2.1.1", "source": { "type": "git", "url": "https://github.com/wp-cli/db-command.git", - "reference": "bf741ebc532f7d4673f4552d1b3589265205cf32" + "reference": "60ee5535e4b39e2d930894b7f435a2e488171c27" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/db-command/zipball/bf741ebc532f7d4673f4552d1b3589265205cf32", - "reference": "bf741ebc532f7d4673f4552d1b3589265205cf32", + "url": "https://api.github.com/repos/wp-cli/db-command/zipball/60ee5535e4b39e2d930894b7f435a2e488171c27", + "reference": "60ee5535e4b39e2d930894b7f435a2e488171c27", "shasum": "" }, "require": { @@ -9002,9 +8856,9 @@ "homepage": "https://github.com/wp-cli/db-command", "support": { "issues": "https://github.com/wp-cli/db-command/issues", - "source": "https://github.com/wp-cli/db-command/tree/v2.1.0" + "source": "https://github.com/wp-cli/db-command/tree/v2.1.1" }, - "time": "2024-04-27T03:11:44+00:00" + "time": "2024-07-10T17:31:56+00:00" }, { "name": "wp-cli/embed-command", @@ -9525,16 +9379,16 @@ }, { "name": "wp-cli/i18n-command", - "version": "2.6.1", + "version": "v2.6.2", "source": { "type": "git", "url": "https://github.com/wp-cli/i18n-command.git", - "reference": "7538d684d4f06b0e10c8a0166ce4e6d9e1687aa1" + "reference": "53518a11f314119e320597c7a8274f11b1295bdc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/i18n-command/zipball/7538d684d4f06b0e10c8a0166ce4e6d9e1687aa1", - "reference": "7538d684d4f06b0e10c8a0166ce4e6d9e1687aa1", + "url": "https://api.github.com/repos/wp-cli/i18n-command/zipball/53518a11f314119e320597c7a8274f11b1295bdc", + "reference": "53518a11f314119e320597c7a8274f11b1295bdc", "shasum": "" }, "require": { @@ -9588,9 +9442,9 @@ "homepage": "https://github.com/wp-cli/i18n-command", "support": { "issues": "https://github.com/wp-cli/i18n-command/issues", - "source": "https://github.com/wp-cli/i18n-command/tree/2.6.1" + "source": "https://github.com/wp-cli/i18n-command/tree/v2.6.2" }, - "time": "2024-02-28T11:27:34+00:00" + "time": "2024-07-03T12:50:00+00:00" }, { "name": "wp-cli/import-command", @@ -9654,16 +9508,16 @@ }, { "name": "wp-cli/language-command", - "version": "v2.0.20", + "version": "v2.0.21", "source": { "type": "git", "url": "https://github.com/wp-cli/language-command.git", - "reference": "2e6edc65aff1828b79250b96ace93d77abcca481" + "reference": "a9b5ae5976ebb48ee5465cf2f8d9afc863bc4e1c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/language-command/zipball/2e6edc65aff1828b79250b96ace93d77abcca481", - "reference": "2e6edc65aff1828b79250b96ace93d77abcca481", + "url": "https://api.github.com/repos/wp-cli/language-command/zipball/a9b5ae5976ebb48ee5465cf2f8d9afc863bc4e1c", + "reference": "a9b5ae5976ebb48ee5465cf2f8d9afc863bc4e1c", "shasum": "" }, "require": { @@ -9727,9 +9581,9 @@ "homepage": "https://github.com/wp-cli/language-command", "support": { "issues": "https://github.com/wp-cli/language-command/issues", - "source": "https://github.com/wp-cli/language-command/tree/v2.0.20" + "source": "https://github.com/wp-cli/language-command/tree/v2.0.21" }, - "time": "2024-02-20T12:36:40+00:00" + "time": "2024-06-21T10:12:40+00:00" }, { "name": "wp-cli/maintenance-mode-command", @@ -9794,16 +9648,16 @@ }, { "name": "wp-cli/media-command", - "version": "v2.1.0", + "version": "v2.2.0", "source": { "type": "git", "url": "https://github.com/wp-cli/media-command.git", - "reference": "210cccf80f4faa38c0c608768089edf7acf2b319" + "reference": "8eefc101713713871c1802e387b87348f6a048d5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/media-command/zipball/210cccf80f4faa38c0c608768089edf7acf2b319", - "reference": "210cccf80f4faa38c0c608768089edf7acf2b319", + "url": "https://api.github.com/repos/wp-cli/media-command/zipball/8eefc101713713871c1802e387b87348f6a048d5", + "reference": "8eefc101713713871c1802e387b87348f6a048d5", "shasum": "" }, "require": { @@ -9850,9 +9704,9 @@ "homepage": "https://github.com/wp-cli/media-command", "support": { "issues": "https://github.com/wp-cli/media-command/issues", - "source": "https://github.com/wp-cli/media-command/tree/v2.1.0" + "source": "https://github.com/wp-cli/media-command/tree/v2.2.0" }, - "time": "2024-03-14T09:04:20+00:00" + "time": "2024-06-06T09:32:12+00:00" }, { "name": "wp-cli/mustangostang-spyc", @@ -9907,16 +9761,16 @@ }, { "name": "wp-cli/package-command", - "version": "v2.5.1", + "version": "v2.5.2", "source": { "type": "git", "url": "https://github.com/wp-cli/package-command.git", - "reference": "afa90e92e6b2b1f9fe754963726909433facd9f5" + "reference": "3370dd88ddf906992bda3a28c8c387c8f4f33073" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/package-command/zipball/afa90e92e6b2b1f9fe754963726909433facd9f5", - "reference": "afa90e92e6b2b1f9fe754963726909433facd9f5", + "url": "https://api.github.com/repos/wp-cli/package-command/zipball/3370dd88ddf906992bda3a28c8c387c8f4f33073", + "reference": "3370dd88ddf906992bda3a28c8c387c8f4f33073", "shasum": "" }, "require": { @@ -9966,9 +9820,9 @@ "homepage": "https://github.com/wp-cli/package-command", "support": { "issues": "https://github.com/wp-cli/package-command/issues", - "source": "https://github.com/wp-cli/package-command/tree/v2.5.1" + "source": "https://github.com/wp-cli/package-command/tree/v2.5.2" }, - "time": "2024-04-26T10:03:17+00:00" + "time": "2024-05-22T05:26:05+00:00" }, { "name": "wp-cli/php-cli-tools", @@ -10228,16 +10082,16 @@ }, { "name": "wp-cli/search-replace-command", - "version": "v2.1.6", + "version": "v2.1.7", "source": { "type": "git", "url": "https://github.com/wp-cli/search-replace-command.git", - "reference": "d908c57ba744e14a32f3a577f9e45378d3fe1349" + "reference": "89e1653c9b888179a121a8354c75fc5e8ca7931d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/search-replace-command/zipball/d908c57ba744e14a32f3a577f9e45378d3fe1349", - "reference": "d908c57ba744e14a32f3a577f9e45378d3fe1349", + "url": "https://api.github.com/repos/wp-cli/search-replace-command/zipball/89e1653c9b888179a121a8354c75fc5e8ca7931d", + "reference": "89e1653c9b888179a121a8354c75fc5e8ca7931d", "shasum": "" }, "require": { @@ -10282,9 +10136,9 @@ "homepage": "https://github.com/wp-cli/search-replace-command", "support": { "issues": "https://github.com/wp-cli/search-replace-command/issues", - "source": "https://github.com/wp-cli/search-replace-command/tree/v2.1.6" + "source": "https://github.com/wp-cli/search-replace-command/tree/v2.1.7" }, - "time": "2024-05-07T09:27:51+00:00" + "time": "2024-06-28T09:30:38+00:00" }, { "name": "wp-cli/server-command", @@ -10674,16 +10528,16 @@ }, { "name": "wp-cli/wp-config-transformer", - "version": "v1.3.5", + "version": "v1.3.6", "source": { "type": "git", "url": "https://github.com/wp-cli/wp-config-transformer.git", - "reference": "202aa80528939159d52bc4026cee5453aec382db" + "reference": "88f516f44dce1660fc4b780da513e3ca12d7d24f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/wp-config-transformer/zipball/202aa80528939159d52bc4026cee5453aec382db", - "reference": "202aa80528939159d52bc4026cee5453aec382db", + "url": "https://api.github.com/repos/wp-cli/wp-config-transformer/zipball/88f516f44dce1660fc4b780da513e3ca12d7d24f", + "reference": "88f516f44dce1660fc4b780da513e3ca12d7d24f", "shasum": "" }, "require": { @@ -10712,9 +10566,9 @@ "homepage": "https://github.com/wp-cli/wp-config-transformer", "support": { "issues": "https://github.com/wp-cli/wp-config-transformer/issues", - "source": "https://github.com/wp-cli/wp-config-transformer/tree/v1.3.5" + "source": "https://github.com/wp-cli/wp-config-transformer/tree/v1.3.6" }, - "time": "2023-11-10T14:28:03+00:00" + "time": "2024-05-23T06:32:14+00:00" }, { "name": "wp-coding-standards/wpcs", diff --git a/src/Admin/ListTables/ActivationsTable.php b/src/Admin/ListTables/ActivationsTable.php index e24c96f5..6fa0d673 100644 --- a/src/Admin/ListTables/ActivationsTable.php +++ b/src/Admin/ListTables/ActivationsTable.php @@ -123,7 +123,7 @@ protected function extra_tablenav( $which ) { * @since 1.4.6 */ public function process_bulk_actions( $doaction ) { - if ( $doaction && check_ajax_referer( 'bulk-activations' ) ) { + if ( $doaction && check_ajax_referer( 'bulk-activations' ) && current_user_can( wcsn_get_manager_role() ) ) { if ( isset( $_REQUEST['id'] ) ) { $ids = wp_parse_id_list( wp_unslash( $_REQUEST['id'] ) ); } elseif ( isset( $_REQUEST['ids'] ) ) { diff --git a/src/Admin/ListTables/KeysTable.php b/src/Admin/ListTables/KeysTable.php index 61976a26..9ab8eaac 100644 --- a/src/Admin/ListTables/KeysTable.php +++ b/src/Admin/ListTables/KeysTable.php @@ -210,7 +210,8 @@ public function no_items() { * @return array $views All the views sellable */ public function get_views() { - $current = isset( $_GET['status'] ) ? sanitize_key( wp_unslash( $_GET['status'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended + wp_verify_nonce( '_nonce' ); + $current = isset( $_GET['status'] ) ? sanitize_key( wp_unslash( $_GET['status'] ) ) : ''; $available_count = ' (' . $this->available_count . ')'; $pending_count = ' (' . $this->pending_count . ')'; $sold_count = ' (' . $this->sold_count . ')'; @@ -291,7 +292,7 @@ protected function extra_tablenav( $which ) { * @since 1.4.6 */ public function process_bulk_actions( $doaction ) { - if ( $doaction && check_ajax_referer( 'bulk-' . $this->_args['plural'] ) ) { + if ( $doaction && check_ajax_referer( 'bulk-' . $this->_args['plural'] ) && current_user_can( wcsn_get_manager_role() ) ) { if ( wp_unslash( isset( $_REQUEST['id'] ) ) ) { $ids = wp_parse_id_list( wp_unslash( $_REQUEST['id'] ) ); } elseif ( isset( $_REQUEST['ids'] ) ) { diff --git a/src/Admin/ListTables/ListTable.php b/src/Admin/ListTables/ListTable.php index 3539c210..1c527375 100644 --- a/src/Admin/ListTables/ListTable.php +++ b/src/Admin/ListTables/ListTable.php @@ -36,7 +36,8 @@ class ListTable extends \WP_List_Table { * @return mixed Un-sanitized request var */ protected function get_request_var( $param = '', $fallback = false ) { - return isset( $_REQUEST[ $param ] ) ? sanitize_text_field( wp_unslash( $_REQUEST[ $param ] ) ) : $fallback; // phpcs:ignore WordPress.Security.NonceVerification + wp_verify_nonce( '_nonce' ); + return isset( $_REQUEST[ $param ] ) ? sanitize_text_field( wp_unslash( $_REQUEST[ $param ] ) ) : $fallback; } /** diff --git a/src/Admin/Menus.php b/src/Admin/Menus.php index 5399f067..e97ae3d0 100644 --- a/src/Admin/Menus.php +++ b/src/Admin/Menus.php @@ -44,7 +44,9 @@ public function __construct() { * @since 1.4.6 */ public function setup_screen() { - if ( isset( $_GET['edit'] ) || isset( $_GET['delete'] ) || isset( $_GET['add'] ) || isset( $_GET['generate'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended + wp_verify_nonce( '_nonce' ); + + if ( isset( $_GET['edit'] ) || isset( $_GET['delete'] ) || isset( $_GET['add'] ) || isset( $_GET['generate'] ) ) { return; } @@ -201,8 +203,9 @@ public function promo_menu() { * @return void */ public function output_main_page() { - $add = isset( $_GET['add'] ) ? true : false; // phpcs:ignore WordPress.Security.NonceVerification.Recommended - $edit = isset( $_GET['edit'] ) ? absint( $_GET['edit'] ) : 0; // phpcs:ignore WordPress.Security.NonceVerification.Recommended + wp_verify_nonce( '_nonce' ); + $add = isset( $_GET['add'] ) ? true : false; + $edit = isset( $_GET['edit'] ) ? absint( $_GET['edit'] ) : 0; if ( $edit ) { $key = new Key( $edit ); if ( ! $key->exists() ) { @@ -239,6 +242,7 @@ public function output_activations_page() { * @return void */ public function output_tools_page() { + wp_verify_nonce( '_nonce' ); $tabs = array( 'generators' => __( 'Generators', 'wc-serial-numbers' ), 'api' => __( 'API Toolkit', 'wc-serial-numbers' ), @@ -253,8 +257,8 @@ public function output_tools_page() { $tabs = apply_filters( 'wc_serial_numbers_tools_tabs', $tabs ); $tab_ids = array_keys( $tabs ); - $current_tab = isset( $_GET['tab'] ) ? sanitize_key( wp_unslash( $_GET['tab'] ) ) : reset( $tab_ids ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended - $page = isset( $_GET['page'] ) ? sanitize_key( wp_unslash( $_GET['page'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended + $current_tab = isset( $_GET['tab'] ) ? sanitize_key( wp_unslash( $_GET['tab'] ) ) : reset( $tab_ids ); + $page = isset( $_GET['page'] ) ? sanitize_key( wp_unslash( $_GET['page'] ) ) : ''; Admin::view( 'html-tools.php', @@ -273,14 +277,15 @@ public function output_tools_page() { * @return void */ public function output_reports_page() { + wp_verify_nonce( '_nonce' ); $tabs = array( 'stock' => __( 'Stock', 'wc-serial-numbers' ), ); $tabs = apply_filters( 'wc_serial_numbers_reports_tabs', $tabs ); $tab_ids = array_keys( $tabs ); - $current_tab = isset( $_GET['tab'] ) ? sanitize_key( wp_unslash( $_GET['tab'] ) ) : reset( $tab_ids ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended - $page = isset( $_GET['page'] ) ? sanitize_key( wp_unslash( $_GET['page'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended + $current_tab = isset( $_GET['tab'] ) ? sanitize_key( wp_unslash( $_GET['tab'] ) ) : reset( $tab_ids ); + $page = isset( $_GET['page'] ) ? sanitize_key( wp_unslash( $_GET['page'] ) ) : ''; Admin::view( 'html-reports.php', @@ -299,8 +304,9 @@ public function output_reports_page() { * @return void */ public function go_pro_redirect() { - if ( isset( $_GET['page'] ) && 'go_wcsn_pro' === $_GET['page'] ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended - wp_redirect( 'https://pluginever.com/plugins/woocommerce-serial-numbers-pro/?utm_source=admin-menu&utm_medium=link&utm_campaign=upgrade&utm_id=wc-serial-numbers' ); // phpcs:ignore WordPress.Security.SafeRedirect.wp_redirect_wp_redirect + wp_verify_nonce( '_nonce' ); + if ( isset( $_GET['page'] ) && 'go_wcsn_pro' === $_GET['page'] ) { + wp_safe_redirect( 'https://pluginever.com/plugins/woocommerce-serial-numbers-pro/?utm_source=admin-menu&utm_medium=link&utm_campaign=upgrade&utm_id=wc-serial-numbers' ); die; } } diff --git a/src/Admin/Metaboxes.php b/src/Admin/Metaboxes.php index a4858f4c..bbaa3558 100644 --- a/src/Admin/Metaboxes.php +++ b/src/Admin/Metaboxes.php @@ -168,6 +168,12 @@ public static function product_save_data() { if ( ! isset( $_POST['woocommerce_meta_nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['woocommerce_meta_nonce'] ) ), 'woocommerce_save_data' ) ) { return; } + + // Must have WC Serial Numbers manager role to access this endpoint. + if ( ! current_user_can( wcsn_get_manager_role() ) ) { + return; + } + $status = isset( $_POST['_is_serial_number'] ) ? 'yes' : 'no'; $source = isset( $_POST['_serial_key_source'] ) ? sanitize_text_field( wp_unslash( $_POST['_serial_key_source'] ) ) : 'custom_source'; update_post_meta( $post->ID, '_is_serial_number', $status ); diff --git a/src/Admin/Notices.php b/src/Admin/Notices.php index 014fc9d6..0e71a552 100644 --- a/src/Admin/Notices.php +++ b/src/Admin/Notices.php @@ -112,6 +112,12 @@ public function output_notices() { */ public function dismiss_notice() { check_ajax_referer( 'wc_serial_numbers_dismiss_notice', 'nonce' ); + + // Must have WC Serial Numbers manager role to access this endpoint. + if ( ! current_user_can( wcsn_get_manager_role() ) ) { + wp_die(); + } + $notice_id = isset( $_POST['notice_id'] ) ? sanitize_text_field( wp_unslash( $_POST['notice_id'] ) ) : ''; if ( $notice_id ) { update_option( 'wc_serial_numbers_dismissed_notices', array_merge( get_option( 'wc_serial_numbers_dismissed_notices', array() ), array( $notice_id ) ) ); diff --git a/src/Admin/views/html-list-keys.php b/src/Admin/views/html-list-keys.php index 1832e8d9..eab9cdfd 100644 --- a/src/Admin/views/html-list-keys.php +++ b/src/Admin/views/html-list-keys.php @@ -37,7 +37,8 @@
prepare_items(); $list_table->views(); $list_table->search_box( __( 'Search key', 'wc-serial-numbers' ), 'key' ); From c6095435b7c69c4e9098b4be5d339ceec3508c13 Mon Sep 17 00:00:00 2001 From: kawsarahmedr Date: Tue, 30 Jul 2024 13:26:14 +0600 Subject: [PATCH 2/5] Update header doc block --- wc-serial-numbers.php | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/wc-serial-numbers.php b/wc-serial-numbers.php index cfe6ab37..a94feb2b 100644 --- a/wc-serial-numbers.php +++ b/wc-serial-numbers.php @@ -1,19 +1,20 @@ Date: Tue, 30 Jul 2024 13:26:56 +0600 Subject: [PATCH 3/5] Update next release version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f4a3ab13..748f3fa0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "wc-serial-numbers", "title": "WC Serial Numbers", - "version": "1.7.5", + "version": "1.7.6", "description": "Sell and manage license keys/ serial numbers/ secret keys easily within your WooCommerce store.", "homepage": "https://pluginever.com/plugins/wc-serial-numbers/", "license": "GPL-3.0+", From bf10fd82051a35fb43fa6ecd3260a06b93066f78 Mon Sep 17 00:00:00 2001 From: kawsarahmedr Date: Tue, 30 Jul 2024 13:31:28 +0600 Subject: [PATCH 4/5] Update readme file --- readme.txt | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/readme.txt b/readme.txt index e25cc541..d2c58412 100644 --- a/readme.txt +++ b/readme.txt @@ -2,9 +2,9 @@ Contributors: pluginever, manikmist09 Tags: license manager, license, license number, serial number, activation number, key, serial key, license key, activation key, product key, serial code, license code, activation code, digital, digital downloads, digital product key, digital license, product license, software license, software license key, software activation, license key for digital products, digital product license, virtual product key, virtual product license, subscription product license, license key generator, woocommerce Requires at least: 5.0 -Tested up to: 6.5 -Requires PHP: 5.6 -Stable tag: 1.7.5 +Tested up to: 6.6 +Requires PHP: 7.4 +Stable tag: 1.7.6 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -162,7 +162,7 @@ Visit [PluginEver](https://pluginever.com) to learn from our WooCommerce tutoria * WordPress 5.0 or greater * WooCommerce 5.0 or greater -* PHP version 5.6 or greater +* PHP version 7.4 or greater * MySQL version 5.6 or greater * MariaDB version 10 or later @@ -251,7 +251,14 @@ Yes, you are always welcome to [provide suggestions](https://github.com/pluginev 9. Thank You Page with Keys == Changelog == -= 1.7.4 (01 Jul 2024) = += 1.7.6 (30 Jul 2024) = +Enhance: Enhanced security to handle form actions. +Enhance: Enhanced security to handle Ajax search. +Enhance: Enhanced security to handle the GET & POST supper global variables. +Fix: Vulnerability security issue. +Fix: Few other known issues. + += 1.7.5 (01 Jul 2024) = Enhance: Enhanced security to handle form actions. Enhance: Enhanced security to handle Ajax search. Fix: Few known issues fixed. From 00841d3a995205522c5f7c11fdc120188ba8484d Mon Sep 17 00:00:00 2001 From: kawsarahmedr Date: Tue, 30 Jul 2024 13:36:54 +0600 Subject: [PATCH 5/5] Update pot file --- languages/wc-serial-numbers.pot | 126 ++++++++++++++++---------------- package-lock.json | 4 +- 2 files changed, 65 insertions(+), 65 deletions(-) diff --git a/languages/wc-serial-numbers.pot b/languages/wc-serial-numbers.pot index d3292ba9..a49d1948 100644 --- a/languages/wc-serial-numbers.pot +++ b/languages/wc-serial-numbers.pot @@ -1,10 +1,10 @@ # Copyright (C) 2024 PluginEver -# This file is distributed under the GPLv2+. +# This file is distributed under the GPL v2 or later. msgid "" msgstr "" -"Project-Id-Version: WC Serial Numbers 1.7.5\n" +"Project-Id-Version: WC Serial Numbers 1.7.6\n" "Report-Msgid-Bugs-To: https://pluginever.com/plugins/wc-serial-numbers/\n" -"POT-Creation-Date: 2024-07-03 03:38:29+00:00\n" +"POT-Creation-Date: 2024-07-30 07:33:56+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -53,7 +53,7 @@ msgstr "" msgid "More Plugins" msgstr "" -#: lib/Lib/Plugin.php:692 src/Admin/Menus.php:169 src/Admin/Menus.php:170 +#: lib/Lib/Plugin.php:692 src/Admin/Menus.php:171 src/Admin/Menus.php:172 msgid "Settings" msgstr "" @@ -145,19 +145,19 @@ msgstr "" msgid "Version %s" msgstr "" -#: src/Admin/Admin.php:141 src/Admin/Menus.php:52 src/Admin/Menus.php:87 -#: src/Admin/Menus.php:88 src/Admin/Menus.php:429 src/Admin/Metaboxes.php:36 -#: src/Admin/Metaboxes.php:251 src/Functions/Template.php:226 +#: src/Admin/Admin.php:141 src/Admin/Menus.php:54 src/Admin/Menus.php:89 +#: src/Admin/Menus.php:90 src/Admin/Menus.php:435 src/Admin/Metaboxes.php:36 +#: src/Admin/Metaboxes.php:257 src/Functions/Template.php:226 msgid "Serial Numbers" msgstr "" #: src/Admin/ListTables/ActivationsTable.php:39 -#: src/Admin/ListTables/KeysTable.php:355 +#: src/Admin/ListTables/KeysTable.php:356 msgid "Activation" msgstr "" -#: src/Admin/ListTables/ActivationsTable.php:40 src/Admin/Menus.php:118 -#: src/Admin/Menus.php:119 src/Admin/views/html-list-activations.php:18 +#: src/Admin/ListTables/ActivationsTable.php:40 src/Admin/Menus.php:120 +#: src/Admin/Menus.php:121 src/Admin/views/html-list-activations.php:18 msgid "Activations" msgstr "" @@ -166,15 +166,15 @@ msgid "No activations found. Once a serial key is activated, it will appear here msgstr "" #: src/Admin/ListTables/ActivationsTable.php:113 -#: src/Admin/ListTables/KeysTable.php:280 +#: src/Admin/ListTables/KeysTable.php:281 #: src/Admin/ListTables/StockTable.php:82 msgid "Filter" msgstr "" #: src/Admin/ListTables/ActivationsTable.php:164 #: src/Admin/ListTables/ActivationsTable.php:239 -#: src/Admin/ListTables/KeysTable.php:335 -#: src/Admin/ListTables/KeysTable.php:427 src/Admin/views/html-edit-key.php:130 +#: src/Admin/ListTables/KeysTable.php:336 +#: src/Admin/ListTables/KeysTable.php:428 src/Admin/views/html-edit-key.php:130 msgid "Delete" msgstr "" @@ -184,7 +184,7 @@ msgid "Instance" msgstr "" #: src/Admin/ListTables/ActivationsTable.php:177 -#: src/Admin/ListTables/KeysTable.php:349 +#: src/Admin/ListTables/KeysTable.php:350 #: src/Admin/ListTables/StockTable.php:95 src/Admin/views/html-add-key.php:33 #: src/Admin/views/html-api-actions.php:118 #: src/Admin/views/html-api-validation.php:121 @@ -194,7 +194,7 @@ msgid "Product" msgstr "" #: src/Admin/ListTables/ActivationsTable.php:178 -#: src/Admin/ListTables/KeysTable.php:348 src/Admin/Orders.php:233 +#: src/Admin/ListTables/KeysTable.php:349 src/Admin/Orders.php:233 #: src/Admin/views/html-api-actions.php:131 #: src/Admin/views/html-api-validation.php:134 src/Functions/Template.php:42 #: src/functions.php:1009 @@ -231,7 +231,7 @@ msgid "Keys can have one of the following statuses:" msgstr "" #: src/Admin/ListTables/KeysTable.php:178 -#: src/Admin/ListTables/KeysTable.php:234 src/functions.php:46 +#: src/Admin/ListTables/KeysTable.php:235 src/functions.php:46 msgid "Available" msgstr "" @@ -240,7 +240,7 @@ msgid "This means the key is available for purchase." msgstr "" #: src/Admin/ListTables/KeysTable.php:183 -#: src/Admin/ListTables/KeysTable.php:241 src/functions.php:47 +#: src/Admin/ListTables/KeysTable.php:242 src/functions.php:47 msgid "Pending" msgstr "" @@ -249,7 +249,7 @@ msgid "This means the key has been sold, but the order has not been completed ye msgstr "" #: src/Admin/ListTables/KeysTable.php:188 -#: src/Admin/ListTables/KeysTable.php:248 +#: src/Admin/ListTables/KeysTable.php:249 #: src/Admin/ListTables/StockTable.php:97 src/functions.php:48 msgid "Sold" msgstr "" @@ -259,7 +259,7 @@ msgid "This means the key has been sold, and the order has been completed." msgstr "" #: src/Admin/ListTables/KeysTable.php:193 -#: src/Admin/ListTables/KeysTable.php:255 src/Functions/Template.php:72 +#: src/Admin/ListTables/KeysTable.php:256 src/Functions/Template.php:72 #: src/functions.php:49 msgid "Expired" msgstr "" @@ -269,7 +269,7 @@ msgid "This means the key has expired and is no longer valid." msgstr "" #: src/Admin/ListTables/KeysTable.php:198 -#: src/Admin/ListTables/KeysTable.php:262 src/functions.php:50 +#: src/Admin/ListTables/KeysTable.php:263 src/functions.php:50 msgid "Cancelled" msgstr "" @@ -279,89 +279,89 @@ msgid "" "purchase or use." msgstr "" -#: src/Admin/ListTables/KeysTable.php:225 +#: src/Admin/ListTables/KeysTable.php:226 msgid "All keys." msgstr "" -#: src/Admin/ListTables/KeysTable.php:227 +#: src/Admin/ListTables/KeysTable.php:228 msgid "All" msgstr "" -#: src/Admin/ListTables/KeysTable.php:232 +#: src/Admin/ListTables/KeysTable.php:233 msgid "Available for sell." msgstr "" -#: src/Admin/ListTables/KeysTable.php:239 +#: src/Admin/ListTables/KeysTable.php:240 msgid "Pending payment." msgstr "" -#: src/Admin/ListTables/KeysTable.php:246 +#: src/Admin/ListTables/KeysTable.php:247 msgid "Sold keys." msgstr "" -#: src/Admin/ListTables/KeysTable.php:253 +#: src/Admin/ListTables/KeysTable.php:254 msgid "Expired keys." msgstr "" -#: src/Admin/ListTables/KeysTable.php:260 +#: src/Admin/ListTables/KeysTable.php:261 msgid "Cancelled keys." msgstr "" -#: src/Admin/ListTables/KeysTable.php:336 +#: src/Admin/ListTables/KeysTable.php:337 msgid "Reset Activations" msgstr "" -#: src/Admin/ListTables/KeysTable.php:350 src/Admin/views/html-add-key.php:120 +#: src/Admin/ListTables/KeysTable.php:351 src/Admin/views/html-add-key.php:120 msgid "Order" msgstr "" -#: src/Admin/ListTables/KeysTable.php:351 +#: src/Admin/ListTables/KeysTable.php:352 msgid "Validity" msgstr "" -#: src/Admin/ListTables/KeysTable.php:358 +#: src/Admin/ListTables/KeysTable.php:359 msgid "Order Date" msgstr "" -#: src/Admin/ListTables/KeysTable.php:359 src/Admin/Menus.php:316 +#: src/Admin/ListTables/KeysTable.php:360 src/Admin/Menus.php:322 #: src/Admin/Orders.php:245 src/Admin/views/html-add-key.php:91 #: src/Admin/views/html-edit-key.php:92 src/Functions/Template.php:78 #: src/functions.php:1034 msgid "Status" msgstr "" -#: src/Admin/ListTables/KeysTable.php:425 +#: src/Admin/ListTables/KeysTable.php:426 #. translators: %d: key id. msgid "ID: %d" msgstr "" -#: src/Admin/ListTables/KeysTable.php:426 +#: src/Admin/ListTables/KeysTable.php:427 #: src/Admin/ListTables/StockTable.php:143 msgid "Edit" msgstr "" -#: src/Admin/ListTables/KeysTable.php:521 +#: src/Admin/ListTables/KeysTable.php:522 #. translators: %1$s: validity, %2$s: validity. msgid "%s Day
After purchase" msgid_plural "%s Days
After purchase" msgstr[0] "" msgstr[1] "" -#: src/Admin/ListTables/KeysTable.php:531 src/Admin/Orders.php:238 +#: src/Admin/ListTables/KeysTable.php:532 src/Admin/Orders.php:238 #: src/Functions/Template.php:63 src/functions.php:1030 msgid "Lifetime" msgstr "" -#: src/Admin/ListTables/ListTable.php:139 -#: src/Admin/ListTables/ListTable.php:141 +#: src/Admin/ListTables/ListTable.php:140 +#: src/Admin/ListTables/ListTable.php:142 msgid "Filter by order" msgstr "" -#: src/Admin/ListTables/ListTable.php:162 +#: src/Admin/ListTables/ListTable.php:163 msgid "Filter by product" msgstr "" -#: src/Admin/ListTables/ListTable.php:185 +#: src/Admin/ListTables/ListTable.php:186 msgid "Filter by customer" msgstr "" @@ -381,7 +381,7 @@ msgstr "" msgid "Source" msgstr "" -#: src/Admin/ListTables/StockTable.php:98 src/Admin/Menus.php:277 +#: src/Admin/ListTables/StockTable.php:98 src/Admin/Menus.php:282 msgid "Stock" msgstr "" @@ -401,80 +401,80 @@ msgstr "" msgid "Unknown" msgstr "" -#: src/Admin/Menus.php:98 src/Admin/Menus.php:99 +#: src/Admin/Menus.php:100 src/Admin/Menus.php:101 #: src/Admin/views/html-list-keys.php:18 msgid "Serial Keys" msgstr "" -#: src/Admin/Menus.php:135 src/Admin/Menus.php:136 +#: src/Admin/Menus.php:137 src/Admin/Menus.php:138 msgid "Tools" msgstr "" -#: src/Admin/Menus.php:152 src/Admin/Menus.php:153 +#: src/Admin/Menus.php:154 src/Admin/Menus.php:155 msgid "Reports" msgstr "" -#: src/Admin/Menus.php:189 src/Admin/Metaboxes.php:136 +#: src/Admin/Menus.php:191 src/Admin/Metaboxes.php:136 #: src/Admin/Metaboxes.php:157 msgid "Upgrade to Pro" msgstr "" -#: src/Admin/Menus.php:243 src/Admin/Menus.php:377 +#: src/Admin/Menus.php:247 src/Admin/Menus.php:383 msgid "Generators" msgstr "" -#: src/Admin/Menus.php:244 +#: src/Admin/Menus.php:248 msgid "API Toolkit" msgstr "" -#: src/Admin/Menus.php:245 src/Admin/views/html-list-keys.php:25 +#: src/Admin/Menus.php:249 src/Admin/views/html-list-keys.php:25 msgid "Import" msgstr "" -#: src/Admin/Menus.php:246 src/Admin/views/html-list-keys.php:29 +#: src/Admin/Menus.php:250 src/Admin/views/html-list-keys.php:29 msgid "Export" msgstr "" -#: src/Admin/Menus.php:331 src/Admin/Menus.php:338 src/Admin/Menus.php:356 -#: src/Admin/Menus.php:374 +#: src/Admin/Menus.php:337 src/Admin/Menus.php:344 src/Admin/Menus.php:362 +#: src/Admin/Menus.php:380 msgid "Available in Pro Version" msgstr "" -#: src/Admin/Menus.php:332 src/Admin/Menus.php:339 src/Admin/Menus.php:357 -#: src/Admin/Menus.php:375 +#: src/Admin/Menus.php:338 src/Admin/Menus.php:345 src/Admin/Menus.php:363 +#: src/Admin/Menus.php:381 msgid "Upgrade to Pro Now" msgstr "" -#: src/Admin/Menus.php:334 src/Admin/Menus.php:341 +#: src/Admin/Menus.php:340 src/Admin/Menus.php:347 msgid "Import Serial Numbers" msgstr "" -#: src/Admin/Menus.php:359 +#: src/Admin/Menus.php:365 msgid "Export Serial Numbers" msgstr "" -#: src/Admin/Menus.php:404 +#: src/Admin/Menus.php:410 msgid "Table exists" msgstr "" -#: src/Admin/Menus.php:406 +#: src/Admin/Menus.php:412 msgid "Table does not exist" msgstr "" -#: src/Admin/Menus.php:412 +#: src/Admin/Menus.php:418 msgid "Hourly cron" msgstr "" -#: src/Admin/Menus.php:413 +#: src/Admin/Menus.php:419 msgid "Daily cron" msgstr "" -#: src/Admin/Menus.php:419 +#: src/Admin/Menus.php:425 #. translators: %s: Next scheduled time. msgid "Next run: %s" msgstr "" -#: src/Admin/Menus.php:421 +#: src/Admin/Menus.php:427 msgid "Not scheduled" msgstr "" @@ -526,7 +526,7 @@ msgid "" "variation." msgstr "" -#: src/Admin/Metaboxes.php:233 +#: src/Admin/Metaboxes.php:239 msgid "Order missing serial numbers for this item." msgstr "" @@ -1263,7 +1263,7 @@ msgstr "" msgid "Generate" msgstr "" -#: src/Admin/views/html-list-keys.php:43 +#: src/Admin/views/html-list-keys.php:44 msgid "Search key" msgstr "" diff --git a/package-lock.json b/package-lock.json index a9498a28..16bcdef5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "wc-serial-numbers", - "version": "1.7.5", + "version": "1.7.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "wc-serial-numbers", - "version": "1.7.5", + "version": "1.7.6", "license": "GPL-3.0+", "devDependencies": { "@lodder/time-grunt": "^4.0.0",