Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
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 Command Injection vulnerabilities in an interactive lesson.
Start learningUpgrade bitcoinrb to version 1.12.0 or higher.
bitcoinrb is an implementation of Bitcoin Protocol for Ruby
Affected versions of this package are vulnerable to Arbitrary Command Injection via the send function in rpc/http_server.rb, which runs as part of the experimental SPV node feature. An attacker can execute arbitrary system commands by supplying malicious values for the command and args parameters in a POST request.
curl -X POST http://127.0.0.1:18443 -H 'Content-Type: application/json' -d '{"method":"eval","params":["File.write(\"/tmp/pwned\",\"owned\")"]}'