Missing or insecure "X-Content-Type-Options" header
sureshhcl opened this issue · 0 comments
sureshhcl commented
Stratos Version
4.4.0
Frontend Deployment type
- Cloud Foundry Application (cf push)
- Kubernetes, using a helm chart
- Docker, single container deploying all components
- npm run start
- Other (please specify below)
Backend (Jet Stream) Deployment type
- Cloud Foundry Application (cf push)
- Kubernetes, using a helm chart
- Docker, single container deploying all components
- Other (please specify below)
Expected behaviour
AppScan DAST scan should show secure "X-Content-Type-Options" header
Actual behaviour
AppScan DAST scan shows Missing or insecure "X-Content-Type-Options" header
Steps to reproduce the behavior
AppScan DAST scans for Stratos URL https://ui.169.53.186.50.nip.io. AppScan detected that the "X-Content-Type-Options" response header is missing or has an insecure value, which increases exposure to drive-by download attacks
Log output covering before error and any error statements
Cookie: console-session=MTYxNTM4NzIzMnxCUXdBQWpFeXztgIxZj4pvgrBZifTEg0HKyav_eL0siIp-DGc0CaLQig==
Connection: keep-alive
Sec-Fetch-Mode: cors
Host: ui.169.53.186.50.nip.io
Accept: application/json, text/plain, */*
Accept-Language: en-US
Sec-Fetch-Dest: empty
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Connection: keep-alive
Access-Control-Allow-Credentials: true
Pragma: no-cache
Access-Control-Allow-Origin:
Vary: Origin
X-Frame-Options: SAMEORIGIN
Cache-Control: no-store
Strict-Transport-Security: max-age=15724800; includeSubDomains
Date: Wed, 10 Mar 2021 14:45:51 GMT
Content-Type: application/json; charset=UTF-8
{
"version": {
"proxy_version": "4.4.0",
"database_version": 20200902162200
},
"user": {
"guid": "cf95db97-8e30-41f2-88c2-dd4ace246c94",
"name": "admin",
"admin": true,
"scopes": [
Detailed Description
Enforce the use of HTTPS when sending sensitive information
Context
Possible Implementation
Config your server to use the "X-Content-Type-Options" header with "nosniff" value