AutomationFlowsData & Sheets › Bad R5 Sql Injection

Bad R5 Sql Injection

bad-r5-sql-injection. Uses postgres. Webhook trigger; 3 nodes.

Webhook trigger★☆☆☆☆ complexity3 nodesPostgres
Data & Sheets Trigger: Webhook Nodes: 3 Complexity: ★☆☆☆☆ Added:

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 →

Download .json
{
  "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
}
Pro

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 →

More Data & Sheets workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Data & Sheets

Stream Start Workflow. Uses httpRequest, postgres. Webhook trigger; 7 nodes.

HTTP Request, Postgres
Data & Sheets

05a - Listings Data API. Uses postgres. Webhook trigger; 6 nodes.

Postgres
Data & Sheets

Text-to-SQL: Check Status. Uses postgres. Webhook trigger; 5 nodes.

Postgres
Data & Sheets

Anadir_Cliente. Uses postgres. Webhook trigger; 4 nodes.

Postgres
Data & Sheets

Register Company Workflow. Uses start, postgres. Webhook trigger; 4 nodes.

Start, Postgres