feat: [OCISDEV-278] X-XSS-Protection header removed
This commit is contained in:
1 parent
84e325372d
commit
d9bf69014f
8 files changed
+2871
-2306
No files matched your search
+2765
-2191
File diff suppressed because it is too large.
Load diff
@@ -1962,7 +1962,6 @@
|
||||
"xRobotsTag": "none",
|
||||
"xFrameOptions": "SAMEORIGIN",
|
||||
"contentSecurityPolicy": "frame-src 'self'; frame-ancestors 'self'; object-src 'none';",
|
||||
"xXSSProtection": "1; mode=block",
|
||||
"strictTransportSecurity": "max-age=31536000; includeSubDomains"
|
||||
},
|
||||
"smtpServer": {},
|
||||
@@ -2161,124 +2160,124 @@
|
||||
"supportedLocales": [],
|
||||
"authenticationFlows": [
|
||||
{
|
||||
"id" : "5392b282-096e-4994-a3ad-780eb4023d27",
|
||||
"alias" : "step up flow",
|
||||
"description" : "browser login flow with step-up mechanism",
|
||||
"providerId" : "basic-flow",
|
||||
"topLevel" : true,
|
||||
"builtIn" : false,
|
||||
"authenticationExecutions" : [
|
||||
"id": "5392b282-096e-4994-a3ad-780eb4023d27",
|
||||
"alias": "step up flow",
|
||||
"description": "browser login flow with step-up mechanism",
|
||||
"providerId": "basic-flow",
|
||||
"topLevel": true,
|
||||
"builtIn": false,
|
||||
"authenticationExecutions": [
|
||||
{
|
||||
"authenticator" : "auth-cookie",
|
||||
"authenticatorFlow" : false,
|
||||
"requirement" : "ALTERNATIVE",
|
||||
"priority" : 20,
|
||||
"autheticatorFlow" : false,
|
||||
"userSetupAllowed" : false
|
||||
"authenticator": "auth-cookie",
|
||||
"authenticatorFlow": false,
|
||||
"requirement": "ALTERNATIVE",
|
||||
"priority": 20,
|
||||
"autheticatorFlow": false,
|
||||
"userSetupAllowed": false
|
||||
},
|
||||
{
|
||||
"authenticator" : "auth-spnego",
|
||||
"authenticatorFlow" : false,
|
||||
"requirement" : "DISABLED",
|
||||
"priority" : 25,
|
||||
"autheticatorFlow" : false,
|
||||
"userSetupAllowed" : false
|
||||
"authenticator": "auth-spnego",
|
||||
"authenticatorFlow": false,
|
||||
"requirement": "DISABLED",
|
||||
"priority": 25,
|
||||
"autheticatorFlow": false,
|
||||
"userSetupAllowed": false
|
||||
},
|
||||
{
|
||||
"authenticator" : "identity-provider-redirector",
|
||||
"authenticatorFlow" : false,
|
||||
"requirement" : "ALTERNATIVE",
|
||||
"priority" : 30,
|
||||
"autheticatorFlow" : false,
|
||||
"userSetupAllowed" : false
|
||||
"authenticator": "identity-provider-redirector",
|
||||
"authenticatorFlow": false,
|
||||
"requirement": "ALTERNATIVE",
|
||||
"priority": 30,
|
||||
"autheticatorFlow": false,
|
||||
"userSetupAllowed": false
|
||||
},
|
||||
{
|
||||
"authenticatorFlow" : true,
|
||||
"requirement" : "ALTERNATIVE",
|
||||
"priority" : 31,
|
||||
"autheticatorFlow" : true,
|
||||
"flowAlias" : "base step up",
|
||||
"userSetupAllowed" : false
|
||||
"authenticatorFlow": true,
|
||||
"requirement": "ALTERNATIVE",
|
||||
"priority": 31,
|
||||
"autheticatorFlow": true,
|
||||
"flowAlias": "base step up",
|
||||
"userSetupAllowed": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id" : "00e79c8a-93b3-4c0d-857f-7bf5be19d0cb",
|
||||
"alias" : "base step up",
|
||||
"description" : "base step up flow",
|
||||
"providerId" : "basic-flow",
|
||||
"topLevel" : false,
|
||||
"builtIn" : false,
|
||||
"authenticationExecutions" : [
|
||||
"id": "00e79c8a-93b3-4c0d-857f-7bf5be19d0cb",
|
||||
"alias": "base step up",
|
||||
"description": "base step up flow",
|
||||
"providerId": "basic-flow",
|
||||
"topLevel": false,
|
||||
"builtIn": false,
|
||||
"authenticationExecutions": [
|
||||
{
|
||||
"authenticatorFlow" : true,
|
||||
"requirement" : "CONDITIONAL",
|
||||
"priority" : 2,
|
||||
"autheticatorFlow" : true,
|
||||
"flowAlias" : "step up level 1",
|
||||
"userSetupAllowed" : false
|
||||
"authenticatorFlow": true,
|
||||
"requirement": "CONDITIONAL",
|
||||
"priority": 2,
|
||||
"autheticatorFlow": true,
|
||||
"flowAlias": "step up level 1",
|
||||
"userSetupAllowed": false
|
||||
},
|
||||
{
|
||||
"authenticatorFlow" : true,
|
||||
"requirement" : "CONDITIONAL",
|
||||
"priority" : 3,
|
||||
"autheticatorFlow" : true,
|
||||
"flowAlias" : "step up level 2",
|
||||
"userSetupAllowed" : false
|
||||
"authenticatorFlow": true,
|
||||
"requirement": "CONDITIONAL",
|
||||
"priority": 3,
|
||||
"autheticatorFlow": true,
|
||||
"flowAlias": "step up level 2",
|
||||
"userSetupAllowed": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id" : "32ec29d9-dd12-45ce-bdbc-3e597aca4b51",
|
||||
"alias" : "step up level 1",
|
||||
"description" : "loa 1 with username and password",
|
||||
"providerId" : "basic-flow",
|
||||
"topLevel" : false,
|
||||
"builtIn" : false,
|
||||
"authenticationExecutions" : [
|
||||
"id": "32ec29d9-dd12-45ce-bdbc-3e597aca4b51",
|
||||
"alias": "step up level 1",
|
||||
"description": "loa 1 with username and password",
|
||||
"providerId": "basic-flow",
|
||||
"topLevel": false,
|
||||
"builtIn": false,
|
||||
"authenticationExecutions": [
|
||||
{
|
||||
"authenticatorConfig" : "loa level 1",
|
||||
"authenticator" : "conditional-level-of-authentication",
|
||||
"authenticatorFlow" : false,
|
||||
"requirement" : "REQUIRED",
|
||||
"priority" : 0,
|
||||
"autheticatorFlow" : false,
|
||||
"userSetupAllowed" : false
|
||||
"authenticatorConfig": "loa level 1",
|
||||
"authenticator": "conditional-level-of-authentication",
|
||||
"authenticatorFlow": false,
|
||||
"requirement": "REQUIRED",
|
||||
"priority": 0,
|
||||
"autheticatorFlow": false,
|
||||
"userSetupAllowed": false
|
||||
},
|
||||
{
|
||||
"authenticator" : "auth-username-password-form",
|
||||
"authenticatorFlow" : false,
|
||||
"requirement" : "REQUIRED",
|
||||
"priority" : 1,
|
||||
"autheticatorFlow" : false,
|
||||
"userSetupAllowed" : false
|
||||
"authenticator": "auth-username-password-form",
|
||||
"authenticatorFlow": false,
|
||||
"requirement": "REQUIRED",
|
||||
"priority": 1,
|
||||
"autheticatorFlow": false,
|
||||
"userSetupAllowed": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id" : "b8c46bfb-cf9e-414a-a773-b17e0fdaa475",
|
||||
"alias" : "step up level 2",
|
||||
"description" : "loa 2 with totp",
|
||||
"providerId" : "basic-flow",
|
||||
"topLevel" : false,
|
||||
"builtIn" : false,
|
||||
"authenticationExecutions" : [
|
||||
"id": "b8c46bfb-cf9e-414a-a773-b17e0fdaa475",
|
||||
"alias": "step up level 2",
|
||||
"description": "loa 2 with totp",
|
||||
"providerId": "basic-flow",
|
||||
"topLevel": false,
|
||||
"builtIn": false,
|
||||
"authenticationExecutions": [
|
||||
{
|
||||
"authenticatorConfig" : "loa level 2",
|
||||
"authenticator" : "conditional-level-of-authentication",
|
||||
"authenticatorFlow" : false,
|
||||
"requirement" : "REQUIRED",
|
||||
"priority" : 0,
|
||||
"autheticatorFlow" : false,
|
||||
"userSetupAllowed" : false
|
||||
"authenticatorConfig": "loa level 2",
|
||||
"authenticator": "conditional-level-of-authentication",
|
||||
"authenticatorFlow": false,
|
||||
"requirement": "REQUIRED",
|
||||
"priority": 0,
|
||||
"autheticatorFlow": false,
|
||||
"userSetupAllowed": false
|
||||
},
|
||||
{
|
||||
"authenticator" : "auth-otp-form",
|
||||
"authenticatorFlow" : false,
|
||||
"requirement" : "REQUIRED",
|
||||
"priority" : 1,
|
||||
"autheticatorFlow" : false,
|
||||
"userSetupAllowed" : false
|
||||
"authenticator": "auth-otp-form",
|
||||
"authenticatorFlow": false,
|
||||
"requirement": "REQUIRED",
|
||||
"priority": 1,
|
||||
"autheticatorFlow": false,
|
||||
"userSetupAllowed": false
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -2810,19 +2809,19 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"id" : "5b7b9811-6a2d-47ba-8722-7a4a5cb67cc3",
|
||||
"alias" : "loa level 2",
|
||||
"config" : {
|
||||
"loa-condition-level" : "2",
|
||||
"loa-max-age" : "36000"
|
||||
"id": "5b7b9811-6a2d-47ba-8722-7a4a5cb67cc3",
|
||||
"alias": "loa level 2",
|
||||
"config": {
|
||||
"loa-condition-level": "2",
|
||||
"loa-max-age": "36000"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id" : "fc6ac583-5601-4c97-a57b-3b044dc4007f",
|
||||
"alias" : "loa level 1",
|
||||
"config" : {
|
||||
"loa-condition-level" : "1",
|
||||
"loa-max-age" : "36000"
|
||||
"id": "fc6ac583-5601-4c97-a57b-3b044dc4007f",
|
||||
"alias": "loa level 1",
|
||||
"config": {
|
||||
"loa-condition-level": "1",
|
||||
"loa-max-age": "36000"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -2921,7 +2920,7 @@
|
||||
"parRequestUriLifespan": "60",
|
||||
"clientSessionMaxLifespan": "0",
|
||||
"organizationsEnabled": "false",
|
||||
"acr.loa.map" : "{\"regular\":\"1\",\"advanced\":\"2\"}"
|
||||
"acr.loa.map": "{\"regular\":\"1\",\"advanced\":\"2\"}"
|
||||
},
|
||||
"keycloakVersion": "25.0.0",
|
||||
"userManagedAccessAllowed": false,
|
||||
@@ -2932,4 +2931,4 @@
|
||||
"clientPolicies": {
|
||||
"policies": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -86,7 +86,6 @@ curl -ks -XPOST https://ocis.test/remote.php/dav/spaces/8d72036d-14a5-490f-889e-
|
||||
< X-Permitted-Cross-Domain-Policies: none
|
||||
< X-Request-Id: xxxxxxxxxxxxxxxxxxxxxx
|
||||
< X-Robots-Tag: none
|
||||
< X-Xss-Protection: 1; mode=block
|
||||
<
|
||||
* Connection #0 to host localhost left intact
|
||||
```
|
||||
@@ -211,7 +210,6 @@ curl -ks -XPOST https://ocis.test/remote.php/dav/spaces/{space-id} \
|
||||
< X-Permitted-Cross-Domain-Policies: none
|
||||
< X-Request-Id: xxxxxxxxxxxxxxxxxxxxxx
|
||||
< X-Robots-Tag: none
|
||||
< X-Xss-Protection: 1; mode=block
|
||||
<
|
||||
* Connection #0 to host localhost left intact
|
||||
```
|
||||
|
||||
@@ -167,7 +167,6 @@ The request will fail with `507 Insufficient Storage`:
|
||||
< X-Frame-Options: SAMEORIGIN
|
||||
< X-Permitted-Cross-Domain-Policies: none
|
||||
< X-Robots-Tag: none
|
||||
< X-Xss-Protection: 1; mode=block
|
||||
<
|
||||
* Connection #0 to host localhost left intact
|
||||
* Closing connection 0
|
||||
|
||||
@@ -1413,7 +1413,6 @@
|
||||
"xRobotsTag": "none",
|
||||
"xFrameOptions": "SAMEORIGIN",
|
||||
"contentSecurityPolicy": "frame-src 'self'; frame-ancestors 'self'; object-src 'none';",
|
||||
"xXSSProtection": "1; mode=block",
|
||||
"strictTransportSecurity": "max-age=31536000; includeSubDomains"
|
||||
},
|
||||
"smtpServer": {
|
||||
@@ -2745,4 +2744,4 @@
|
||||
"clientPolicies": {
|
||||
"policies": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -55,7 +55,6 @@ func Security(cspConfig *config.CSP) func(h http.Handler) http.Handler {
|
||||
}
|
||||
|
||||
secureMiddleware := secure.New(secure.Options{
|
||||
BrowserXssFilter: true,
|
||||
ContentSecurityPolicy: cspBuilder.MustBuild(),
|
||||
ContentTypeNosniff: true,
|
||||
CustomFrameOptionsValue: "SAMEORIGIN",
|
||||
|
||||
@@ -223,8 +223,7 @@ Feature: download file
|
||||
| X-Content-Type-Options | nosniff |
|
||||
| X-Frame-Options | SAMEORIGIN |
|
||||
| X-Permitted-Cross-Domain-Policies | none |
|
||||
| X-Robots-Tag | none |
|
||||
| X-XSS-Protection | 1; mode=block |
|
||||
| X-Robots-Tag | none |
|
||||
And the downloaded content should be "test file"
|
||||
Examples:
|
||||
| dav-path-version | file-name | encoded-file-name |
|
||||
@@ -251,8 +250,7 @@ Feature: download file
|
||||
| X-Content-Type-Options | nosniff |
|
||||
| X-Frame-Options | SAMEORIGIN |
|
||||
| X-Permitted-Cross-Domain-Policies | none |
|
||||
| X-Robots-Tag | none |
|
||||
| X-XSS-Protection | 1; mode=block |
|
||||
| X-Robots-Tag | none |
|
||||
And the downloaded content should be "test file"
|
||||
Examples:
|
||||
| dav-path-version |
|
||||
|
||||
@@ -1491,7 +1491,6 @@
|
||||
"xRobotsTag": "none",
|
||||
"xFrameOptions": "SAMEORIGIN",
|
||||
"contentSecurityPolicy": "frame-src 'self'; frame-ancestors 'self'; object-src 'none';",
|
||||
"xXSSProtection": "1; mode=block",
|
||||
"strictTransportSecurity": "max-age=31536000; includeSubDomains"
|
||||
},
|
||||
"smtpServer": {},
|
||||
@@ -2329,4 +2328,4 @@
|
||||
"clientPolicies": {
|
||||
"policies": []
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user