smartbear / testengine-cli Goto Github PK
View Code? Open in Web Editor NEWNode based command line interface for ReadyAPI TestEngine.
License: Apache License 2.0
Node based command line interface for ReadyAPI TestEngine.
License: Apache License 2.0
a glob matcher in javascript
Library home page: https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz
Dependency Hierarchy:
Found in base branch: master
A vulnerability was found in the minimatch package. This flaw allows a Regular Expression Denial of Service (ReDoS) when calling the braceExpand function with specific arguments, resulting in a Denial of Service.
Publish Date: 2022-10-17
URL: CVE-2022-3517
Base Score Metrics:
Create, read and edit .zip files with JavaScript http://stuartk.com/jszip
Library home page: https://registry.npmjs.org/jszip/-/jszip-3.2.2.tgz
Path to dependency file: testengine-cli/package.json
Path to vulnerable library: testengine-cli/node_modules/jszip/package.json
Dependency Hierarchy:
Found in base branch: master
This affects the package jszip before 3.7.0. Crafting a new zip file with filenames set to Object prototype values (e.g proto, toString, etc) results in a returned object with a modified prototype instance.
Publish Date: 2021-07-25
URL: CVE-2021-23413
Base Score Metrics:
Type: Upgrade version
Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23413
Release Date: 2021-07-25
Fix Resolution: jszip - 3.7.0
Create, read and edit .zip files with JavaScript http://stuartk.com/jszip
Library home page: https://registry.npmjs.org/jszip/-/jszip-3.2.2.tgz
Path to dependency file: testengine-cli/package.json
Path to library: testengine-cli/node_modules/jszip/package.json
Dependency Hierarchy:
Found in HEAD commit: 73aa2a4fbab4acaea5cd48377338fdcb7e29a2ae
Found in base branch: master
GPL 3.0
License Reference File: https://www.npmjs.com/package/jszip/v/3.2.2
MIT
License Reference File: https://index.whitesourcesoftware.com/gri/app/reader/resource/content/asString/8c7e37f8-7160-4b66-9896-eedf0a043961
⛔ License Policy Violation - No GPL
When using composite projects, testengine-cli is unable to package the project files properly. When trying to resolve the paths to files to package into a zip file, testengine-cli will produce the following error:
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
It seems to be because when parsing the composite project files, testengine-cli does not set resourceRoot
attribute, which is necessary for determining the path to any files.
This is in contrast to non-composite projects which do set resourceRoot
and are able to locate and package external files correctly.
Smartbear advises exporting a .zip file manually from ReadyAPI to work around this, but this is impractical in CI environments where each commit expects tests to be run, and a committed zip file can easily become out of sync with the actual tests and interferes with normal git workflows.
Instead, we are working around this by adding the following patch to bin/readyapi_project.js
, in the parseComposite
method, to use the same logic the parse
method uses to find the resourceRoot
of the project:
diff --git a/bin/readyapi_project.js b/bin/readyapi_project.js
index 7af487f..0cbe5e1 100644
--- a/bin/readyapi_project.js
+++ b/bin/readyapi_project.js
@@ -71,6 +71,12 @@ module.exports.parseComposite = function (pathname) {
jsonProject['con:soapui-project']['con:testSuite'] = getCompositeTestSuites(pathname, jsonProject);
result = postProcessStructure(jsonProject);
result['name'] = jsonProject['con:soapui-project']['attr']['@_name'];
+
+ let resourceRoot = path.dirname(pathname);
+ if ( ('@_resourceRoot' in jsonProject['con:soapui-project']['attr']) && (jsonProject['con:soapui-project']['attr']['@_resourceRoot'].length > 0))
+ resourceRoot = jsonProject['con:soapui-project']['attr']['@_resourceRoot'];
+ result['resourceRoot'] = resourceRoot;
+
result['projectFiles'] = jsonProject['projectFiles'];
return result
};
JavaScript library for DOM operations
Library home page: https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js
Path to dependency file: testengine-cli/node_modules/superagent/docs/tail.html
Path to vulnerable library: testengine-cli/node_modules/superagent/docs/tail.html
Dependency Hierarchy:
Found in HEAD commit: 046e1626744716b2a2457a5e6f3b16e254fdd66a
In jQuery versions greater than or equal to 1.0.3 and before 3.5.0, passing HTML containing elements from untrusted sources - even after sanitizing it - to one of jQuery's DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code. This problem is patched in jQuery 3.5.0.
Publish Date: 2020-04-29
URL: CVE-2020-11023
Base Score Metrics:
Type: Upgrade version
Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11023
Release Date: 2020-04-29
Fix Resolution: jquery - 3.5.0
JavaScript library for DOM operations
Library home page: https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js
Path to dependency file: testengine-cli/node_modules/superagent/docs/tail.html
Path to vulnerable library: testengine-cli/node_modules/superagent/docs/tail.html
Dependency Hierarchy:
Found in HEAD commit: 046e1626744716b2a2457a5e6f3b16e254fdd66a
In jQuery versions greater than or equal to 1.2 and before 3.5.0, passing HTML from untrusted sources - even after sanitizing it - to one of jQuery's DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code. This problem is patched in jQuery 3.5.0.
Publish Date: 2020-04-29
URL: CVE-2020-11022
Base Score Metrics:
Type: Upgrade version
Origin: https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/
Release Date: 2020-04-29
Fix Resolution: jQuery - 3.5.0
The TestEngine API supports sending a JSON file to override project, suite, and case properties at runtime, as documented here: https://support.smartbear.com/testengine/docs/how-to/run-test.html
The CLI should support including a properties file when running tests, e.g. with a --properties <file>
option in the run
command.
This issue provides visibility into Renovate updates and their statuses. Learn more
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
JavaScript library for DOM operations
Library home page: https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js
Path to dependency file: testengine-cli/node_modules/superagent/docs/tail.html
Path to vulnerable library: testengine-cli/node_modules/superagent/docs/tail.html
Dependency Hierarchy:
Found in HEAD commit: 046e1626744716b2a2457a5e6f3b16e254fdd66a
jQuery before 3.4.0, as used in Drupal, Backdrop CMS, and other products, mishandles jQuery.extend(true, {}, ...) because of Object.prototype pollution. If an unsanitized source object contained an enumerable proto property, it could extend the native Object.prototype.
Publish Date: 2019-04-20
URL: CVE-2019-11358
Base Score Metrics:
Type: Upgrade version
Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-11358
Release Date: 2019-04-20
Fix Resolution: 3.4.0
Higher-order functions and common patterns for asynchronous code
Library home page: https://registry.npmjs.org/async/-/async-2.6.3.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/async/package.json
Dependency Hierarchy:
Found in base branch: master
In Async before 2.6.4 and 3.x before 3.2.2, a malicious user can obtain privileges via the mapValues() method, aka lib/internal/iterator.js createObjectIterator prototype pollution.
Publish Date: 2022-04-06
URL: CVE-2021-43138
Base Score Metrics:
Type: Upgrade version
Origin: https://nvd.nist.gov/vuln/detail/CVE-2021-43138
Release Date: 2022-04-06
Fix Resolution: 2.6.4
Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js
Library home page: https://registry.npmjs.org/ws/-/ws-6.2.1.tgz
Path to dependency file: testengine-cli/package.json
Path to vulnerable library: testengine-cli/node_modules/ws/package.json
Dependency Hierarchy:
Found in HEAD commit: 73aa2a4fbab4acaea5cd48377338fdcb7e29a2ae
Found in base branch: master
ws is an open source WebSocket client and server library for Node.js. A specially crafted value of the Sec-Websocket-Protocol
header can be used to significantly slow down a ws server. The vulnerability has been fixed in [email protected] (websockets/ws@00c425e). In vulnerable versions of ws, the issue can be mitigated by reducing the maximum allowed length of the request headers using the --max-http-header-size=size
and/or the maxHeaderSize
options.
Publish Date: 2021-05-25
URL: CVE-2021-32640
Base Score Metrics:
Type: Upgrade version
Origin: GHSA-6fc8-4gx4-v693
Release Date: 2021-05-25
Fix Resolution: ws - 7.4.6
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.