LLM05:2023 - SSRF Vulnerabilities

Description:
Server-side Request Forgery (SSRF) vulnerabilities occur when an attacker exploits an LLM to perform unintended requests or access restricted resources, such as internal services, APIs, or data stores.

Common SSRF Vulnerabilities:

How to Prevent:

Example Attack Scenarios: Scenario #1: An attacker crafts a prompt that instructs the LLM to make a request to an internal service, bypassing access controls and gaining unauthorized access to sensitive information.

Scenario #2: A misconfiguration in the application’s security settings allows the LLM to interact with a restricted API, and an attacker manipulates the LLM to access or modify sensitive data.

By understanding and addressing the risks associated with SSRF vulnerabilities, developers can better protect their LLM implementations and ensure the safety and security of their systems.