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

Support CVE test #154

Closed
derevnjuk opened this issue Jun 5, 2023 · 0 comments · Fixed by #155
Closed

Support CVE test #154

derevnjuk opened this issue Jun 5, 2023 · 0 comments · Fixed by #155
Assignees
Labels
Type: enhancement New feature or request.

Comments

@derevnjuk
Copy link
Member

Add support for the cve_test test type to enable the "Common Vulnerability Exposure (CVEs)" vulnerabilities.

To run this test, it should be possible to use the following code snippet:

[Fact]
public async Task Get_Users_ShouldNotFindCVEs()
{
  var target = new Target($"{_fixture.Url}/Users")
    .WithMethod(HttpMethod.Get);

  var builder = new ScanSettingsBuilder()
    .WithName(nameof(Get_Users_ShouldNotFindCVEs))
    .WithTests(new List<TestType> { TestType.Cve });

  await _runner
    .CreateScan(builder)
    .Run(target);
}

Please see the following references for more information on this vulnerability:

@derevnjuk derevnjuk added the Type: enhancement New feature or request. label Jun 5, 2023
@derevnjuk derevnjuk self-assigned this Jun 5, 2023
derevnjuk added a commit that referenced this issue Jun 5, 2023
derevnjuk added a commit that referenced this issue Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: enhancement New feature or request.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant