|
| 1 | +--- |
| 2 | +meta: |
| 3 | + author: "azurit" |
| 4 | + description: "Referer Hardening Plugin" |
| 5 | + enabled: true |
| 6 | + name: 9524130.yaml |
| 7 | +tests: |
| 8 | + - test_title: 9524130-1 |
| 9 | + desc: "Userinfo component" |
| 10 | + stages: |
| 11 | + - stage: |
| 12 | + input: |
| 13 | + dest_addr: 127.0.0.1 |
| 14 | + headers: |
| 15 | + Host: localhost |
| 16 | + User-Agent: OWASP CRS test agent |
| 17 | + Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 |
| 18 | + Referer: "http://login:password@example.com" |
| 19 | + port: 80 |
| 20 | + method: "GET" |
| 21 | + uri: "/get" |
| 22 | + version: "HTTP/1.1" |
| 23 | + output: |
| 24 | + log_contains: id "9524130" |
| 25 | + - test_title: 9524130-2 |
| 26 | + desc: "Userinfo component" |
| 27 | + stages: |
| 28 | + - stage: |
| 29 | + input: |
| 30 | + dest_addr: 127.0.0.1 |
| 31 | + headers: |
| 32 | + Host: localhost |
| 33 | + User-Agent: OWASP CRS test agent |
| 34 | + Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 |
| 35 | + Referer: "http://login@example.com" |
| 36 | + port: 80 |
| 37 | + method: "GET" |
| 38 | + uri: "/get" |
| 39 | + version: "HTTP/1.1" |
| 40 | + output: |
| 41 | + log_contains: id "9524130" |
| 42 | + - test_title: 9524130-3 |
| 43 | + desc: "Userinfo component" |
| 44 | + stages: |
| 45 | + - stage: |
| 46 | + input: |
| 47 | + dest_addr: 127.0.0.1 |
| 48 | + headers: |
| 49 | + Host: localhost |
| 50 | + User-Agent: OWASP CRS test agent |
| 51 | + Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 |
| 52 | + Referer: "http://@example.com" |
| 53 | + port: 80 |
| 54 | + method: "GET" |
| 55 | + uri: "/get" |
| 56 | + version: "HTTP/1.1" |
| 57 | + output: |
| 58 | + log_contains: id "9524130" |
| 59 | + - test_title: 9524130-4 |
| 60 | + desc: "Missing userinfo component" |
| 61 | + stages: |
| 62 | + - stage: |
| 63 | + input: |
| 64 | + dest_addr: 127.0.0.1 |
| 65 | + headers: |
| 66 | + Host: localhost |
| 67 | + User-Agent: OWASP CRS test agent |
| 68 | + Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 |
| 69 | + Referer: "http://example.com" |
| 70 | + port: 80 |
| 71 | + method: "GET" |
| 72 | + uri: "/get" |
| 73 | + version: "HTTP/1.1" |
| 74 | + output: |
| 75 | + no_log_contains: id "9524130" |
0 commit comments