Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!
CVE-2024-8309 — Proof-of-concept demonstrating prompt injection in Langchain's GraphCypherQAChain leading to SQL injection in Neo4j databases. Includes Docker-based setup with FastAPI backend and Streamlit frontend for educational testing. | Kitploit
Proof-of-concept demonstrating prompt injection in Langchain's GraphCypherQAChain leading to SQL injection in Neo4j databases. Includes Docker-based setup with FastAPI backend and Streamlit frontend for educational testing.
Proof of Concept for Langchain CVE-2024–8309 Vulnerability
Overview
This setup demonstrates a proof of concept for the prompt injection vulnerability in the GraphCypherQAChain class that allows SQL injection in a Neo4j database.
Components:
Neo4j Database: Runs Neo4j.
Backend (FastAPI): Interacts with Neo4j using Langchain.
Frontend (Streamlit): Simple interface to interact with the backend.