
Educational CTF demo demonstrating command execution via Git hooks by abusing core.hooksPath in automation workflows. Highlights local hook execution and repository-contained hooks.
⚠️ This repository is for educational and CTF demonstration purposes only.
An automation platform (e.g., n8n) uses Git operations as part of a workflow.
The workflow allows arbitrary Git configuration via git config.
An attacker-controlled workflow sets:
core.hooksPath=hooks/
Git will then execute hooks from the repository directory.
Demonstrate that:
core.hooksPath can lead to command executionNo harmful commands are included.