|
| 1 | +--- |
| 2 | +meta: |
| 3 | + author: Thijs Eilander |
| 4 | + description: wordpress-hardening-plugin |
| 5 | + enabled: true |
| 6 | + name: 9522104.yaml |
| 7 | +tests: |
| 8 | + - test_title: 9522104-1 |
| 9 | + desc: Test if user enumeration is blocked |
| 10 | + stages: |
| 11 | + - stage: |
| 12 | + input: |
| 13 | + dest_addr: 127.0.0.1 |
| 14 | + headers: |
| 15 | + Host: localhost |
| 16 | + User-Agent: OWASP CRS |
| 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 | + port: 80 |
| 19 | + method: GET |
| 20 | + uri: /author=1 |
| 21 | + data: | |
| 22 | + text |
| 23 | + output: |
| 24 | + log_contains: id "9522104" |
| 25 | + - test_title: 9522104-2 |
| 26 | + desc: Test if user enumeration is blocked |
| 27 | + stages: |
| 28 | + - stage: |
| 29 | + input: |
| 30 | + dest_addr: 127.0.0.1 |
| 31 | + headers: |
| 32 | + Host: localhost |
| 33 | + User-Agent: OWASP CRS |
| 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 | + port: 80 |
| 36 | + method: GET |
| 37 | + uri: /AUTHOR=99999999999999999999999 |
| 38 | + data: | |
| 39 | + text |
| 40 | + output: |
| 41 | + log_contains: id "9522104" |
| 42 | + - test_title: 9522104-3 |
| 43 | + desc: Test if user enumeration is blocked |
| 44 | + stages: |
| 45 | + - stage: |
| 46 | + input: |
| 47 | + dest_addr: 127.0.0.1 |
| 48 | + headers: |
| 49 | + Host: localhost |
| 50 | + User-Agent: OWASP CRS |
| 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 | + port: 80 |
| 53 | + method: GET |
| 54 | + uri: /wp-json/wp/v2/users |
| 55 | + data: | |
| 56 | + text |
| 57 | + output: |
| 58 | + log_contains: id "9522104" |
| 59 | + - test_title: 9522104-4 |
| 60 | + desc: Test if user enumeration is blocked |
| 61 | + stages: |
| 62 | + - stage: |
| 63 | + input: |
| 64 | + dest_addr: 127.0.0.1 |
| 65 | + headers: |
| 66 | + Host: localhost |
| 67 | + User-Agent: OWASP CRS |
| 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 | + port: 80 |
| 70 | + method: GET |
| 71 | + uri: /wp-json/wp/v2/USERS=99999999999999999999999 |
| 72 | + data: | |
| 73 | + text |
| 74 | + output: |
| 75 | + log_contains: id "9522104" |
| 76 | + - test_title: 9522104-5 |
| 77 | + desc: Test if user enumeration is blocked |
| 78 | + stages: |
| 79 | + - stage: |
| 80 | + input: |
| 81 | + dest_addr: 127.0.0.1 |
| 82 | + headers: |
| 83 | + Host: localhost |
| 84 | + User-Agent: OWASP CRS |
| 85 | + Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 |
| 86 | + port: 80 |
| 87 | + method: GET |
| 88 | + uri: /wp-json/wp/v2/users?search=test |
| 89 | + data: | |
| 90 | + text |
| 91 | + output: |
| 92 | + log_contains: id "9522104" |
| 93 | + - test_title: 9522104-6 |
| 94 | + desc: Test if user enumeration is blocked |
| 95 | + stages: |
| 96 | + - stage: |
| 97 | + input: |
| 98 | + dest_addr: 127.0.0.1 |
| 99 | + headers: |
| 100 | + Host: localhost |
| 101 | + User-Agent: OWASP CRS |
| 102 | + Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 |
| 103 | + port: 80 |
| 104 | + method: GET |
| 105 | + uri: /section/news?rest_route=/wp/v2/users |
| 106 | + data: | |
| 107 | + text |
| 108 | + output: |
| 109 | + log_contains: id "9522104" |
0 commit comments