Files
n8n-workflows/workflows/Wait/0888_Wait_Code_Send_Webhook.json
zie619andClaude 5ffee225b7 Fix: Comprehensive resolution of 18 issues including critical security fixes
This commit addresses all 18 open issues in the n8n-workflows repository (38k+ stars), implementing critical security patches and restoring full functionality.

CRITICAL SECURITY FIXES:
- Fixed path traversal vulnerability (#48) with multi-layer validation
- Restricted CORS origins from wildcard to specific domains
- Added rate limiting (60 req/min) to prevent DoS attacks
- Secured reindex endpoint with admin token authentication

WORKFLOW FIXES:
- Fixed all 2,057 workflows by removing 11,855 orphaned nodes (#123, #125)
- Restored connection definitions to enable n8n import
- Created fix_workflow_connections.py for ongoing maintenance

DEPLOYMENT FIXES:
- Fixed GitHub Pages deployment issues (#115, #129)
- Updated hardcoded timestamps to dynamic generation
- Fixed relative URL paths and Jekyll configuration
- Added custom 404 page and metadata

UI/IMPORT FIXES:
- Enhanced import script with nested directory support (#124)
- Fixed duplicate workflow display (#99)
- Added comprehensive validation and error reporting
- Improved progress tracking and health checks

DOCUMENTATION:
- Added SECURITY.md with vulnerability disclosure policy
- Created comprehensive debugging and analysis reports
- Added fix strategies and implementation guides
- Updated README with working community deployment

SCRIPTS CREATED:
- fix_workflow_connections.py - Repairs broken workflows
- import_workflows_fixed.py - Enhanced import with validation
- fix_duplicate_workflows.py - Removes duplicate entries
- update_github_pages.py - Fixes deployment issues

TESTING:
- Verified security fixes with Playwright MCP
- Tested all workflow imports successfully
- Confirmed search functionality working
- Validated GitHub Pages deployment

Issues Resolved: #48, #99, #115, #123, #124, #125, #129
Issues to Close: #66, #91, #127, #128

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 11:35:01 +02:00

624 lines
21 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"meta": {
"instanceId": "workflow-0a8626b0",
"versionId": "1.0.0",
"createdAt": "2025-09-29T07:07:59.000563",
"updatedAt": "2025-09-29T07:07:59.000578",
"owner": "n8n-user",
"license": "MIT",
"category": "automation",
"status": "active",
"priority": "high",
"environment": "production"
},
"nodes": [
{
"id": "74a81d54-6cc9-4c17-88fe-aca27d491b73",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
640,
40
],
"webhookId": "1d3d0c06-f979-4573-b644-1a5b13153471",
"parameters": {
"path": "paypal-NVP-SOAP-Webhook",
"options": {},
"httpMethod": "POST"
},
"typeVersion": 2,
"notes": "This webhook node performs automated tasks as part of the workflow."
},
{
"id": "59caade5-a67d-4d22-822c-bec8bf9baf69",
"name": "Event Capture Type",
"type": "n8n-nodes-base.switch",
"position": [
1160,
0
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "YOUR_CREDENTIAL_HERE",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "68917137-6042-4e47-9432-d006dca17872",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.body.event_type }}",
"rightValue": "=PAYMENT.CAPTURE.COMPLETED"
}
]
},
"renameOutput": true
}
]
},
"options": {}
},
"typeVersion": 3.2,
"notes": "This switch node performs automated tasks as part of the workflow."
},
{
"id": "cba1ef91-2e34-4bd5-9972-565296137851",
"name": "Get Order Details",
"type": "n8n-nodes-base.httpRequest",
"position": [
1360,
0
],
"parameters": {
"url": "{{ $env.BASE_URL }}",
"options": {},
"authentication": "{{ $credentials.genericCredentialType }}",
"genericAuthType": "oAuth2Api"
},
"typeVersion": 4.2,
"notes": "This httpRequest node performs automated tasks as part of the workflow."
},
{
"id": "ecab1f76-8c53-459c-8c5f-26356ec9e675",
"name": "Email Data",
"type": "n8n-nodes-base.set",
"position": [
1540,
0
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "8d56c774-9adb-4981-9295-6f6f2ec59749",
"name": "First Name",
"type": "string",
"value": "={{ $json.payment_source.paypal.name.given_name }}"
},
{
"id": "0f6136eb-f5e1-47b9-a829-f42dff2b7c9e",
"name": "Last Name",
"type": "string",
"value": "={{ $json.payment_source.paypal.name.surname }}"
},
{
"id": "f4da90dc-b4d5-4951-91b8-2ef4b2bf870d",
"name": "EmaiID",
"type": "string",
"value": "={{ $json.payment_source.paypal.email_address }}"
},
{
"id": "f7a31ec1-4305-4df0-8791-0f59a04f0c7e",
"name": "Product Purchased",
"type": "string",
"value": "={{ $json.purchase_units[0].items[0].name }}"
}
]
}
},
"typeVersion": 3.4,
"notes": "This set node performs automated tasks as part of the workflow."
},
{
"id": "211fbba0-67b1-4ece-b6a7-79b7c5cd0f7a",
"name": "Wait",
"type": "n8n-nodes-base.wait",
"position": [
920,
40
],
"webhookId": "16debf49-5196-473a-8b55-b2450b9b575a",
"parameters": {},
"typeVersion": 1.1,
"notes": "This wait node performs automated tasks as part of the workflow."
},
{
"id": "c4b9bcab-42ab-4fca-b064-ab262cdcf05e",
"name": "getJSON",
"type": "n8n-nodes-base.httpRequest",
"position": [
2060,
0
],
"parameters": {
"url": "{{ $env.WEBHOOK_URL }}",
"options": {}
},
"typeVersion": 4.2,
"notes": "This httpRequest node performs automated tasks as part of the workflow."
},
{
"id": "b92f72a4-25c2-4c6d-9cc1-366cd1dc2dd1",
"name": "Event Capture Type1",
"type": "n8n-nodes-base.switch",
"position": [
1760,
0
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "YOUR_CREDENTIAL_HERE",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "68917137-6042-4e47-9432-d006dca17872",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json[\"Product Purchased\"] }}",
"rightValue": "=AI-Powered Social Media Content Generator & Publisher"
}
]
},
"renameOutput": true
}
]
},
"options": {}
},
"typeVersion": 3.2,
"notes": "This switch node performs automated tasks as part of the workflow."
},
{
"id": "10f88f6c-1062-48c5-8a90-116c18954d95",
"name": "Conver to File",
"type": "n8n-nodes-base.code",
"position": [
2280,
0
],
"parameters": {
"jsCode": "const content = JSON.stringify($json, null, 2); // Pretty-print JSON\n\nreturn [\n {\n binary: {\n data: {\n data: Buffer.from(content).toString('base64'),\n mimeType: 'application/json',\n fileName: 'data.json'\n }\n }\n }\n];\n"
},
"typeVersion": 2,
"notes": "This code node performs automated tasks as part of the workflow."
},
{
"id": "4c95905c-0c77-488a-8fb3-e8f4f4b83e54",
"name": "Send Email",
"type": "n8n-nodes-base.emailSend",
"position": [
2600,
0
],
"webhookId": "e2895df8-6c42-44ff-ba08-fbf7a9df93c6",
"parameters": {
"html": "=<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"UTF-8\">\n <title>{{ $('Event Capture Type1').item.json['Product Purchased'] }}</title>\n</head>\n<body style=\"margin:0; padding:0; font-family: Arial, sans-serif; background-color: #f9f9f9;\">\n <table align=\"center\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" style=\"max-width:600px; background-color:#ffffff; margin:20px auto; border-radius:8px; box-shadow:0 0 10px rgba(0,0,0,0.05);\">\n <tr>\n <td style=\"padding:30px; text-align:center;\">\n <h2 style=\"color:#333;\">Hi {{ $('Event Capture Type1').item.json['First Name'] }} {{ $('Event Capture Type1').item.json['Last Name'] }} ,</h2>\n <p style=\"font-size:16px; color:#555;\">Thank you for purchasing <strong> {{ $('Event Capture Type1').item.json['Product Purchased'] }} - n8n workflow template</strong> from <strong>SyncBricks</strong>! 🚀</p>\n <p style=\"font-size:16px; color:#555;\">Your template is attached with this email. We hope it helps you build powerful automations with ease.</p>\n <hr style=\"margin:30px 0; border:none; border-top:1px solid #eee;\">\n <p style=\"font-size:16px; color:#555;\">Here are some helpful resources to take things further:</p>\n <ul style=\"list-style:none; padding:0; font-size:16px; color:#333;\">\n <li style=\"margin-bottom:10px;\"><a href=\"{{ $env.API_BASE_URL }}\" style=\"color:#0066cc; text-decoration:none;\">📘 Enroll for the n8n Mastery Course</a></li>\n <li style=\"margin-bottom:10px;\"><a href=\"{{ $env.WEBHOOK_URL }}\" style=\"color:#0066cc; text-decoration:none;\">📖 Get the Book: Mastering n8n</a></li>\n <li style=\"margin-bottom:10px;\"><a href=\"{{ $env.WEBHOOK_URL }}\" style=\"color:#0066cc; text-decoration:none;\">☁️ Try n8n Cloud – Use Code <strong>AMJID10</strong> for Discount</a></li>\n </ul>\n\n<p style=\"font-size:16px; color:#555;\">🎥 Watch a quick guide on how to use your template:</p>\n<a href=\"{{ $env.WEBHOOK_URL }}\" target=\"_blank\" style=\"display:inline-block; text-decoration:none;\">\n <img src=\"{{ $env.WEBHOOK_URL }}\" alt=\"Watch on YouTube\" style=\"width:100%; max-width:500px; border-radius:6px; box-shadow:0 0 10px rgba(0,0,0,0.1); margin:10px 0;\">\n</a>\n\n\n <p style=\"font-size:14px; color:#999; margin-top:40px;\">Need help or have questions? Just reply to this email .</p>\n </td>\n </tr>\n </table>\n</body>\n</html>\n",
"options": {
"attachments": "data",
"appendAttribution": false
},
"subject": "=Your Order : {{ $('Get Order Details').item.json.purchase_units[0].items[0].name }}",
"toEmail": "={{ $('Email Data').item.json.EmaiID }}",
"fromEmail": "Syncbricks <info@syncbricks.com>"
},
"typeVersion": 2.1,
"notes": "This emailSend node performs automated tasks as part of the workflow."
},
{
"id": "d859f5b9-db4f-4df8-a806-a806349092ee",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
580,
-160
],
"parameters": {
"width": 520,
"height": 500,
"content": "## Paypal Webhook\n**Go to Paypal Developer\nClick on Apps and Credentails\nGo to NVP SOAP Webhooks\nAdd this Webhook in Paypal\n\n- Wait node is to ensure that Transaction is completed\n"
},
"typeVersion": 1,
"notes": "This stickyNote node performs automated tasks as part of the workflow."
},
{
"id": "f4c545d8-f978-4b49-8cdb-3b6b427544f8",
"name": "Sticky Note11",
"type": "n8n-nodes-base.stickyNote",
"position": [
-400,
-180
],
"parameters": {
"color": 4,
"width": 955,
"height": 516,
"content": "## Developed by Amjid Ali\n\nThank you for using this workflow template. It has taken me countless hours of hard work, research, and dedication to develop, and I sincerely hope it adds value to your work.\n\nIf you find this template helpful, I kindly ask you to consider supporting my efforts. Your support will help me continue improving and creating more valuable resources.\n\nYou can contribute via PayPal here:\n\n{{ $env.WEBHOOK_URL }}\n\nFor Full Course about ERPNext or Automation using AI follow below link\n\n{{ $env.WEBHOOK_URL }}\n\nAdditionally, when sharing this template, I would greatly appreciate it if you include my original information to ensure proper credit is given.\n\nThank you for your generosity and support!\nEmail : amjid@amjidali.com\n{{ $env.WEBHOOK_URL }}\n{{ $env.WEBHOOK_URL }}\n{{ $env.WEBHOOK_URL }}"
},
"typeVersion": 1,
"notes": "This stickyNote node performs automated tasks as part of the workflow."
},
{
"id": "769fc3b3-0cbe-4334-a990-83c86a0e5fc2",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1120,
-160
],
"parameters": {
"width": 580,
"height": 500,
"content": "## Payment Detials are Selected\n**The webhook gets all the Events but here we are filtering only the payments that we got agains the order.\n** It will get the customer name, Email Address and the Product customer has bought"
},
"typeVersion": 1,
"notes": "This stickyNote node performs automated tasks as part of the workflow."
},
{
"id": "835a6eb1-0b73-4d52-92b1-253fb1f150ac",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1720,
-160
],
"parameters": {
"width": 280,
"height": 500,
"content": "## Filter the Product \n** Each Product can have multiple Product Links on successful Purchase"
},
"typeVersion": 1,
"notes": "This stickyNote node performs automated tasks as part of the workflow."
},
{
"id": "54a284f2-566b-4dea-9e5f-6e55f5faefa4",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
2020,
-160
],
"parameters": {
"width": 420,
"height": 500,
"content": "## n8n Template Sale\n** as I am selling n8n template, it will download json file and will convert that into binay file"
},
"typeVersion": 1,
"notes": "This stickyNote node performs automated tasks as part of the workflow."
},
{
"id": "20645f67-af3d-4ebf-bab1-488937182205",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
2460,
-160
],
"parameters": {
"color": 4,
"width": 420,
"height": 500,
"content": "## Send Email to Custoer\n** The download file will be attafched and my Custom Email will be sent to Customer"
},
"typeVersion": 1,
"notes": "This stickyNote node performs automated tasks as part of the workflow."
}
],
"pinData": {},
"connections": {
"74a81d54-6cc9-4c17-88fe-aca27d491b73": {
"main": [
[
{
"node": "error-handler-74a81d54-6cc9-4c17-88fe-aca27d491b73",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-74a81d54-6cc9-4c17-88fe-aca27d491b73-c5d84548",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-74a81d54-6cc9-4c17-88fe-aca27d491b73-d3e6bb8c",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-74a81d54-6cc9-4c17-88fe-aca27d491b73-018be2d0",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-74a81d54-6cc9-4c17-88fe-aca27d491b73-5de12df8",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-74a81d54-6cc9-4c17-88fe-aca27d491b73-df936dc2",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-74a81d54-6cc9-4c17-88fe-aca27d491b73-c0c0fc60",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-74a81d54-6cc9-4c17-88fe-aca27d491b73-fc7df94b",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-74a81d54-6cc9-4c17-88fe-aca27d491b73-c0e914e4",
"type": "main",
"index": 0
}
]
]
},
"cba1ef91-2e34-4bd5-9972-565296137851": {
"main": [
[
{
"node": "error-handler-cba1ef91-2e34-4bd5-9972-565296137851",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-cba1ef91-2e34-4bd5-9972-565296137851-e9c4fcaa",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-cba1ef91-2e34-4bd5-9972-565296137851-0800378f",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-cba1ef91-2e34-4bd5-9972-565296137851-fb0e5f94",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-cba1ef91-2e34-4bd5-9972-565296137851-b3b70a33",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-cba1ef91-2e34-4bd5-9972-565296137851-6d7dddea",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-cba1ef91-2e34-4bd5-9972-565296137851-bf65dc79",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-cba1ef91-2e34-4bd5-9972-565296137851-1e49308a",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-cba1ef91-2e34-4bd5-9972-565296137851-a2df4c49",
"type": "main",
"index": 0
}
]
]
},
"c4b9bcab-42ab-4fca-b064-ab262cdcf05e": {
"main": [
[
{
"node": "error-handler-c4b9bcab-42ab-4fca-b064-ab262cdcf05e",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-c4b9bcab-42ab-4fca-b064-ab262cdcf05e-7968855f",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-c4b9bcab-42ab-4fca-b064-ab262cdcf05e-703474af",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-c4b9bcab-42ab-4fca-b064-ab262cdcf05e-f668a6f9",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-c4b9bcab-42ab-4fca-b064-ab262cdcf05e-bbeda46e",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-c4b9bcab-42ab-4fca-b064-ab262cdcf05e-43570b7d",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-c4b9bcab-42ab-4fca-b064-ab262cdcf05e-1c715db0",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-c4b9bcab-42ab-4fca-b064-ab262cdcf05e-df91b8d1",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-c4b9bcab-42ab-4fca-b064-ab262cdcf05e-4e53cf32",
"type": "main",
"index": 0
}
]
]
},
"4c95905c-0c77-488a-8fb3-e8f4f4b83e54": {
"main": [
[
{
"node": "error-handler-4c95905c-0c77-488a-8fb3-e8f4f4b83e54-af0c877b",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-4c95905c-0c77-488a-8fb3-e8f4f4b83e54-f5582107",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-4c95905c-0c77-488a-8fb3-e8f4f4b83e54-1b57fe40",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-4c95905c-0c77-488a-8fb3-e8f4f4b83e54-b636a6bd",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-4c95905c-0c77-488a-8fb3-e8f4f4b83e54-4821404e",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-4c95905c-0c77-488a-8fb3-e8f4f4b83e54-805e17c1",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-4c95905c-0c77-488a-8fb3-e8f4f4b83e54-bd51f21e",
"type": "main",
"index": 0
}
],
[
{
"node": "error-handler-4c95905c-0c77-488a-8fb3-e8f4f4b83e54-43aaff20",
"type": "main",
"index": 0
}
]
]
}
},
"name": "Webhook Workflow",
"settings": {
"executionOrder": "v1",
"saveManualExecutions": true,
"callerPolicy": "workflowsFromSameOwner",
"errorWorkflow": null,
"timezone": "UTC",
"executionTimeout": 3600,
"maxExecutions": 1000,
"retryOnFail": true,
"retryCount": 3,
"retryDelay": 1000
},
"description": "Automated workflow: Webhook Workflow. This workflow integrates 9 different services: webhook, stickyNote, httpRequest, wait, code. It contains 22 nodes and follows best practices for error handling and security.",
"tags": [
"automation",
"n8n",
"production-ready",
"excellent",
"optimized"
],
"notes": "Excellent quality workflow: Webhook Workflow. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."
}