Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
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 applicationsUpgrade asyncssh to version 2.24.2 or higher.
Affected versions of this package are vulnerable to Exposure of Sensitive System Information to an Unauthorized Control Sphere via SSHConfig._expand_val when an OpenSSH client config file contains a ProxyCommand using the %h, %n, or %r tokens. Host and user names passed to connect() are substituted into the command string before it is split into arguments, so a name containing whitespace or quotes can inject additional arguments into the proxy command. In versions 2.20.0 through 2.24.1, ${NAME} environment variable references inside a substituted name are also expanded, allowing process environment variables such as credentials to be placed into the proxy command's arguments and potentially sent to a remote system. The proxy program runs locally as the user running the application before any SSH connection is established.
Config of the account that runs the application:
Host *.corp.test
ProxyCommand prog --target %h --port %p --login %r
Call:
await asyncssh.connect('x --injected-option=1 y.corp.test', username='deploy')
Arguments received by `prog`:
--target x --injected-option=1 y.corp.test --port 22 --login deploy
A user name containing a space does the same through `%r`, and a host name such as `x${SECRET}.corp.test` passes the value of the `SECRET` environment variable to `prog`.