Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deps #2

Merged
merged 3 commits into from
May 29, 2024
Merged

Update deps #2

merged 3 commits into from
May 29, 2024

Conversation

bodand
Copy link
Owner

@bodand bodand commented May 29, 2024

No description provided.

Copy link

Package statistics

Vulnerable packages

Deprecated packages

Outdated packages

Copy link

ZAP Scanning Report

Summary of Alerts

Risk Level Number of Alerts
High 0
Medium 0
Low 2
Informational 1

Alerts

Name Risk Level Number of Instances
Application Error Disclosure Low 1
X-Content-Type-Options Header Missing Low 1
User Agent Fuzzer Informational 12

Alert Detail

Application Error Disclosure

Low (Medium)

Description

This page contains an error/warning message that may disclose sensitive information like the location of the file that produced the unhandled exception. This information can be used to launch further attacks against the web application. The alert could be a false positive if the error message is found inside a documentation page.

Instances: 1

Solution

Review the source code of this page. Implement custom error pages. Consider implementing a mechanism to provide a unique error reference/identifier to the client (browser) while logging the details on the server side and not exposing them to the user.

Reference

CWE Id: 200

WASC Id: 13

Source ID: 3

X-Content-Type-Options Header Missing

Low (Medium)

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.

  • URL: http://localhost:9000/swagger/v1/swagger.json
    • Method: GET
    • Parameter: x-content-type-options
    • Attack: ``
    • Evidence: ``
    • 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.

Instances: 1

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.

Reference

CWE Id: 693

WASC Id: 15

Source ID: 3

User Agent Fuzzer

Informational (Medium)

Description

Check for differences in response based on fuzzed User Agent (eg. mobile sites, access as a Search Engine Crawler). Compares the response statuscode and the hashcode of the response body with the original response.

  • URL: http://localhost:9000/swagger
    • Method: GET
    • Parameter: Header User-Agent
    • Attack: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
    • Evidence: ``
    • Other Info: ``
  • URL: http://localhost:9000/swagger
    • Method: GET
    • Parameter: Header User-Agent
    • Attack: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
    • Evidence: ``
    • Other Info: ``
  • URL: http://localhost:9000/swagger
    • Method: GET
    • Parameter: Header User-Agent
    • Attack: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)
    • Evidence: ``
    • Other Info: ``
  • URL: http://localhost:9000/swagger
    • Method: GET
    • Parameter: Header User-Agent
    • Attack: Mozilla/5.0 (Windows NT 10.0; Trident/7.0; rv:11.0) like Gecko
    • Evidence: ``
    • Other Info: ``
  • URL: http://localhost:9000/swagger
    • Method: GET
    • Parameter: Header User-Agent
    • Attack: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3739.0 Safari/537.36 Edg/75.0.109.0
    • Evidence: ``
    • Other Info: ``
  • URL: http://localhost:9000/swagger
    • Method: GET
    • Parameter: Header User-Agent
    • Attack: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36
    • Evidence: ``
    • Other Info: ``
  • URL: http://localhost:9000/swagger
    • Method: GET
    • Parameter: Header User-Agent
    • Attack: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/91.0
    • Evidence: ``
    • Other Info: ``
  • URL: http://localhost:9000/swagger
    • Method: GET
    • Parameter: Header User-Agent
    • Attack: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
    • Evidence: ``
    • Other Info: ``
  • URL: http://localhost:9000/swagger
    • Method: GET
    • Parameter: Header User-Agent
    • Attack: Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)
    • Evidence: ``
    • Other Info: ``
  • URL: http://localhost:9000/swagger
    • Method: GET
    • Parameter: Header User-Agent
    • Attack: Mozilla/5.0 (iPhone; CPU iPhone OS 8_0_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12A366 Safari/600.1.4
    • Evidence: ``
    • Other Info: ``
  • URL: http://localhost:9000/swagger
    • Method: GET
    • Parameter: Header User-Agent
    • Attack: Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16
    • Evidence: ``
    • Other Info: ``
  • URL: http://localhost:9000/swagger
    • Method: GET
    • Parameter: Header User-Agent
    • Attack: msnbot/1.1 (+http://search.msn.com/msnbot.htm)
    • Evidence: ``
    • Other Info: ``

Instances: 12

Solution

Reference

Source ID: 1

@bodand bodand merged commit 186e3fa into trunk May 29, 2024
4 of 5 checks passed
@bodand bodand deleted the deps branch May 29, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant