mukul975/anthropic-cybersecurity-skills/performing-second-order-sql-injection
Claude Code and agent skill by mukul975/anthropic-cybersecurity-skills
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Detect and exploit second-order SQL injection vulnerabilities where malicious
Install
npx vskill@latest install mukul975/anthropic-cybersecurity-skills/performing-second-order-sql-injectionSKILL.md
The same SKILL.md was published earlier as mukul975/anthropic-cybersecurity-skills/performing-second-order-sql-injection.
Performing Second-Order SQL Injection
When to Use
- When first-order SQL injection testing reveals proper input sanitization at storage time
- During penetration testing of applications with user-generated content stored in databases
- When testing multi-step workflows where stored data feeds subsequent database queries
- During assessment of admin panels that display or process user-submitted data
- When evaluating stored procedure execution paths that use previously stored data
Prerequisites
- Burp Suite Professional for request tracking across application flows
- SQLMap with second-order injection support (--second-url flag)
- Understanding of SQL injection fundamentals and blind extraction techniques
- Two or more application functions (one for storing data, another for triggering execution)
- Database error message monitoring or blind technique knowledge
- Multiple user accounts for testing stored data across different contexts
Workflow
Step 1 — Identify Storage and Trigger Points
Step 2 — Inject Payloads via Storage Points
Step 3 — Trigger Execution of Stored Payloads
Step 4 — Use SQLMap for Second-Order Injection
Step 5 — Blind Second-Order Extraction
Step 6 — Escalate to Full Database Compromise
Key Concepts
| Concept | Description | |
|---|---|---|
| Second-Order Injection | SQL payload stored safely, then executed unsafely in a later operation | |
| Storage Point | Application function where malicious input is saved to the database | |
| Trigger Point | Separate function that retrieves stored data and uses it in an unsafe query | |
| Trusted Data Assumption | Developer assumes database-stored data is safe, skipping parameterization | |
| Stored Procedure Chains | Injection through stored procedures that use previously saved user data | |
| Deferred Execution | Payload may not execute until hours or days after initial storage | |
| Cross-Context Injection | Data stored by one user triggers execution in another user's context |
Tools & Systems
| Tool | Purpose | |
|---|---|---|
| SQLMap | Automated SQL injection with --second-url support for second-order attacks | |
| Burp Suite | Request tracking and comparison across storage and trigger endpoints | |
| OWASP ZAP | Automated scanning with injection detection | |
| Commix | Automated command injection tool supporting second-order techniques | |
| Custom Python scripts | Building automated storage-and-trigger exploitation chains | |
| DBeaver/DataGrip | Direct database access for verifying stored payloads |
Common Scenarios
- Username-Based Attack — Register with a SQL injection payload as username; the payload executes when an admin views the user list
- Password Change Exploitation — Store injection in username; when changing password, the application uses the stored username in an unsafe UPDATE query
- Report Generation Attack — Inject payload in stored data fields; triggering report generation uses stored data in aggregate queries
- Cross-User Injection — Inject payload in a shared data field (comments, reviews) that triggers when another user or admin processes the data
- Export Function Exploit — Inject payload in profile data that triggers during CSV/PDF export operations
Output Format
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/performing-second-order-sql-injection/SKILL.md
Popularity
- Repository stars
- 14,872
- Repository forks
- 1,748
- 7-day trend score
- 48
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mukul975/anthropic-cybersecurity-skills/performing-second-order-sql-injection)