| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,31 +16,35 @@ This configuration could be improved by configuring a login method for the scann | |||
| 16 | 16 | ||
| 17 | 17 | ### Start the scan via HTTP API | |
| 18 | 18 | ||
| 19 | - `PUT http://localhost:8080/box/processes/arachni_webapplicationscan` | ||
| 19 | + `PUT http://localhost:8080/box/securityTests` | ||
| 20 | 20 | ||
| 21 | 21 | ### Start the scan via CLI | |
| 22 | 22 | ||
| 23 | - `run_scanner.sh --payload payloadFile.json arachni` | ||
| 23 | + `run_scanner.sh --payload payloadFile.json` | ||
| 24 | 24 | ||
| 25 | 25 | ### Payload | |
| 26 | 26 | ||
| 27 | 27 | ```json | |
| 28 | 28 | [ | |
| 29 | - { | ||
| 30 | - "name": "Arachni BodgeIt Scan", | ||
| 31 | - "location": "http://bodgeit:8080/bodgeit/", | ||
| 32 | - "attributes": { | ||
| 33 | - "ARACHNI_DOM_DEPTH_LIMIT": 15, | ||
| 34 | - "ARACHNI_DIR_DEPTH_LIMIT": 5, | ||
| 35 | - "ARACHNI_PAGE_LIMIT": 50, | ||
| 36 | - "ARACHNI_EXCLUDE_PATTERNS": [ | ||
| 37 | - ".*\\.png", | ||
| 38 | - ".*util\\.js", | ||
| 39 | - ".*style\\.css" | ||
| 40 | - ], | ||
| 41 | - "ARACHNI_SCAN_METHODS": "*" | ||
| 42 | - } | ||
| 29 | + { | ||
| 30 | + "context": "BodgeIt", | ||
| 31 | + "name": "arachni", | ||
| 32 | + "target": { | ||
| 33 | + "name": "BodgeIt-local", | ||
| 34 | + "location": "http://bodgeit:8080/bodgeit/", | ||
| 35 | + "attributes": { | ||
| 36 | + "ARACHNI_DOM_DEPTH_LIMIT": 15, | ||
| 37 | + "ARACHNI_DIR_DEPTH_LIMIT": 5, | ||
| 38 | + "ARACHNI_PAGE_LIMIT": 50, | ||
| 39 | + "ARACHNI_EXCLUDE_PATTERNS": [ | ||
| 40 | + ".*\\.png", | ||
| 41 | + ".*util\\.js", | ||
| 42 | + ".*style\\.css" | ||
| 43 | + ], | ||
| 44 | + "ARACHNI_SCAN_METHODS": "*" | ||
| 45 | + } | ||
| 43 | 46 | } | |
| 47 | + } | ||
| 44 | 48 | ] | |
| 45 | 49 | ``` | |
| 46 | 50 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,27 +14,31 @@ To start of we should test weather the secureCodeBox and Juice Shop is properly | |||
| 14 | 14 | ||
| 15 | 15 | ### Start the test scan via HTTP API | |
| 16 | 16 | ||
| 17 | - `PUT http://localhost:8080/box/processes/arachni_webapplicationscan` | ||
| 17 | + `PUT http://localhost:8080/box/securityTests` | ||
| 18 | 18 | ||
| 19 | 19 | ### Start the test scan via CLI | |
| 20 | 20 | ||
| 21 | - `run_scanner.sh --payload payloadFile.json arachni` | ||
| 21 | + `run_scanner.sh --payload payloadFile.json` | ||
| 22 | 22 | ||
| 23 | 23 | ### Test payload | |
| 24 | 24 | ||
| 25 | 25 | ```json | |
| 26 | 26 | [ | |
| 27 | - { | ||
| 28 | - "name": "Arachni Quick Test Scan", | ||
| 29 | - "location": "http://juice-shop:3000/", | ||
| 30 | - "attributes": { | ||
| 31 | - "ARACHNI_DOM_DEPTH_LIMIT": 5, | ||
| 32 | - "ARACHNI_DIR_DEPTH_LIMIT": 5, | ||
| 33 | - "ARACHNI_PAGE_LIMIT": 1, | ||
| 34 | - "ARACHNI_EXCLUDE_PATTERNS": [], | ||
| 35 | - "ARACHNI_SCAN_METHODS": "*" | ||
| 36 | - } | ||
| 27 | + { | ||
| 28 | + "name": "arachni", | ||
| 29 | + "context": "Arachni Quick JuiceShop Scan", | ||
| 30 | + "target": { | ||
| 31 | + "name": "JuiceShop-local", | ||
| 32 | + "location": "http://juice-shop:3000/", | ||
| 33 | + "attributes": { | ||
| 34 | + "ARACHNI_DOM_DEPTH_LIMIT": 5, | ||
| 35 | + "ARACHNI_DIR_DEPTH_LIMIT": 5, | ||
| 36 | + "ARACHNI_PAGE_LIMIT": 1, | ||
| 37 | + "ARACHNI_EXCLUDE_PATTERNS": [], | ||
| 38 | + "ARACHNI_SCAN_METHODS": "*" | ||
| 39 | + } | ||
| 37 | 40 | } | |
| 41 | + } | ||
| 38 | 42 | ] | |
| 39 | 43 | ``` | |
| 40 | 44 | ||
@@ -53,33 +57,37 @@ This is done by configuring the following parameters: | |||
| 53 | 57 | ||
| 54 | 58 | ### Start the full scan via HTTP API | |
| 55 | 59 | ||
| 56 | - `PUT http://localhost:8080/box/processes/arachni_webapplicationscan` | ||
| 60 | + `PUT http://localhost:8080/box/securityTests` | ||
| 57 | 61 | ||
| 58 | 62 | ### Start the full scan via CLI | |
| 59 | 63 | ||
| 60 | - `run_scanner.sh --payload payloadFile.json arachni` | ||
| 64 | + `run_scanner.sh --payload payloadFile.json` | ||
| 61 | 65 | ||
| 62 | 66 | ### Full payload | |
| 63 | 67 | ||
| 64 | 68 | ```json | |
| 65 | 69 | [ | |
| 66 | - { | ||
| 67 | - "name": "In Depth Arachni Scan", | ||
| 68 | - "location": "http://juice-shop:3000/", | ||
| 69 | - "attributes": { | ||
| 70 | - "ARACHNI_DOM_DEPTH_LIMIT": 50, | ||
| 71 | - "ARACHNI_DIR_DEPTH_LIMIT": 10, | ||
| 72 | - "ARACHNI_PAGE_LIMIT": 100, | ||
| 73 | - "ARACHNI_EXCLUDE_PATTERNS": [ | ||
| 74 | - ".*socket\\.io.*", | ||
| 75 | - ".*node_modules.*", | ||
| 76 | - ".*public/images.*", | ||
| 77 | - ".*/css.*" | ||
| 78 | - ], | ||
| 79 | - "ARACHNI_SCAN_METHODS": "*", | ||
| 80 | - "ARACHNI_EXTEND_PATH": ["/#/administration"], | ||
| 81 | - "ARACHNI_LOGIN_SCRIPT_FILENAME": "login_juice_shop.rb" | ||
| 82 | - } | ||
| 70 | + { | ||
| 71 | + "name": "arachni", | ||
| 72 | + "context": "In Depth Arachni JuiceShop Scan", | ||
| 73 | + "target": { | ||
| 74 | + "name": "JuiceShop-local", | ||
| 75 | + "location": "http://juice-shop:3000/", | ||
| 76 | + "attributes": { | ||
| 77 | + "ARACHNI_DOM_DEPTH_LIMIT": 50, | ||
| 78 | + "ARACHNI_DIR_DEPTH_LIMIT": 10, | ||
| 79 | + "ARACHNI_PAGE_LIMIT": 100, | ||
| 80 | + "ARACHNI_EXCLUDE_PATTERNS": [ | ||
| 81 | + ".*socket\\.io.*", | ||
| 82 | + ".*node_modules.*", | ||
| 83 | + ".*public/images.*", | ||
| 84 | + ".*/css.*" | ||
| 85 | + ], | ||
| 86 | + "ARACHNI_SCAN_METHODS": "*", | ||
| 87 | + "ARACHNI_EXTEND_PATH": ["/#/administration"], | ||
| 88 | + "ARACHNI_LOGIN_SCRIPT_FILENAME": "login_juice_shop.rb" | ||
| 89 | + } | ||
| 83 | 90 | } | |
| 91 | + } | ||
| 84 | 92 | ] | |
| 85 | 93 | ``` | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,24 +15,28 @@ This is a straight forward configuration. Which should finish relativly quickly | |||
| 15 | 15 | ||
| 16 | 16 | ### Start the scan via HTTP API | |
| 17 | 17 | ||
| 18 | - `PUT http://localhost:8080/box/processes/zap-process` | ||
| 18 | + `PUT http://localhost:8080/box/securityTests` | ||
| 19 | 19 | ||
| 20 | 20 | ### Start the scan via CLI | |
| 21 | 21 | ||
| 22 | - `run_scanner.sh --payload payloadFile.json zap` | ||
| 22 | + `run_scanner.sh --payload payloadFile.json` | ||
| 23 | 23 | ||
| 24 | 24 | ### Test Payload | |
| 25 | 25 | ||
| 26 | 26 | ```json | |
| 27 | 27 | [ | |
| 28 | - { | ||
| 29 | - "name": "ZAP BodgeIt Scan", | ||
| 30 | - "location": "http://bodgeit:8080/bodgeit/", | ||
| 31 | - "attributes": { | ||
| 32 | - "ZAP_BASE_URL": "http://bodgeit:8080/bodgeit/", | ||
| 33 | - "ZAP_SPIDER_MAX_DEPTH": 1 | ||
| 34 | - } | ||
| 28 | + { | ||
| 29 | + "name": "zap", | ||
| 30 | + "context": "ZAP BodgeIt Scan", | ||
| 31 | + "target": { | ||
| 32 | + "name": "BodgeIt-local", | ||
| 33 | + "location": "http://bodgeit:8080/bodgeit/", | ||
| 34 | + "attributes": { | ||
| 35 | + "ZAP_BASE_URL": "http://bodgeit:8080/bodgeit/", | ||
| 36 | + "ZAP_SPIDER_MAX_DEPTH": 1 | ||
| 37 | + } | ||
| 35 | 38 | } | |
| 39 | + } | ||
| 36 | 40 | ] | |
| 37 | 41 | ``` | |
| 38 | 42 | ||
@@ -44,7 +48,7 @@ The following example contains a fully configured ZAP Scan for the BodgeIt Store | |||
| 44 | 48 | ||
| 45 | 49 | ### Start the full scan via HTTP API | |
| 46 | 50 | ||
| 47 | - `PUT http://localhost:8080/box/processes/zap-process` | ||
| 51 | + `PUT http://localhost:8080/box/securityTests` | ||
| 48 | 52 | ||
| 49 | 53 | ### Start the full scan via CLI | |
| 50 | 54 | ||
@@ -54,23 +58,27 @@ The following example contains a fully configured ZAP Scan for the BodgeIt Store | |||
| 54 | 58 | ||
| 55 | 59 | ```json | |
| 56 | 60 | [ | |
| 57 | - { | ||
| 58 | - "name": "ZAP BodgeIt Scan", | ||
| 59 | - "location": "http://bodgeit:8080/bodgeit/", | ||
| 60 | - "attributes": { | ||
| 61 | - "ZAP_BASE_URL": "http://bodgeit:8080/bodgeit/", | ||
| 62 | - "ZAP_AUTHENTICATION": true, | ||
| 63 | - "ZAP_LOGIN_SITE": "http://bodgeit:8080/bodgeit/login.jsp", | ||
| 64 | - "ZAP_LOGIN_USER": "test@thebodgeitstore.com", | ||
| 65 | - "ZAP_LOGIN_PW": "password", | ||
| 66 | - "ZAP_PW_FIELD_ID": "password", | ||
| 67 | - "ZAP_USERNAME_FIELD_ID": "username", | ||
| 68 | - "ZAP_LOGGED_IN_INDICATOR": "You have logged in successfully", | ||
| 69 | - "ZAP_SPIDER_MAX_DEPTH": 5, | ||
| 70 | - "ZAP_SCANNER_DELAY_IN_MS": 10, | ||
| 71 | - "ZAP_THREADS_PER_HOST": 2 | ||
| 72 | - } | ||
| 61 | + { | ||
| 62 | + "name": "zap", | ||
| 63 | + "context": "ZAP BodgeIt Scan", | ||
| 64 | + "target": { | ||
| 65 | + "name": "BodgeIt-local", | ||
| 66 | + "location": "http://bodgeit:8080/bodgeit/", | ||
| 67 | + "attributes": { | ||
| 68 | + "ZAP_BASE_URL": "http://bodgeit:8080/bodgeit/", | ||
| 69 | + "ZAP_AUTHENTICATION": true, | ||
| 70 | + "ZAP_LOGIN_SITE": "http://bodgeit:8080/bodgeit/login.jsp", | ||
| 71 | + "ZAP_LOGIN_USER": "test@thebodgeitstore.com", | ||
| 72 | + "ZAP_LOGIN_PW": "password", | ||
| 73 | + "ZAP_PW_FIELD_ID": "password", | ||
| 74 | + "ZAP_USERNAME_FIELD_ID": "username", | ||
| 75 | + "ZAP_LOGGED_IN_INDICATOR": "You have logged in successfully", | ||
| 76 | + "ZAP_SPIDER_MAX_DEPTH": 5, | ||
| 77 | + "ZAP_SCANNER_DELAY_IN_MS": 10, | ||
| 78 | + "ZAP_THREADS_PER_HOST": 2 | ||
| 79 | + } | ||
| 73 | 80 | } | |
| 81 | + } | ||
| 74 | 82 | ] | |
| 75 | 83 | ``` | |
| 76 | 84 | ||
@@ -82,7 +90,7 @@ It is also possible to run the zap scan process with a predefined sitemap. In th | |||
| 82 | 90 | ||
| 83 | 91 | ### Start the scan via HTTP API | |
| 84 | 92 | ||
| 85 | - `PUT http://localhost:8080/box/processes/zap-process` | ||
| 93 | + `PUT http://localhost:8080/box/securityTests` | ||
| 86 | 94 | ||
| 87 | 95 | ### Start the full scan via CLI | |
| 88 | 96 | ||
@@ -91,34 +99,42 @@ It is also possible to run the zap scan process with a predefined sitemap. In th | |||
| 91 | 99 | ### Payload to start scan (without spider) | |
| 92 | 100 | ||
| 93 | 101 | ```json | |
| 94 | - [{ | ||
| 102 | + [ | ||
| 103 | + { | ||
| 95 | 104 | "name": "ZAP BodgeIt Scan with given sitemap ", | |
| 96 | 105 | "location": "http://bodgeit:8080/bodgeit", | |
| 97 | 106 | "attributes": { | |
| 98 | - "ZAP_BASE_URL": "http://bodgeit:8080/bodgeit", | ||
| 99 | - "ZAP_SITEMAP": [{ | ||
| 100 | - "request": { | ||
| 101 | - "method": "GET", | ||
| 102 | - "url": "http://bodgeit:8080/bodgeit/search.jsp?q=ZAP", | ||
| 103 | - "httpVersion": "HTTP/1.1", | ||
| 104 | - "headers": [], | ||
| 105 | - "queryString": [{ | ||
| 106 | - "name": "q", | ||
| 107 | - "value": "ZAP" | ||
| 108 | - }], | ||
| 109 | - "postData": { | ||
| 110 | - "mimeType": "", | ||
| 111 | - "params": [], | ||
| 112 | - "text": "" | ||
| 113 | - } | ||
| 114 | - }, | ||
| 115 | - "ZAP_BASE_URL": "http://bodgeit:8080/bodgeit" | ||
| 116 | - }] | ||
| 107 | + "ZAP_BASE_URL": "http://bodgeit:8080/bodgeit", | ||
| 108 | + "ZAP_SITEMAP": [ | ||
| 109 | + { | ||
| 110 | + "request": { | ||
| 111 | + "method": "GET", | ||
| 112 | + "url": "http://bodgeit:8080/bodgeit/search.jsp?q=ZAP", | ||
| 113 | + "httpVersion": "HTTP/1.1", | ||
| 114 | + "headers": [], | ||
| 115 | + "queryString": [ | ||
| 116 | + { | ||
| 117 | + "name": "q", | ||
| 118 | + "value": "ZAP" | ||
| 119 | + } | ||
| 120 | + ], | ||
| 121 | + "postData": { | ||
| 122 | + "mimeType": "", | ||
| 123 | + "params": [], | ||
| 124 | + "text": "" | ||
| 125 | + } | ||
| 126 | + }, | ||
| 127 | + "ZAP_BASE_URL": "http://bodgeit:8080/bodgeit" | ||
| 128 | + } | ||
| 129 | + ] | ||
| 117 | 130 | } | |
| 118 | - }] | ||
| 131 | + } | ||
| 132 | + ] | ||
| 119 | 133 | ``` | |
| 120 | 134 | ||
| 121 | 135 | ### The Sitemap Parameter | |
| 136 | + | ||
| 122 | 137 | The sitemap contains request objects in a HAR format. To generate the requests for your sitemap, you can: | |
| 123 | - * take the result of previous microservice zap spider tasks via camunda ui OR | ||
| 124 | - * use a local running ZAP application as a proxy, browse manully through your target and import the recorded requests via "http://[your-local-zap]:[your-zap-port]/UI/core/other/messagesHar/" | ||
| 138 | + | ||
| 139 | + - take the result of previous microservice zap spider tasks via camunda ui OR | ||
| 140 | + - use a local running ZAP application as a proxy, browse manully through your target and import the recorded requests via "http://[your-local-zap]:[your-zap-port]/UI/core/other/messagesHar/" | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments