Skip to content

Commit

Permalink
ZAP:セキュリティ管理のシーケンス追加
Browse files Browse the repository at this point in the history
  • Loading branch information
ryo-endo committed Feb 8, 2023
1 parent ca1e834 commit 4ab3456
Showing 1 changed file with 122 additions and 0 deletions.
122 changes: 122 additions & 0 deletions zap/scripts/admin_security.zst
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
"about": "This is a Zest script. For more details about Zest visit https://developer.mozilla.org/en-US/docs/Zest",
"zestVersion": "0.6",
"generatedBy": "Sequence Script Template",
"title": "admin_security.zst",
"description": "An example empty sequence script. Add requests to populate the sequence.",
"prefix": "",
"type": "Active",
"parameters": {
"tokenStart": "{{",
"tokenEnd": "}}",
"tokens": {},
"elementType": "ZestVariables"
},
"statements": [
{
"url": "https://ec-cube/admin/setting/system/security",
"data": "",
"method": "GET",
"headers": "Proxy-Connection: keep-alive\r\nsec-ch-ua: \"Not_A Brand\";v\u003d\"99\", \"Google Chrome\";v\u003d\"109\", \"Chromium\";v\u003d\"109\"\r\nsec-ch-ua-mobile: ?0\r\nsec-ch-ua-platform: \"macOS\"\r\nUpgrade-Insecure-Requests: 1\r\nSec-Fetch-Site: same-origin\r\nSec-Fetch-Mode: navigate\r\nSec-Fetch-User: ?1\r\nSec-Fetch-Dest: document\r\n",
"response": {
"url": "https://ec-cube/admin/setting/system/security",
"headers": "",
"body": "",
"statusCode": 200,
"responseTimeInMs": 45,
"elementType": "ZestResponse"
},
"assertions": [
{
"rootExpression": {
"code": 200,
"not": false,
"elementType": "ZestExpressionStatusCode"
},
"elementType": "ZestAssertion"
}
],
"followRedirects": false,
"timestamp": 1675775557556,
"cookies": [],
"index": 1,
"enabled": true,
"elementType": "ZestRequest"
},
{
"fieldDefinition": {
"formIndex": 0,
"fieldName": "admin_security__token",
"elementType": "ZestFieldDefinition"
},
"variableName": "csrf1",
"index": 2,
"enabled": true,
"elementType": "ZestAssignFieldValue"
},
{
"url": "https://ec-cube/admin/setting/system/security",
"data": "admin_security%5B_token%5D\u003d{{csrf1}}\u0026admin_security%5Badmin_route_dir%5D\u003dadmin\u0026admin_security%5Badmin_allow_hosts%5D\u003d127.0.0.1%2F28\u0026admin_security%5Badmin_deny_hosts%5D\u003d127.0.0.1%2F28\u0026admin_security%5Bfront_allow_hosts%5D\u003d127.0.0.1%2F28\u0026admin_security%5Bfront_deny_hosts%5D\u003d127.0.0.1%2F28\u0026admin_security%5Btrusted_hosts%5D\u003d%5Eexample%5C.com%24\u0026admin_security%5Bforce_ssl%5D\u003d0",
"method": "POST",
"headers": "Proxy-Connection: keep-alive\r\nContent-Length: 456\r\nsec-ch-ua: \"Not_A Brand\";v\u003d\"99\", \"Google Chrome\";v\u003d\"109\", \"Chromium\";v\u003d\"109\"\r\nsec-ch-ua-mobile: ?0\r\nsec-ch-ua-platform: \"macOS\"\r\nUpgrade-Insecure-Requests: 1\r\nOrigin: https://ec-cube\r\nContent-Type: application/x-www-form-urlencoded\r\nSec-Fetch-Site: same-origin\r\nSec-Fetch-Mode: navigate\r\nSec-Fetch-User: ?1\r\nSec-Fetch-Dest: document\r\n",
"response": {
"url": "https://ec-cube/admin/setting/system/security",
"headers": "",
"body": "",
"statusCode": 302,
"responseTimeInMs": 2049,
"elementType": "ZestResponse"
},
"assertions": [
{
"rootExpression": {
"code": 302,
"not": false,
"elementType": "ZestExpressionStatusCode"
},
"elementType": "ZestAssertion"
}
],
"followRedirects": false,
"timestamp": 1675775607604,
"cookies": [],
"index": 3,
"enabled": true,
"elementType": "ZestRequest"
},
{
"url": "https://ec-cube/admin/setting/system/security",
"data": "",
"method": "GET",
"headers": "Proxy-Connection: keep-alive\r\nUpgrade-Insecure-Requests: 1\r\nSec-Fetch-Site: same-origin\r\nSec-Fetch-Mode: navigate\r\nSec-Fetch-User: ?1\r\nSec-Fetch-Dest: document\r\nsec-ch-ua: \"Not_A Brand\";v\u003d\"99\", \"Google Chrome\";v\u003d\"109\", \"Chromium\";v\u003d\"109\"\r\nsec-ch-ua-mobile: ?0\r\nsec-ch-ua-platform: \"macOS\"\r\n",
"response": {
"url": "https://ec-cube/admin/setting/system/security",
"headers": "",
"body": "",
"statusCode": 200,
"responseTimeInMs": 4533,
"elementType": "ZestResponse"
},
"assertions": [
{
"rootExpression": {
"code": 200,
"not": false,
"elementType": "ZestExpressionStatusCode"
},
"elementType": "ZestAssertion"
}
],
"followRedirects": false,
"timestamp": 1675775609657,
"cookies": [],
"index": 4,
"enabled": true,
"elementType": "ZestRequest"
}
],
"authentication": [],
"index": 0,
"enabled": true,
"elementType": "ZestScript"
}

0 comments on commit 4ab3456

Please sign in to comment.