Shared Flaw: Mixing Instructions with Data

Both prompt injection and SQL injection exploit the fundamental design flaw of concatenating untrusted user input directly with trusted system instructions or code, allowing attackers to manipulate the system's intended behavior.

Sources

Open the full topic