{"id":29542499,"url":"https://github.com/dhiraviyasundaram/sql-injection-demo","last_synced_at":"2026-05-03T23:36:39.487Z","repository":{"id":302117451,"uuid":"1011312301","full_name":"DHIRAVIYASUNDARAM/sql-injection-demo","owner":"DHIRAVIYASUNDARAM","description":"A Flask app demonstrating SQL Injection vulnerability and its prevention using parameterized queries.","archived":false,"fork":false,"pushed_at":"2025-06-30T16:28:32.000Z","size":78,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-30T17:39:24.555Z","etag":null,"topics":["demonstration","education","flask","parameterized-queries","python","security","sql-injection","sqlite","vulnerability","web-security"],"latest_commit_sha":null,"homepage":"http://127.0.0.1:5000/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DHIRAVIYASUNDARAM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-30T16:10:27.000Z","updated_at":"2025-06-30T16:31:49.000Z","dependencies_parsed_at":"2025-06-30T17:51:51.572Z","dependency_job_id":null,"html_url":"https://github.com/DHIRAVIYASUNDARAM/sql-injection-demo","commit_stats":null,"previous_names":["dhiraviyasundaram/sql-injection-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DHIRAVIYASUNDARAM/sql-injection-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHIRAVIYASUNDARAM%2Fsql-injection-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHIRAVIYASUNDARAM%2Fsql-injection-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHIRAVIYASUNDARAM%2Fsql-injection-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHIRAVIYASUNDARAM%2Fsql-injection-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DHIRAVIYASUNDARAM","download_url":"https://codeload.github.com/DHIRAVIYASUNDARAM/sql-injection-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DHIRAVIYASUNDARAM%2Fsql-injection-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265598359,"owners_count":23795312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["demonstration","education","flask","parameterized-queries","python","security","sql-injection","sqlite","vulnerability","web-security"],"created_at":"2025-07-17T11:03:14.924Z","updated_at":"2026-05-03T23:36:39.075Z","avatar_url":"https://github.com/DHIRAVIYASUNDARAM.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛡️ SQL Injection Demo\n\nThis repository demonstrates how SQL Injection attacks can be exploited in insecure web applications using a basic PHP-MySQL login system. It is intended strictly for **educational purposes** to help learners understand security flaws and how to prevent them.\n\n---\n\n## ⚠️ Disclaimer\n\nThis project is for **educational use only**. Do **not** use these techniques on real systems without proper authorization.\n\n---\n\n## 🚀 Getting Started\n\n### 🛠️ Prerequisites\n\n- PHP and MySQL (e.g., XAMPP, WAMP, MAMP)\n- Web browser\n\n---\n\n### ⚙️ Setup Instructions\n\n1. **Clone the repository**\n\n   ```bash\n   git clone https://github.com/DHIRAVIYASUNDARAM/sql-injection-demo.git\n   ```\n\n2. **Import the Database**\n\n   - Open **phpMyAdmin** (or MySQL command line).\n   - Create a new database named, for example: `sqldemo`.\n   - Click **Import** and upload the `db.sql` file from this repository.\n\n3. **Deploy the App Locally**\n\n   - Move the `sql-injection-demo` folder into your web server’s root directory:\n     - For XAMPP: `C:/xampp/htdocs/`\n     - For WAMP: `C:/wamp64/www/`\n   - Launch **XAMPP** or your preferred stack.\n   - Start both **Apache** and **MySQL** services.\n\n4. **Open the application in your browser**\n\n   ```\n   http://localhost/sql-injection-demo/\n   ```\n\n---\n\n## 🧪 Demonstrating the SQL Injection\n\nTo demonstrate the vulnerability, try entering this input in the login form:\n\n```sql\n' OR '1'='1\n```\n\nThis will bypass authentication and log you in without valid credentials, showcasing how SQL injection works.\n\n---\n\n## 🧠 Learning Outcomes\n\n- Understand how SQL Injection compromises web apps.\n- Learn the dangers of using unsanitized user input in SQL queries.\n- Recognize the importance of secure coding practices like input validation and prepared statements.\n\n---\n\n## 🎥 Demo Video\n\n▶️ **Watch the Screen Recording Demo of the College Club Website**\n\n[![Watch Video](https://img.shields.io/badge/Click%20to%20Watch-Demo%20Video-blue?style=for-the-badge\u0026logo=google-drive)](https://drive.google.com/file/d/1riCW5RdVJGa6UnU25Lhpl5TJjX3EnYoc/view?usp=sharing)\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhiraviyasundaram%2Fsql-injection-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhiraviyasundaram%2Fsql-injection-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhiraviyasundaram%2Fsql-injection-demo/lists"}