[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71H476XB498758WJ78VK8HB":3,"skill-same:01M71H476XB498758WJ78VK8HB":56},{"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":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":24,"linkOnly":25,"markdownContent":26,"markdownBody":27,"frontMatter":28,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":14,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M71H476XB498758WJ78VK8HB","webapp-injection-sqli-sqlexploit",null,"Webapp Injection Sqli Sqlexploit.","DCx7C5\u002Fai-marketplace","DCx7C5","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42419559?v=4","01M71C01G2AZV3NTNGWAWSHJPP","DC","01M71C01GQW6G50S2BYMS7PP3E",0,"MIT","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-injection-sqli-sqlexploit\u002FSKILL.md",[],[19,20,21,22,23],"webapp","injection","sqli","webapp injection sqli sqlexploit","cybersecurity","2026-11-10 10:12:30",false,"---\nname: webapp-injection-sqli-sqlexploit\ndescription: \"Webapp Injection Sqli Sqlexploit.\"\ndomain: cybersecurity\n---\n\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","|\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,"domain":23,"description":7},"main","a91f1293287ffa9f4f1b8f486cd6e835a1568c84","skills\u002Fwebapp-injection-sqli-sqlexploit","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace","https:\u002F\u002Fgithub.com\u002FDCx7C5","#Python","2026-09-01 11:21:00",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add DCx7C5\u002Fai-marketplace --skill webapp-injection-sqli-sqlexploit",{"tool":42,"command":43},"bunx","bunx skills add DCx7C5\u002Fai-marketplace --skill webapp-injection-sqli-sqlexploit",{"tool":45,"command":46},"pnpm","pnpm dlx skills add DCx7C5\u002Fai-marketplace --skill webapp-injection-sqli-sqlexploit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-injection-sqli-sqlexploit\u002FSKILL.md",true,[50],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"index.json","REFERENCE","参考文档",528,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-injection-sqli-sqlexploit\u002Findex.json",[57,67,92,115,137,159],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":61,"licenseFileUrl":62,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":66},"01M73MDK3NT5XHNYTQ5P5172V9","devel-jb-algorithmic-art","- Embed algorithms inline in the HTML artifact (don't create separate .","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":24},"01M71HAPZ01KQ30RKTB0FFSQ05","services-wmi-persistence-detect","Detect WMI event subscription persistence by enumerating ActiveScriptEventConsumer, CommandLineEventConsumer, and permanent subscriptions in the WMI repository.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fpersistence\u002Fdetect\u002FSKILL.md",[],[74,75,76,77,78,79,80,23,81,82,83,84,85,86,87,88,89,90,91],"services","detect","services wmi persistence detect","wmi","persistence","process-forensics","process","forensics","t1546.003","event-subscription","subscription","repository","commandline-consumer","subscriptions","event","activescript","cm","de",{"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":24},"01M71HAK6JTTTS229T17WJMMCG","services-wmi-exec-exploit","Perform lateral movement across Windows networks using WMI-based remote execution techniques including Impacket wmiexec.py, CrackMapExec, and native WMI commands for stealthy post-exploitation during red team engagements.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fexec\u002Fexploit\u002FSKILL.md",[],[99,77,100,74,101,102,103,104,105,23,106,107,108,109,110,111,112,113,91,114],"exec","services wmi exec exploit","exploit","across","Bash","analysis","team","traffic","remote","crackmapexec","Impacket","lateral-movement","read","lateral movement","command","native",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":24},"01M71HAG6MHKNQV8KDZKMT4886","registry-artifact-extract","Extract and analyze Windows Registry hives to uncover user activity, installed software, autostart entries, and evidence of system compromise.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fregistry\u002Fartifact\u002Fextract\u002FSKILL.md",[],[122,123,124,125,126,127,128,129,130,131,111,91,132,133,104,134,103,23,135,136],"extract","registry artifact extract","registry","artifact","digital-forensics","sonnet","regripper","windows-registry","evidence-collection","software","uncover","analyze","collection","artifact-analysis","activity",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":24},"01M71HACR4A8XTWTTSXK4124AA","processes-token-impersonate-detect","Detect Windows token impersonation and privilege abuse including SeImpersonatePrivilege exploitation via Potato attacks and token stealing techniques.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Ftoken\u002Fimpersonate\u002Fdetect\u002FSKILL.md",[],[144,145,146,75,23,147,90,148,149,150,79,91,151,152,153,154,155,156,157,158],"processes","token","processes token impersonate detect","techniques","escalation","windows","attacks","via","impersonation","potato","exploitation","printspoofer","token-impersonation","seimpersonate","privilege-escalation",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":24},"01M71HAABSB4Z6QFSXEG00R4RK","processes-thread-injection-detect","Detect Windows thread injection techniques including CreateRemoteThread, QueueUserAPC, NtCreateThreadEx, and thread hijacking via process memory analysis.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Fthread\u002Finjection\u002Fdetect\u002FSKILL.md",[],[166,144,20,75,167,168,80,91,151,169,170,171,104,79,23,147,172,90,173,149],"thread","processes thread injection detect","thread-injection","nt-api","apc-injection","api","process-injection","memory"]