The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"id": "badr500000000001",
"name": "bad-r5-sql-injection",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "r5",
"responseMode": "responseNode",
"options": {}
},
"id": "c5000000-0000-4000-8000-000000000001",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2.1,
"position": [
0,
0
]
},
{
"parameters": {
"operation": "executeQuery",
"query": "SELECT * FROM orders WHERE id = '{{ $json.body.order_id }}'",
"options": {}
},
"id": "c5000000-0000-4000-8000-000000000002",
"name": "Lookup",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.7,
"position": [
220,
0
]
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ ({ status: 'ok' }) }}",
"options": {
"responseCode": 200
}
},
"id": "c5000000-0000-4000-8000-000000000003",
"name": "Respond",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.5,
"position": [
440,
0
]
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Lookup",
"type": "main",
"index": 0
}
]
]
},
"Lookup": {
"main": [
[
{
"node": "Respond",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1",
"errorWorkflow": "errhandler0000001"
},
"active": false
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
bad-r5-sql-injection. Uses postgres. Webhook trigger; 3 nodes.
Source: https://github.com/jarrod-wright/n8n-workflow-hardening/blob/main/linter/fixtures/bad/r5-sql-injection.workflow.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Stream Start Workflow. Uses httpRequest, postgres. Webhook trigger; 7 nodes.
Text-to-SQL: Check Status. Uses postgres. Webhook trigger; 5 nodes.
Register Company Workflow. Uses start, postgres. Webhook trigger; 4 nodes.