5 ms·
A small bug report: If I enter 0 as an input number in one of the commands, I get a Javascript stack trace in the console :] TypeError: blockMap[arg].value
by tux3 5y ago
A small bug report: If I enter 0 as an input number in one of the commands, I get a Javascript stack trace in the console :]
TypeError: blockMap[arg].value.replace is not a function
at /home/ubuntu/unix50/web/src/webserver.js:1032:182
at Array.map (<anonymous>)
at /home/ubuntu/unix50/web/src/webserver.js:1032:50
at Array.forEach (<anonymous>)
at buildUnixCommandVertical (/home/ubuntu/unix50/web/src/webserver.js:1025:18)
at buildUnixCommand (/home/ubuntu/unix50/web/src/webserver.js:920:20)
at /home/ubuntu/unix50/web/src/webserver.js:1042:19
at Layer.handle [as handle_request] (/home/ubuntu/unix50/web/src/node_modules/express/lib/router/layer.js:95:5)
at next (/home/ubuntu/unix50/web/src/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/home/ubuntu/unix50/web/src/node_modules/express/lib/router/route.js:112:3)
Edit: ooh and it's vulnerable to shell command injection... and the VM has internet access. Problem reported.