Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Packages in TestScanSyscollectorCases #4997

Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading