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

Nem funkcionális tesztek #15

Merged
merged 20 commits into from
May 22, 2024
Merged

Nem funkcionális tesztek #15

merged 20 commits into from
May 22, 2024

Conversation

HurtonBBJ
Copy link
Contributor

No description provided.

@HurtonBBJ HurtonBBJ self-assigned this May 20, 2024
Copy link

github-actions bot commented May 20, 2024

Package statistics

Vulnerable packages

Deprecated packages

Outdated packages

InForm.Web

net8.0:

  • FluentValidation: 11.9.0 -> 11.9.1
  • Microsoft.AspNetCore.Components.WebAssembly: 8.0.2 -> 8.0.5
  • Microsoft.AspNetCore.Components.WebAssembly.DevServer: 8.0.2 -> 8.0.5

InForm.Server

net8.0:

  • Microsoft.AspNetCore.OpenApi: 8.0.2 -> 8.0.5
  • Microsoft.EntityFrameworkCore: 8.0.2 -> 8.0.5
  • Microsoft.EntityFrameworkCore.Abstractions: 8.0.2 -> 8.0.5
  • Microsoft.EntityFrameworkCore.Analyzers: 8.0.2 -> 8.0.5
  • Microsoft.EntityFrameworkCore.Design: 8.0.2 -> 8.0.5
  • Microsoft.EntityFrameworkCore.Relational: 8.0.2 -> 8.0.5
  • Microsoft.EntityFrameworkCore.Tools: 8.0.2 -> 8.0.5
  • Npgsql.EntityFrameworkCore.PostgreSQL: 8.0.2 -> 8.0.4
  • Swashbuckle.AspNetCore: 6.5.0 -> 6.6.2

ModelConfigurationGenerator

netstandard2.0:

  • Microsoft.CodeAnalysis.CSharp: 4.8.0 -> 4.9.2
  • Microsoft.CodeAnalysis.CSharp.Workspaces: 4.8.0 -> 4.9.2

InForm.Client

net8.0:

  • FluentValidation: 11.9.0 -> 11.9.1

InForm.Specs

net8.0:

  • FluentAssertions: 6.2.0 -> 6.12.0
  • Microsoft.NET.Test.Sdk: 17.0.0 -> 17.9.0
  • SpecFlow: 3.9.40 -> 3.9.74
  • SpecFlow.xUnit: 3.9.40 -> 3.9.74
  • xunit: 2.4.1 -> 2.8.0
  • xunit.runner.visualstudio: 2.4.3 -> 2.8.0

InForm.Client.Test

net8.0:

  • coverlet.collector: 6.0.0 -> 6.0.2
  • Microsoft.NET.Test.Sdk: 17.8.0 -> 17.9.0
  • xunit: 2.5.3 -> 2.8.0
  • xunit.runner.visualstudio: 2.5.3 -> 2.8.0

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

Copy link

github-actions bot commented May 20, 2024

Load test results:

Type Name Request Count Median Response Time Average Response Time Max Response Time Requests/s 90% 95% 99%
POST /api/fills/[id] 45226 1800 1901.51 6521 332.467 2800 3400 4800
POST /api/fills/[id]:retrieve 2209 1600 1826.31 6307 16.2389 3200 3800 5200
POST /api/forms 3000 2500 4484.76 31134 22.0537 9300 21000 29000
GET /api/forms/[id] 45638 1700 1758.88 6283 335.496 2500 3200 4500
nan Aggregated 96073 1700 1912.69 31134 706.255 2800 3400 5200

@HurtonBBJ HurtonBBJ requested review from bodand and peterz0ne May 20, 2024 23:09
@HurtonBBJ HurtonBBJ requested review from simanm02 and erdbal May 20, 2024 23:09
Copy link
Contributor

@bodand bodand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Még a saját feladatod doksiját kellene megcsinálni a doc mappába, ahogy a többiek vannak. A közös doksit majd intézzük.

@bodand bodand merged commit e727b3c into main May 22, 2024
5 checks passed
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.

2 participants