-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delo 4068 cloudinary web speed test server package json remote code e…
…xecution rce (#61) * updated deps, minor adjustments and improvements * paackage name change to avoid confusion (https://security.snyk.io/package/npm/pagespeed-server)
- Loading branch information
1 parent
8b97e62
commit 095dd8d
Showing
6 changed files
with
413 additions
and
547 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,35 @@ | ||
{ | ||
"name": "pagespeed-server", | ||
"name": "web-speed-test-server", | ||
"version": "1.1.2", | ||
"private": true, | ||
"scripts": { | ||
"test": "mocha", | ||
"start": "node start.js" | ||
"start": "node start.js", | ||
"postinstall": "patch-package" | ||
}, | ||
"dependencies": { | ||
"async": "^3.2.4", | ||
"body-parser": "~1.20.2", | ||
"bytes": "^3.1.2", | ||
"cloudinary": "https://github.com/cloudinary/cloudinary_npm.git#analyze_api_legacy", | ||
"cloudinary": "1.41.0", | ||
"config": "^3.3.9", | ||
"cookie-parser": "~1.4.6", | ||
"debug": "~4.3.4", | ||
"dotenv": "^16.1.4", | ||
"dotenv": "^16.3.1", | ||
"express": "~4.18.2", | ||
"got": "^11.8.6", | ||
"got": "^13.0.0", | ||
"lodash": "^4.17.21", | ||
"rollbar": "^2.26.1", | ||
"rollbar": "^2.26.2", | ||
"valid-url": "^1.0.9" | ||
}, | ||
"devDependencies": { | ||
"chai": "^4.3.7", | ||
"chai": "^4.3.10", | ||
"chai-http": "^4.4.0", | ||
"husky": "^8.0.3", | ||
"mocha": "^10.2.0", | ||
"nock": "^13.3.1", | ||
"sinon": "^15.1.2", | ||
"nock": "^13.3.3", | ||
"patch-package": "^8.0.0", | ||
"sinon": "^16.1.0", | ||
"sinon-chai": "^3.7.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff --git a/node_modules/cloudinary/lib-es5/utils/index.js b/node_modules/cloudinary/lib-es5/utils/index.js | ||
index 35f9385..76fd24e 100644 | ||
--- a/node_modules/cloudinary/lib-es5/utils/index.js | ||
+++ b/node_modules/cloudinary/lib-es5/utils/index.js | ||
@@ -437,7 +437,9 @@ function build_upload_params(options) { | ||
accessibility_analysis: utils.as_safe_bool(options.accessibility_analysis), | ||
use_asset_folder_as_public_id_prefix: utils.as_safe_bool(options.use_asset_folder_as_public_id_prefix), | ||
visual_search: utils.as_safe_bool(options.visual_search), | ||
- on_success: options.on_success | ||
+ on_success: options.on_success, | ||
+ /* for internal use only */ | ||
+ analyze: JSON.stringify(options.analyze) | ||
}; | ||
return utils.updateable_resource_params(options, params); | ||
} | ||
diff --git a/node_modules/cloudinary/lib/utils/index.js b/node_modules/cloudinary/lib/utils/index.js | ||
index 47acd25..a3ac938 100644 | ||
--- a/node_modules/cloudinary/lib/utils/index.js | ||
+++ b/node_modules/cloudinary/lib/utils/index.js | ||
@@ -415,7 +415,9 @@ function build_upload_params(options) { | ||
accessibility_analysis: utils.as_safe_bool(options.accessibility_analysis), | ||
use_asset_folder_as_public_id_prefix: utils.as_safe_bool(options.use_asset_folder_as_public_id_prefix), | ||
visual_search: utils.as_safe_bool(options.visual_search), | ||
- on_success: options.on_success | ||
+ on_success: options.on_success, | ||
+ /* for internal use only */ | ||
+ analyze: JSON.stringify(options.analyze) | ||
}; | ||
return utils.updateable_resource_params(options, params); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.