Skip to content

Commit

Permalink
Additional modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristian Bremberg committed Jun 4, 2021
1 parent 9580f33 commit b293beb
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 0 deletions.
20 changes: 20 additions & 0 deletions modules/apache-ambari-default-credentials.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"request": {
"path": "/api/v1/users/admin?fields=*,privileges/PrivilegeInfo/cluster_name,privileges/PrivilegeInfo/permission_name",
"headers": [
"Authorization: Basic YWRtaW46YWRtaW4="
]
},
"response": {
"matchesRequired": 5,
"matches": [
{"type": "status", "code": 200, "required": true},
{"type": "static", "pattern": "active"},
{"type": "static", "pattern": "admin"},
{"type": "static", "pattern": "groups"},
{"type": "static", "pattern": "ldap_user"},
{"type": "static", "pattern": "user_name"},
{"type": "static", "pattern": "user_type"}
]
}
}
19 changes: 19 additions & 0 deletions modules/exposed-docker-socket.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"request": {
"path": "containers/json"
},
"response": {
"matchesRequired": 5,
"matches": [
{"type": "status", "code": 200, "required": true},
{"type": "header", "name": "Content-Type", "pattern": "(?i)application/json", "required": true},
{"type": "static", "pattern": "\"Id\"", "required": true},
{"type": "static", "pattern": "\"Names\""},
{"type": "static", "pattern": "\"Image\""},
{"type": "static", "pattern": "\"ImageID\""},
{"type": "static", "pattern": "\"Command\""},
{"type": "static", "pattern": "\"Created\""},
{"type": "static", "pattern": "\"State\""}
]
}
}
12 changes: 12 additions & 0 deletions modules/exposed-jquery-file-upload.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"request": {
"path": "jquery-file-upload/server/php/"
},
"response": {
"matchesRequired": 2,
"matches": [
{"type": "status", "code": 200, "required": true},
{"type": "regex", "pattern": "^{\"files\":"}
]
}
}
11 changes: 11 additions & 0 deletions modules/exposed-nginx-status.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"request": {
"path": "/nginx_status"
},
"response": {
"matchesRequired": 1,
"matches": [
{"type": "static", "pattern": "server accepts handled requests"}
]
}
}
11 changes: 11 additions & 0 deletions modules/http-response-splitting.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"request": {
"path": "/%0d%0ahrs:hrs"
},
"response": {
"matchesRequired": 1,
"matches": [
{"type": "header", "name": "hrs", "pattern": "."}
]
}
}
13 changes: 13 additions & 0 deletions modules/open-redirect-1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"request": {
"path": "//example.com"
},
"response": {
"matchesRequired": 2,
"matches": [
{"type": "status", "code": 301},
{"type": "status", "code": 302},
{"type": "header", "name": "Location", "pattern": "(?i)^//example.om"}
]
}
}
16 changes: 16 additions & 0 deletions modules/spring-boot-env-route.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"request": {
"path": "/actuator/env"
},
"response": {
"matchesRequired": 6,
"matches": [
{"type": "status", "code": 200, "required": true},
{"type": "header", "name": "Content-Type", "pattern": "(?i)application/json", "required": true},
{"type": "static", "pattern": "\"profiles"},
{"type": "static", "pattern": "\"servletContextInitParams"},
{"type": "static", "pattern": "\"systemProperties"},
{"type": "static", "pattern": "\"systemEnvironment"}
]
}
}

0 comments on commit b293beb

Please # to comment.