-
Notifications
You must be signed in to change notification settings - Fork 305
Closed
Description
Tested on 5.7.8 and On 5.7.9-beta running in a docker container.
Fetching the URL https://localhost:8443/sharing (with no parameters) causes the server to crash with the following output on the console:
solid | TypeError: Invalid URL
solid | at new URL (node:internal/url:775:36)
solid | at SharingRequest.getAppUrl (/usr/src/app/lib/requests/sharing-request.js:156:12)
solid | at get (/usr/src/app/lib/requests/sharing-request.js:70:28)
solid | at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
solid | at next (/usr/src/app/node_modules/express/lib/router/route.js:144:13)
solid | at Route.dispatch (/usr/src/app/node_modules/express/lib/router/route.js:114:3)
solid | at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
solid | at /usr/src/app/node_modules/express/lib/router/index.js:284:15
solid | at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:346:12)
solid | at next (/usr/src/app/node_modules/express/lib/router/index.js:280:10) {
solid | code: 'ERR_INVALID_URL',
solid | input: 'undefined'
solid | }
It looks like the sharing-request handler is missing input validation to make sure all the expected parameters are present.
Metadata
Metadata
Assignees
Labels
No labels