form-render-escaping.json 716 B

123456789101112131415161718192021
  1. {
  2. "name": "verify-form-render-escaping",
  3. "nodes": [
  4. {"id": "n1", "name": "Form", "type": "form-trigger", "position": {"x": 0, "y": 0},
  5. "config": {"title": "<script>alert(1)</script>",
  6. "description": "a \"quoted\" & <b>bold</b> description",
  7. "fields": [{"name": "q", "label": "<img src=x onerror=alert(2)>", "type": "text"}]}}
  8. ],
  9. "connections": [],
  10. "http": {
  11. "method": "GET",
  12. "path": "/webhook/{workflowId}",
  13. "expectStatus": 200,
  14. "expectBodyContains": [
  15. "&lt;script&gt;alert(1)&lt;/script&gt;",
  16. "&lt;img src=x onerror=alert(2)&gt;",
  17. "&amp;"
  18. ],
  19. "expectBodyExcludes": ["<script>alert(1)</script>", "<img src=x onerror"]
  20. }
  21. }