ZAP Scanning Report

Generated with ZAP on seg. 11 mar. 2024, at 22:12:32

ZAP Version: 2.14.0

Contents

About this report

Report parameters

Contexts

No contexts were selected, so all contexts were included by default.

Sites

The following sites were included:

  • http://localhost:8082

(If no sites were selected, all sites were included by default.)

An included site must also be within one of the included contexts for its data to be included in the report.

Risk levels

Included: Alto, Médio, Baixo, Informativo

Excluded: None

Confidence levels

Included: User Confirmed, Alto, Médio, Baixo

Excluded: User Confirmed, Alto, Médio, Baixo, Falso Positivo

Summaries

Alert counts by risk and confidence

This table shows the number of alerts for each level of risk and confidence included in the report.

(The percentages in brackets represent the count as a percentage of the total number of alerts included in the report, rounded to one decimal place.)

Confidence
User Confirmed Alto Médio Baixo Total
Risk Alto 0
(0,0%)
0
(0,0%)
0
(0,0%)
0
(0,0%)
0
(0,0%)
Médio 0
(0,0%)
0
(0,0%)
0
(0,0%)
0
(0,0%)
0
(0,0%)
Baixo 0
(0,0%)
0
(0,0%)
1
(100,0%)
0
(0,0%)
1
(100,0%)
Informativo 0
(0,0%)
0
(0,0%)
0
(0,0%)
0
(0,0%)
0
(0,0%)
Total 0
(0,0%)
0
(0,0%)
1
(100,0%)
0
(0,0%)
1
(100%)

Alert counts by site and risk

This table shows, for each site for which one or more alerts were raised, the number of alerts raised at each risk level.

Alerts with a confidence level of "False Positive" have been excluded from these counts.

(The numbers in brackets are the number of alerts raised for the site at or above that risk level.)

Risk
Alto
(= Alto)
Médio
(>= Médio)
Baixo
(>= Baixo)
Informativo
(>= Informativo)
Site http://localhost:8082 0
(0)
0
(0)
1
(1)
0
(1)

Alert counts by alert type

This table shows the number of alerts of each alert type, together with the alert type's risk level.

(The percentages in brackets represent each count as a percentage, rounded to one decimal place, of the total number of alerts included in this report.)

Alert type Risk Count
X-Content-Type-Options Header Missing Baixo 1
(100,0%)
Total 1

Alerts

  1. Risk=Baixo, Confidence=Médio (1)

    1. http://localhost:8082 (1)

      1. X-Content-Type-Options Header Missing (1)
        1. GET http://localhost:8082/api/v1/products/category/LANCHE?page=0&size=10
          Alert tags
          Alert description

          The Anti-MIME-Sniffing header X-Content-Type-Options was not set to 'nosniff'. This allows older versions of Internet Explorer and Chrome to perform MIME-sniffing on the response body, potentially causing the response body to be interpreted and displayed as a content type other than the declared content type. Current (early 2014) and legacy versions of Firefox will use the declared content type (if one is set), rather than performing MIME-sniffing.

          Other info

          This issue still applies to error type pages (401, 403, 500, etc.) as those pages are often still affected by injection issues, in which case there is still concern for browsers sniffing pages away from their actual content type.

          At "High" threshold this scan rule will not alert on client or server error responses.

          Request
          Request line and header section (311 bytes)
          GET http://localhost:8082/api/v1/products/category/LANCHE?page=0&size=10 HTTP/1.1
          User-Agent: PostmanRuntime/7.28.1
          Accept: */*
          Postman-Token: 00590b6f-ac34-499b-95c1-66d3cfcd856c
          Connection: keep-alive
          Referer: http://localhost:8082/api/v1/products/category/LANCHE?page=0&size=10
          host: localhost:8082
          
          
          Request body (0 bytes)
          Response
          Status line and header section (154 bytes)
          HTTP/1.1 200
          Content-Type: application/json
          Date: Tue, 12 Mar 2024 01:11:02 GMT
          Keep-Alive: timeout=60
          Connection: keep-alive
          content-length: 170
          
          
          Response body (170 bytes)
          {"code":200,"body":[{"sku":"65efab871c5ba5178ce3e871","title":"X salada","category":"LANCHE","description":"test","price":12.1,"image":"test"}],"hasNext":false,"total":1}
          Parameter
          x-content-type-options
          Solution

          Ensure that the application/web server sets the Content-Type header appropriately, and that it sets the X-Content-Type-Options header to 'nosniff' for all web pages.

          If possible, ensure that the end user uses a standards-compliant and modern web browser that does not perform MIME-sniffing at all, or that can be directed by the web application/web server to not perform MIME-sniffing.

Appendix

Alert types

This section contains additional information on the types of alerts in the report.

  1. X-Content-Type-Options Header Missing

    Source raised by a passive scanner (X-Content-Type-Options Header Missing)
    CWE ID 693
    WASC ID 15
    Reference
    1. http://msdn.microsoft.com/en-us/library/ie/gg622941%28v=vs.85%29.aspx
    2. https://owasp.org/www-community/Security_Headers