File tree 1 file changed +2
-0
lines changed
src/main/java/io/mixeway/api/vulnmanage/model 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ public <S extends VulnSource> Vuln(ProjectVulnerability projectVulnerability, St
88
88
case Constants .API_SCANNER_WEBAPP :
89
89
if (target instanceof WebApp && projectVulnerability .getVulnerabilitySource ().getName ().equals (Constants .VULN_TYPE_WEBAPP )) {
90
90
this .setGrade (projectVulnerability .getGrade ());
91
+ this .setType (Constants .API_SCANNER_WEBAPP );
91
92
this .setVulnerabilityName (projectVulnerability .getVulnerability ().getName ());
92
93
this .setDescription (Objects .toString (projectVulnerability .getDescription (), "Description missing" ) + "\n \n " + Objects .toString (projectVulnerability .getRecommendation (), "" ));
93
94
this .setBaseURL (projectVulnerability .getWebApp ().getUrl ());
@@ -105,6 +106,7 @@ public <S extends VulnSource> Vuln(ProjectVulnerability projectVulnerability, St
105
106
case Constants .API_SCANNER_OPENVAS :
106
107
if (target instanceof Interface && projectVulnerability .getVulnerabilitySource ().getName ().equals (Constants .VULN_TYPE_NETWORK )) {
107
108
this .setGrade (projectVulnerability .getGrade ());
109
+ this .setType (Constants .API_SCANNER_OPENVAS );
108
110
this .setVulnerabilityName (projectVulnerability .getVulnerability ().getName ());
109
111
this .setIpAddress (projectVulnerability .getAnInterface ().getPrivateip () != null && !projectVulnerability .getAnInterface ().getPrivateip ().equals ("" ) ?
110
112
projectVulnerability .getAnInterface ().getPrivateip () :
You can’t perform that action at this time.
0 commit comments