Description
llama-index-tools-requests through 0.8.0 contains a URL parser differential vulnerability in RequestsToolSpec that allows attackers to redirect per-domain secret headers by embedding a backslash in URLs. Attackers can use prompt injection or user-supplied URLs so urlparse() matches a trusted hostname while requests connects to an attacker host, leaking Authorization or API key headers.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| run-llama | llama-index-tools-requests | 0 ≤0.8.0 | — |
References
- https://github.com/run-llama/llama_index/blob/890d87d30b0498687a3005b3307e3398d83fbca9/llama-index-integrations/tools/llama-index-tools-requests/llama_index/tools/requests/base.py#L189-L197
- https://github.com/run-llama/llama_index/blob/890d87d30b0498687a3005b3307e3398d83fbca9/llama-index-integrations/tools/llama-index-tools-requests/llama_index/tools/requests/base.py#L51-L62
- https://www.vulncheck.com/advisories/llama-index-tools-requests-through-0.8.0-credential-leak-via-backslash-url-parser-differential