---
meta:
  author: "zmallen"
  enabled: true
  name: "941180.yaml"
  description: "Tests to trigger, or not trigger 941180"
tests:
  - test_title: 941180-1
    desc: Node-validator blacklist keywords, ARGS
    stages:
      - stage:
          input:
            dest_addr: 127.0.0.1
            method: GET
            port: 80
            uri: '/foo'
            headers:
              User-Agent: ModSecurity CRS 3 Tests
              Host: localhost
            data: '941180-1=window.location'
          output:
            log_contains: id "941180"
  - test_title: 941180-2
    desc: Node-validator blacklist keywords, ARGS_NAMES
    stages:
      - stage:
          input:
            dest_addr: 127.0.0.1
            method: GET
            port: 80
            uri: '/bar'
            headers:
              User-Agent: ModSecurity CRS 3 Tests
              Host: localhost
            data: 'document.cookie=941180-2'
          output:
            log_contains: id "941180"
  - test_title: 941180-3
    desc: Node-validator blacklist keywords, ARGS_NAMES
    stages:
      - stage:
          input:
            dest_addr: 127.0.0.1
            method: GET
            port: 80
            uri: '/baz'
            headers:
              User-Agent: ModSecurity CRS 3 Tests
              Host: localhost
              Cookie: 'window.location=941180-3'
          output:
            log_contains: id "941180"
