Skip to content

Commit

Permalink
Merge pull request #4997 from wazuh/feature/4991-update-packages-in-T…
Browse files Browse the repository at this point in the history
…estScanSyscollectorCases

Update Packages in `TestScanSyscollectorCases`
  • Loading branch information
davidjiglesias authored Mar 8, 2024
2 parents 20481d5 + 1891d36 commit b8aa493
Show file tree
Hide file tree
Showing 4 changed files with 312 additions and 84 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ All notable changes to this project will be documented in this file.

### Changed

- Update Packages in TestScanSyscollectorCases ([#4997](https://github.com/wazuh/wazuh-qa/pull/4997)) \- (Framework + Tests)
- Reduced test_shutdown_message runtime ([#4986](https://github.com/wazuh/wazuh-qa/pull/4986)) \- (Tests)
- Change e2e vd configuration keystore ([#4952](https://github.com/wazuh/wazuh-qa/pull/4952)) \- (Framework)
- Updating tests after removing references to the legacy vulnerability detector module ([#4872](https://github.com/wazuh/wazuh-qa/pull/4872)) \- (Tests)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@
"macos": {
"amd64": "https://nodejs.org/dist/v17.0.1/node-v17.0.1.pkg",
"arm64v8": "https://nodejs.org/dist/v17.0.1/node-v17.0.1.pkg"
},
"windows": {
"amd64": "https://nodejs.org/dist/v17.0.1/node-v17.0.1-x64.msi"
}
},
"uninstall_name": "node*"
Expand All @@ -318,6 +321,9 @@
"macos": {
"amd64": "https://nodejs.org/dist/v17.1.0/node-v17.1.0.pkg",
"arm64v8": "https://nodejs.org/dist/v17.1.0/node-v17.1.0.pkg"
},
"windows": {
"amd64": "https://nodejs.org/dist/v17.1.0/node-v17.1.0-x64.msi"
}
},
"uninstall_name": "node*"
Expand Down Expand Up @@ -354,6 +360,42 @@
"macos": {
"amd64": "https://nodejs.org/dist/v18.0.0/node-v18.0.0.pkg",
"arm64v8": "https://nodejs.org/dist/v18.0.0/node-v18.0.0.pkg"
},
"windows": {
"amd64": "https://nodejs.org/dist/v18.0.0/node-v18.0.0-x64.msi"
}
},
"uninstall_name": "node*"
},
"node-v18.1.0": {
"package_name": "node",
"package_version": "18.1.0",
"CVE": [
"CVE-2023-38552",
"CVE-2023-32559",
"CVE-2023-32006",
"CVE-2023-32002",
"CVE-2023-30590",
"CVE-2023-30588",
"CVE-2023-30585",
"CVE-2023-30581",
"CVE-2023-23920",
"CVE-2023-23919",
"CVE-2023-23918",
"CVE-2022-43548",
"CVE-2022-35256",
"CVE-2022-35255",
"CVE-2022-32222",
"CVE-2022-32215",
"CVE-2022-32214",
"CVE-2022-32213",
"CVE-2022-32212",
"CVE-2022-3786",
"CVE-2022-3602"
],
"urls": {
"windows": {
"amd64": "https://nodejs.org/dist/v18.1.0/node-v18.1.0-x64.msi"
}
},
"uninstall_name": "node*"
Expand Down Expand Up @@ -482,6 +524,22 @@
},
"uninstall_name": "node*"
},
"node-v20.5.1": {
"package_name": "node",
"package_version": "20.5.1",
"CVE": [
"CVE-2023-44487",
"CVE-2023-39332",
"CVE-2023-39331",
"CVE-2023-38552"
],
"urls": {
"windows": {
"amd64": "https://nodejs.org/dist/v20.5.1/node-v20.5.1-x64.msi"
}
},
"uninstall_name": "node*"
},
"lynx-2.8.8": {
"package_name": "lynx",
"package_version": "2.8.8-0.3.dev15.el7",
Expand Down Expand Up @@ -523,5 +581,187 @@
}
},
"uninstall_name": "firefox*"
},
"mysql-5.5.18": {
"package_name": "mysql",
"package_version": "5.5.18",
"CVE": [
"CVE-2023-22028",
"CVE-2023-22026",
"CVE-2023-22015",
"CVE-2023-22007",
"CVE-2023-21980",
"CVE-2023-21977",
"CVE-2022-21444",
"CVE-2022-21417",
"CVE-2021-22570",
"CVE-2021-2356",
"CVE-2020-15358",
"CVE-2020-14852",
"CVE-2020-14846",
"CVE-2020-14845",
"CVE-2020-14839",
"CVE-2020-14837",
"CVE-2020-14830"
],
"urls": {
"ubuntu": {
"amd64": "https://downloads.mysql.com/archives/get/p/23/file/mysql-5.5.18-debian6.0-x86_64.deb"
}
},
"uninstall_name": "mysql*"
},
"mysql-5.5.19": {
"package_name": "mysql",
"package_version": "5.5.19",
"CVE": [
"CVE-2023-22026",
"CVE-2023-22015",
"CVE-2023-22007",
"CVE-2023-21980",
"CVE-2023-21977",
"CVE-2022-21444",
"CVE-2022-21417",
"CVE-2021-22570",
"CVE-2023-22007",
"CVE-2023-22028",
"CVE-2021-2356",
"CVE-2022-21417",
"CVE-2022-21444",
"CVE-2023-21980",
"CVE-2023-21977"
],
"urls": {
"ubuntu": {
"amd64": "https://downloads.mysql.com/archives/get/p/23/file/mysql-5.5.19-debian6.0-x86_64.deb"
}
},
"uninstall_name": "mysql*"
},
"mysql-5.5.20": {
"package_name": "mysql",
"package_version": "5.5.20",
"CVE": [
"CVE-2023-22028",
"CVE-2023-22026",
"CVE-2023-22015",
"CVE-2023-22007",
"CVE-2023-21980",
"CVE-2023-21977",
"CVE-2022-21444",
"CVE-2022-21417",
"CVE-2021-22570",
"CVE-2021-2356",
"CVE-2020-15358",
"CVE-2020-14852",
"CVE-2020-14846",
"CVE-2020-14845",
"CVE-2020-14839",
"CVE-2020-14837",
"CVE-2020-14830"
],
"urls": {
"ubuntu": {
"amd64": "https://downloads.mysql.com/archives/get/p/23/file/mysql-5.5.20-debian6.0-x86_64.deb"
}
},
"uninstall_name": "mysql*"
},
"mysql-5.5.21": {
"package_name": "mysql",
"package_version": "5.5.21",
"CVE": [
"CVE-2023-22028",
"CVE-2023-22026",
"CVE-2023-22015",
"CVE-2023-22007",
"CVE-2023-21980",
"CVE-2023-21977",
"CVE-2022-21444",
"CVE-2022-21417",
"CVE-2021-22570",
"CVE-2021-2356",
"CVE-2020-15358",
"CVE-2020-14852",
"CVE-2020-14846",
"CVE-2020-14845",
"CVE-2020-14839",
"CVE-2020-14837",
"CVE-2020-14830"
],
"urls": {
"ubuntu": {
"amd64": "https://downloads.mysql.com/archives/get/p/23/file/mysql-5.5.21-debian6.0-x86_64.deb"
}
},
"uninstall_name": "mysql*"
},
"openjdk-1.6.0": {
"package_name": "openjdk",
"package_version": "1.6.0",
"CVE": [
"CVE-2023-21967",
"CVE-2023-21954",
"CVE-2023-21939",
"CVE-2023-21938",
"CVE-2023-21937",
"CVE-2023-21930",
"CVE-2014-2405",
"CVE-2014-1876",
"CVE-2014-0462",
"CVE-2012-5373",
"CVE-2012-2739"
],
"urls": {
"centos": {
"amd64": "https://buildlogs.centos.org/c7.1611.u/java-1.6.0-openjdk/20170112172413/1.6.0.41-1.13.13.1.el7_3.x86_64/java-1.6.0-openjdk-1.6.0.41-1.13.13.1.el7_3.x86_64.rpm"
}
},
"uninstall_name": "*openjdk*"
},
"openjdk-1.7.0": {
"package_name": "openjdk",
"package_version": "1.7.0",
"CVE": [
"CVE-2023-21967",
"CVE-2023-21954",
"CVE-2023-21939",
"CVE-2023-21938",
"CVE-2023-21937",
"CVE-2023-21930",
"CVE-2014-8873",
"CVE-2014-2483",
"CVE-2014-1876",
"CVE-2013-2461",
"CVE-2012-5373",
"CVE-2012-2739"
],
"urls": {
"centos": {
"amd64": "https://buildlogs.centos.org/c7.1611.u/java-1.7.0-openjdk/20170509150838/1.7.0.141-2.6.10.1.el7_3.x86_64/java-1.7.0-openjdk-1.7.0.141-2.6.10.1.el7_3.x86_64.rpm"
}
},
"uninstall_name": "*openjdk*"
},
"openjdk-1.8.0": {
"package_name": "openjdk",
"package_version": "1.8.0",
"CVE": [
"CVE-2023-21967",
"CVE-2023-21954",
"CVE-2023-21939",
"CVE-2023-21938",
"CVE-2023-21937",
"CVE-2023-21930",
"CVE-2021-20264",
"CVE-2014-1876",
"CVE-2012-2739"
],
"urls": {
"centos": {
"amd64": "https://buildlogs.centos.org/c7.1611.u/java-1.8.0-openjdk/20170720203731/1.8.0.141-1.b16.el7_3.x86_64/java-1.8.0-openjdk-1.8.0.141-1.b16.el7_3.x86_64.rpm"
}
},
"uninstall_name": "*openjdk*"
}
}
6 changes: 5 additions & 1 deletion deps/wazuh_testing/wazuh_testing/tools/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,13 @@ def install_package(self, host, url, system='ubuntu'):
host_manager.install_package('my_host', 'http://example.com/package.deb', system='ubuntu')
"""
result = False
extension = '.msi'

if system == 'windows':
result = self.get_host(host).ansible("win_package", f"path={url} arguments=/S", check=False)
if url.lower().endswith(extension):
result = self.get_host(host).ansible("win_package", f"path={url} arguments=/passive", check=False)
else:
result = self.get_host(host).ansible("win_package", f"path={url} arguments=/S", check=False)
elif system == 'ubuntu':
result = self.get_host(host).ansible("apt", f"deb={url}", check=False)
if result['changed'] and result['stderr'] == '':
Expand Down
Loading

0 comments on commit b8aa493

Please sign in to comment.