-
-
Notifications
You must be signed in to change notification settings - Fork 59
Description
Goal
Add a foundational lesson on SQL Injection (SQLi) to expand the repository's coverage into the critical domain of Web Application Hacking. This is a necessary progression from the existing network and password-cracking modules.
Rationale for this lesson:
This addition closes a significant gap in the tutorial series. While network security and password cracking are essential, Web Application vulnerabilities are the most common initial access vectors in the real world. A detailed lesson on SQLi provides a crucial stepping stone into web pen-testing methodologies, preparing learners for more complex topics like XSS, CSRF, and advanced application security.
I will ensure all examples are non-malicious and follow the ethical guidelines set forth in the repository's contributing section.
Lesson Details:
File Name: lesson-sql-injection.md
Target Audience: Beginner to Intermediate. Students who understand basic networking and have a conceptual grasp of databases.
Key Topics to Cover:
-What is SQL Injection?
-Explanation of the attack vector and its impact.
-The role of the database (MySQL, PostgreSQL, etc.) in a web application.
Types of SQLi
-In-Band SQLi: Error-based and Union-based attacks.
-Inferential (Blind) SQLi: Boolean-based and Time-based attacks.
-Practical Demonstration (with Safe Code Examples)
-Illustrating vulnerable PHP/Python code snippets.
-Step-by-step example of a basic authentication bypass (' OR '1'='1).
-Brief introduction to using sqlmap (as an advanced tool).
-Defense and Prevention (The Ethical Hacking Focus)
-Parametrized Queries (Prepared Statements): The primary defense mechanism.
-Input Validation and Escaping.
-Principle of Least Privilege for database accounts.
Additional
Project Admin: @amandewatnitrr
Please review this proposal and assign this issue to me as a part of my HACKTOBERFEST 2025 contributions.
Thank You!