diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bbe519ba66c3..ca82639be333 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,15 +8,12 @@ importers: xwiki-platform-core/xwiki-platform-lib-a/src/main/node: devDependencies: - '@types/node': - specifier: 20.11.17 - version: 20.11.17 typescript: - specifier: ^5.3.3 + specifier: 5.3.3 version: 5.3.3 vite: specifier: 5.1.1 - version: 5.1.1(@types/node@20.11.17) + version: 5.1.1 xwiki-platform-tool-node-tsconfig: specifier: workspace:* version: link:../../../../../xwiki-platform-tools/xwiki-platform-tool-node/xwiki-platform-tool-node-tsconfig/src/main/node @@ -30,15 +27,12 @@ importers: specifier: workspace:* version: link:../../../../xwiki-platform-lib-a/src/main/node devDependencies: - '@types/node': - specifier: 20.11.17 - version: 20.11.17 typescript: specifier: 5.3.3 version: 5.3.3 vite: specifier: 5.1.1 - version: 5.1.1(@types/node@20.11.17) + version: 5.1.1 xwiki-platform-tool-node-tsconfig: specifier: workspace:* version: link:../../../../../xwiki-platform-tools/xwiki-platform-tool-node/xwiki-platform-tool-node-tsconfig/src/main/node @@ -55,7 +49,7 @@ importers: version: 2.2.4(rollup@4.9.6) vite: specifier: 5.1.1 - version: 5.1.1(@types/node@20.11.17) + version: 5.1.1 vite-plugin-dts: specifier: 3.7.2 version: 3.7.2(rollup@4.9.6)(typescript@5.3.3)(vite@5.1.1) @@ -499,12 +493,6 @@ packages: resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} dev: true - /@types/node@20.11.17: - resolution: {integrity: sha512-QmgQZGWu1Yw9TDyAP9ZzpFJKynYNeOvwMJmaxABfieQoVoiVOS6MN1WSpqpRcbeA5+RW82kraAVxCCJg+780Qw==} - dependencies: - undici-types: 5.26.5 - dev: true - /@volar/language-core@1.11.1: resolution: {integrity: sha512-dOcNn3i9GgZAcJt43wuaEykSluAuOkQgzni1cuxLxTV0nJKanQztp7FxyswdRILaKH+P2XZMPRp2S4MV/pElCw==} dependencies: @@ -910,10 +898,6 @@ packages: hasBin: true dev: true - /undici-types@5.26.5: - resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - dev: true - /universalify@0.1.2: resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==} engines: {node: '>= 4.0.0'} @@ -946,7 +930,7 @@ packages: debug: 4.3.4 kolorist: 1.8.0 typescript: 5.3.3 - vite: 5.1.1(@types/node@20.11.17) + vite: 5.1.1 vue-tsc: 1.8.27(typescript@5.3.3) transitivePeerDependencies: - '@types/node' @@ -954,7 +938,7 @@ packages: - supports-color dev: true - /vite@5.1.1(@types/node@20.11.17): + /vite@5.1.1: resolution: {integrity: sha512-wclpAgY3F1tR7t9LL5CcHC41YPkQIpKUGeIuT8MdNwNZr6OqOTLs7JX5vIHAtzqLWXts0T+GDrh9pN2arneKqg==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -982,7 +966,6 @@ packages: terser: optional: true dependencies: - '@types/node': 20.11.17 esbuild: 0.19.12 postcss: 8.4.35 rollup: 4.9.6 diff --git a/xwiki-platform-core/xwiki-platform-extension/xwiki-platform-extension-security/xwiki-platform-extension-security-index/src/test/resources/org.apache.solr-solr-core-8.11.2.json b/xwiki-platform-core/xwiki-platform-extension/xwiki-platform-extension-security/xwiki-platform-extension-security-index/src/test/resources/org.apache.solr-solr-core-8.11.2.json new file mode 100644 index 000000000000..b9d828916aac --- /dev/null +++ b/xwiki-platform-core/xwiki-platform-extension/xwiki-platform-extension-security/xwiki-platform-extension-security-index/src/test/resources/org.apache.solr-solr-core-8.11.2.json @@ -0,0 +1,446 @@ +{ + "vulns": [ + { + "id": "GHSA-37vr-vmg4-jwpw", + "summary": "Apache Solr: Backup/Restore APIs allow for deployment of executables in malicious ConfigSets ", + "details": "Improper Control of Dynamically-Managed Code Resources, Unrestricted Upload of File with Dangerous Type, Inclusion of Functionality from Untrusted Control Sphere vulnerability in Apache Solr.This issue affects Apache Solr from 6.0.0 through 8.11.2, from 9.0.0 before 9.4.1.\n\nIn the affected versions, Solr ConfigSets accepted Java jar and class files to be uploaded through the ConfigSets API.\nWhen backing up Solr Collections, these configSet files would be saved to disk when using the LocalFileSystemRepository (the default for backups).\nIf the backup was saved to a directory that Solr uses in its ClassPath/ClassLoaders, then the jar and class files would be available to use with any ConfigSet, trusted or untrusted.\n\nWhen Solr is run in a secure way (Authorization enabled), as is strongly suggested, this vulnerability is limited to extending the Backup permissions with the ability to add libraries.\nUsers are recommended to upgrade to version 8.11.3 or 9.4.1, which fix the issue.\nIn these versions, the following protections have been added:\n\n * Users are no longer able to upload files to a configSet that could be executed via a Java ClassLoader.\n * The Backup API restricts saving backups to directories that are used in the ClassLoader.", + "aliases": [ + "CVE-2023-50386" + ], + "modified": "2024-02-09T22:12:35.572225Z", + "published": "2024-02-09T18:31:07Z", + "database_specific": { + "github_reviewed_at": "2024-02-09T21:53:13Z", + "github_reviewed": true, + "severity": "MODERATE", + "cwe_ids": [ + "CWE-434" + ], + "nvd_published_at": "2024-02-09T18:15:08Z" + }, + "references": [ + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-50386" + }, + { + "type": "WEB", + "url": "https://github.com/apache/lucene-solr/commit/6c8f24eb9e3fe1cb19058173f2e221de3febfeda" + }, + { + "type": "WEB", + "url": "https://github.com/apache/lucene-solr/commit/7e9a2e67f812032a049836c3aa0b18bf5cd717f9" + }, + { + "type": "WEB", + "url": "https://github.com/apache/solr/commit/644dd3a6d6780d71030f7070754d2f3adce22859" + }, + { + "type": "WEB", + "url": "https://github.com/apache/solr/commit/c79011e81dada2f9bc4b4df32ffb32152ef81152" + }, + { + "type": "WEB", + "url": "https://issues.apache.org/jira/browse/SOLR-16949" + }, + { + "type": "WEB", + "url": "https://solr.apache.org/security.html#cve-2023-50386-apache-solr-backuprestore-apis-allow-for-deployment-of-executables-in-malicious-configsets" + }, + { + "type": "WEB", + "url": "http://www.openwall.com/lists/oss-security/2024/02/09/1" + } + ], + "affected": [ + { + "package": { + "name": "org.apache.solr:solr-core", + "ecosystem": "Maven", + "purl": "pkg:maven/org.apache.solr/solr-core" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "6.0.0" + }, + { + "fixed": "8.11.3" + } + ] + } + ], + "versions": [ + "6.0.0", + "6.0.1", + "6.1.0", + "6.2.0", + "6.2.1", + "6.3.0", + "6.4.0", + "6.4.1", + "6.4.2", + "6.5.0", + "6.5.1", + "6.6.0", + "6.6.1", + "6.6.2", + "6.6.3", + "6.6.4", + "6.6.5", + "6.6.6", + "7.0.0", + "7.0.1", + "7.1.0", + "7.2.0", + "7.2.1", + "7.3.0", + "7.3.1", + "7.4.0", + "7.5.0", + "7.6.0", + "7.7.0", + "7.7.1", + "7.7.2", + "7.7.3", + "8.0.0", + "8.1.0", + "8.1.1", + "8.10.0", + "8.10.1", + "8.11.0", + "8.11.1", + "8.11.2", + "8.2.0", + "8.3.0", + "8.3.1", + "8.4.0", + "8.4.1", + "8.5.0", + "8.5.1", + "8.5.2", + "8.6.0", + "8.6.1", + "8.6.2", + "8.6.3", + "8.7.0", + "8.8.0", + "8.8.1", + "8.8.2", + "8.9.0" + ], + "database_specific": { + "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-37vr-vmg4-jwpw/GHSA-37vr-vmg4-jwpw.json" + } + }, + { + "package": { + "name": "org.apache.solr:solr-core", + "ecosystem": "Maven", + "purl": "pkg:maven/org.apache.solr/solr-core" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "9.0.0" + }, + { + "fixed": "9.4.1" + } + ] + } + ], + "versions": [ + "9.0.0", + "9.1.0", + "9.1.1", + "9.2.0", + "9.2.1", + "9.3.0", + "9.4.0" + ], + "database_specific": { + "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-37vr-vmg4-jwpw/GHSA-37vr-vmg4-jwpw.json" + } + } + ], + "schema_version": "1.6.0" + }, + { + "id": "GHSA-3hwc-rqwp-v36q", + "summary": "Apache Solr can leak certain passwords due to System Property redaction logic inconsistencies", + "details": "Insufficiently Protected Credentials vulnerability in Apache Solr.\n\nThis issue affects Apache Solr from 6.0.0 through 8.11.2, from 9.0.0 before 9.3.0.\nOne of the two endpoints that publishes the Solr process' Java system properties, /admin/info/properties, was only setup to hide system properties that had \"password\" contained in the name.\nThere are a number of sensitive system properties, such as \"basicauth\" and \"aws.secretKey\" do not contain \"password\", thus their values were published via the \"/admin/info/properties\" endpoint.\nThis endpoint populates the list of System Properties on the home screen of the Solr Admin page, making the exposed credentials visible in the UI.\n\nThis /admin/info/properties endpoint is protected under the \"config-read\" permission.\nTherefore, Solr Clouds with Authorization enabled will only be vulnerable through logged-in users that have the \"config-read\" permission.\nUsers are recommended to upgrade to version 9.3.0 or 8.11.3, both of which fix the issue.\nA single option now controls hiding Java system property for all endpoints, \"-Dsolr.hiddenSysProps\".\nBy default all known sensitive properties are hidden (including \"-Dbasicauth\"), as well as any property with a name containing \"secret\" or \"password\".\n\nUsers who cannot upgrade can also use the following Java system property to fix the issue:\n  `-Dsolr.redaction.system.pattern=.*(password|secret|basicauth).*`", + "aliases": [ + "CVE-2023-50291" + ], + "modified": "2024-02-09T21:56:43.352366Z", + "published": "2024-02-09T18:31:07Z", + "database_specific": { + "github_reviewed_at": "2024-02-09T21:43:19Z", + "github_reviewed": true, + "severity": "MODERATE", + "cwe_ids": [ + "CWE-522" + ], + "nvd_published_at": "2024-02-09T18:15:08Z" + }, + "references": [ + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-50291" + }, + { + "type": "WEB", + "url": "https://github.com/apache/solr/commit/659021c7d50164a3166887f24875228431b02102" + }, + { + "type": "WEB", + "url": "https://github.com/apache/solr/commit/98c198810f2cd934d23d0d80aadb570a2bbb3b8e" + }, + { + "type": "PACKAGE", + "url": "https://github.com/apache/solr" + }, + { + "type": "WEB", + "url": "https://issues.apache.org/jira/browse/SOLR-16809" + }, + { + "type": "WEB", + "url": "https://solr.apache.org/security.html#cve-2023-50291-apache-solr-can-leak-certain-passwords-due-to-system-property-redaction-logic-inconsistencies" + }, + { + "type": "WEB", + "url": "http://www.openwall.com/lists/oss-security/2024/02/09/4" + } + ], + "affected": [ + { + "package": { + "name": "org.apache.solr:solr-core", + "ecosystem": "Maven", + "purl": "pkg:maven/org.apache.solr/solr-core" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "6.0.0" + }, + { + "fixed": "8.11.3" + } + ] + } + ], + "versions": [ + "6.0.0", + "6.0.1", + "6.1.0", + "6.2.0", + "6.2.1", + "6.3.0", + "6.4.0", + "6.4.1", + "6.4.2", + "6.5.0", + "6.5.1", + "6.6.0", + "6.6.1", + "6.6.2", + "6.6.3", + "6.6.4", + "6.6.5", + "6.6.6", + "7.0.0", + "7.0.1", + "7.1.0", + "7.2.0", + "7.2.1", + "7.3.0", + "7.3.1", + "7.4.0", + "7.5.0", + "7.6.0", + "7.7.0", + "7.7.1", + "7.7.2", + "7.7.3", + "8.0.0", + "8.1.0", + "8.1.1", + "8.10.0", + "8.10.1", + "8.11.0", + "8.11.1", + "8.11.2", + "8.2.0", + "8.3.0", + "8.3.1", + "8.4.0", + "8.4.1", + "8.5.0", + "8.5.1", + "8.5.2", + "8.6.0", + "8.6.1", + "8.6.2", + "8.6.3", + "8.7.0", + "8.8.0", + "8.8.1", + "8.8.2", + "8.9.0" + ], + "database_specific": { + "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-3hwc-rqwp-v36q/GHSA-3hwc-rqwp-v36q.json" + } + }, + { + "package": { + "name": "org.apache.solr:solr-core", + "ecosystem": "Maven", + "purl": "pkg:maven/org.apache.solr/solr-core" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "9.0.0" + }, + { + "fixed": "9.3.0" + } + ] + } + ], + "versions": [ + "9.0.0", + "9.1.0", + "9.1.1", + "9.2.0", + "9.2.1" + ], + "database_specific": { + "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-3hwc-rqwp-v36q/GHSA-3hwc-rqwp-v36q.json" + } + } + ], + "schema_version": "1.6.0" + }, + { + "id": "GHSA-4wxw-42wx-2wfx", + "summary": "Apache Solr Schema Designer blindly \"trusts\" all configsets", + "details": "Incorrect Permission Assignment for Critical Resource, Improper Control of Dynamically-Managed Code Resources vulnerability in Apache Solr.\n\nThis issue affects Apache Solr from 8.10.0 through 8.11.2, from 9.0.0 before 9.3.0.\n\nThe Schema Designer was introduced to allow users to more easily configure and test new Schemas and configSets.\nHowever, when the feature was created, the \"trust\" (authentication) of these configSets was not considered.\nExternal library loading is only available to configSets that are \"trusted\" (created by authenticated users), thus non-authenticated users are unable to perform Remote Code Execution.\nSince the Schema Designer loaded configSets without taking their \"trust\" into account, configSets that were created by unauthenticated users were allowed to load external libraries when used in the Schema Designer.\n\nUsers are recommended to upgrade to version 9.3.0 or 8.11.3, both of which fix the issue.\n\n", + "aliases": [ + "CVE-2023-50292" + ], + "modified": "2024-02-09T22:32:25.558330Z", + "published": "2024-02-09T18:31:07Z", + "database_specific": { + "github_reviewed_at": "2024-02-09T21:16:51Z", + "github_reviewed": true, + "severity": "LOW", + "cwe_ids": [ + "CWE-732" + ], + "nvd_published_at": "2024-02-09T18:15:08Z" + }, + "references": [ + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-50292" + }, + { + "type": "WEB", + "url": "https://github.com/apache/lucene-solr/commit/6e9ed203b30958396bdfd41760d426b386646865" + }, + { + "type": "WEB", + "url": "https://github.com/apache/solr/commit/d07751cfaa8065bea8bd43f59e758e50d50c2419" + }, + { + "type": "WEB", + "url": "https://issues.apache.org/jira/browse/SOLR-16777" + }, + { + "type": "WEB", + "url": "https://solr.apache.org/security.html#cve-2023-50298-apache-solr-can-expose-zookeeper-credentials-via-streaming-expressions" + }, + { + "type": "WEB", + "url": "http://www.openwall.com/lists/oss-security/2024/02/09/3" + } + ], + "affected": [ + { + "package": { + "name": "org.apache.solr:solr-core", + "ecosystem": "Maven", + "purl": "pkg:maven/org.apache.solr/solr-core" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "9.0.0" + }, + { + "fixed": "9.3.0" + } + ] + } + ], + "versions": [ + "9.0.0", + "9.1.0", + "9.1.1", + "9.2.0", + "9.2.1" + ], + "database_specific": { + "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-4wxw-42wx-2wfx/GHSA-4wxw-42wx-2wfx.json" + } + }, + { + "package": { + "name": "org.apache.solr:solr-core", + "ecosystem": "Maven", + "purl": "pkg:maven/org.apache.solr/solr-core" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "8.10.0" + }, + { + "fixed": "8.11.3" + } + ] + } + ], + "versions": [ + "8.10.0", + "8.10.1", + "8.11.0", + "8.11.1", + "8.11.2" + ], + "database_specific": { + "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-4wxw-42wx-2wfx/GHSA-4wxw-42wx-2wfx.json" + } + } + ], + "schema_version": "1.6.0" + } + ] +} diff --git a/xwiki-platform-core/xwiki-platform-lib-a/src/main/node/package.json b/xwiki-platform-core/xwiki-platform-lib-a/src/main/node/package.json index fd3b2557a856..873a2e4f8603 100644 --- a/xwiki-platform-core/xwiki-platform-lib-a/src/main/node/package.json +++ b/xwiki-platform-core/xwiki-platform-lib-a/src/main/node/package.json @@ -9,8 +9,7 @@ } }, "devDependencies": { - "@types/node": "20.11.17", - "typescript": "^5.3.3", + "typescript": "5.3.3", "vite": "5.1.1", "xwiki-platform-tool-node-tsconfig": "workspace:*", "xwiki-platform-tool-node-viteconfig": "workspace:*" diff --git a/xwiki-platform-core/xwiki-platform-lib-b/src/main/node/package.json b/xwiki-platform-core/xwiki-platform-lib-b/src/main/node/package.json index 93312c717624..9872020678e8 100644 --- a/xwiki-platform-core/xwiki-platform-lib-b/src/main/node/package.json +++ b/xwiki-platform-core/xwiki-platform-lib-b/src/main/node/package.json @@ -1,26 +1,17 @@ { "name": "xwiki-platform-lib-b", - "version": "1.0.0", - "description": "", "type": "module", "types": "dist/main.d.ts", - "scripts": { - "build": "tsc --noEmit && vite build" - }, "exports": { ".": { "default": "dist/main.umd.cjs", "types": "dist/main.dts" } }, - "keywords": [], - "author": "", - "license": "ISC", "peerDependencies": { "xwiki-platform-lib-a": "workspace:*" }, "devDependencies": { - "@types/node": "20.11.17", "typescript": "5.3.3", "vite": "5.1.1", "xwiki-platform-tool-node-tsconfig": "workspace:*",