Skip to content

Commit

Permalink
fixing scan manage
Browse files Browse the repository at this point in the history
  • Loading branch information
siewer committed Jun 21, 2024
1 parent f1f019f commit ae5909e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/io/mixeway/api/vulnmanage/model/Vuln.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public <S extends VulnSource> Vuln(ProjectVulnerability projectVulnerability, St
case Constants.API_SCANNER_WEBAPP:
if (target instanceof WebApp && projectVulnerability.getVulnerabilitySource().getName().equals(Constants.VULN_TYPE_WEBAPP)) {
this.setGrade(projectVulnerability.getGrade());
this.setType(Constants.API_SCANNER_WEBAPP);
this.setVulnerabilityName(projectVulnerability.getVulnerability().getName());
this.setDescription(Objects.toString(projectVulnerability.getDescription(), "Description missing") + "\n\n" + Objects.toString(projectVulnerability.getRecommendation(), ""));
this.setBaseURL(projectVulnerability.getWebApp().getUrl());
Expand All @@ -105,6 +106,7 @@ public <S extends VulnSource> Vuln(ProjectVulnerability projectVulnerability, St
case Constants.API_SCANNER_OPENVAS:
if (target instanceof Interface && projectVulnerability.getVulnerabilitySource().getName().equals(Constants.VULN_TYPE_NETWORK)) {
this.setGrade(projectVulnerability.getGrade());
this.setType(Constants.API_SCANNER_OPENVAS);
this.setVulnerabilityName(projectVulnerability.getVulnerability().getName());
this.setIpAddress(projectVulnerability.getAnInterface().getPrivateip() != null && !projectVulnerability.getAnInterface().getPrivateip().equals("") ?
projectVulnerability.getAnInterface().getPrivateip() :
Expand Down

0 comments on commit ae5909e

Please sign in to comment.