Minor formatting improvements in SecurityReport.js

This commit is contained in:
VakarisZ 2021-03-01 15:50:02 +02:00 committed by Mike Salvatore
parent e49b7b85cc
commit 9171ed8190
1 changed files with 57 additions and 55 deletions

View File

@ -267,7 +267,8 @@ class ReportPageComponent extends AuthComponent {
variant={"link"} variant={"link"}
href="https://www.cvedetails.com/cve/cve-2015-1427" href="https://www.cvedetails.com/cve/cve-2015-1427"
target={"_blank"} target={"_blank"}
className={"security-report-link"}>CVE-2015-1427 className={"security-report-link"}>
CVE-2015-1427
</Button>. </Button>.
</li>} </li>}
{this.state.report.overview.issues[this.Issue.VSFTPD] && {this.state.report.overview.issues[this.Issue.VSFTPD] &&
@ -435,10 +436,11 @@ class ReportPageComponent extends AuthComponent {
href="https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2020-1472" href="https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2020-1472"
target={"_blank"} target={"_blank"}
className={"security-report-link"}> className={"security-report-link"}>
CVE-2020-1472</Button>)! CVE-2020-1472
</Button>)!
</>) </>)
} else { } else {
return none; return null;
} }
return (<li>{zerologonOverview}</li>) return (<li>{zerologonOverview}</li>)
} }
@ -985,7 +987,8 @@ class ReportPageComponent extends AuthComponent {
href="https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/xp-cmdshell-server-configuration-option?view=sql-server-2017" href="https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/xp-cmdshell-server-configuration-option?view=sql-server-2017"
target={"_blank"} target={"_blank"}
className={"security-report-link"}> className={"security-report-link"}>
Microsoft's documentation. </Button> Microsoft's documentation.
</Button>
</CollapsibleWellComponent> </CollapsibleWellComponent>
</> </>
); );
@ -1007,9 +1010,9 @@ class ReportPageComponent extends AuthComponent {
variant={"link"} variant={"link"}
href="https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2020-1472" href="https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2020-1472"
target={"_blank"} target={"_blank"}
className={"security-report-link"} className={"security-report-link"}>
> Microsoft's documentation.
Microsoft's documentation.</Button> </Button>
{!issue.password_restored ? {!issue.password_restored ?
<div className={'info-pane-warning'} key={'warning'}> <div className={'info-pane-warning'} key={'warning'}>
<br/><WarningIcon/> <br/><WarningIcon/>
@ -1020,8 +1023,7 @@ class ReportPageComponent extends AuthComponent {
variant={"link"} variant={"link"}
href="https://www.guardicore.com/infectionmonkey/docs/reference/exploiters/zerologon/" href="https://www.guardicore.com/infectionmonkey/docs/reference/exploiters/zerologon/"
target={"_blank"} target={"_blank"}
className={"security-report-link"} className={"security-report-link"}>
>
here here
</Button>. </Button>.
</span> </span>
@ -1034,76 +1036,76 @@ class ReportPageComponent extends AuthComponent {
generateIssue = (issue) => { generateIssue = (issue) => {
let issueData; let issueData;
switch (issue.type) { switch (issue.type) {
case 'vsftp': case "vsftp":
issueData = this.generateVsftpdBackdoorIssue(issue); issueData = this.generateVsftpdBackdoorIssue(issue);
break; break;
case 'smb_password': case "smb_password":
issueData = this.generateSmbPasswordIssue(issue); issueData = this.generateSmbPasswordIssue(issue);
break; break;
case 'smb_pth': case "smb_pth":
issueData = this.generateSmbPthIssue(issue); issueData = this.generateSmbPthIssue(issue);
break; break;
case 'wmi_password': case "wmi_password":
issueData = this.generateWmiPasswordIssue(issue); issueData = this.generateWmiPasswordIssue(issue);
break; break;
case 'wmi_pth': case "wmi_pth":
issueData = this.generateWmiPthIssue(issue); issueData = this.generateWmiPthIssue(issue);
break; break;
case 'ssh': case "ssh":
issueData = this.generateSshIssue(issue); issueData = this.generateSshIssue(issue);
break; break;
case 'ssh_key': case "ssh_key":
issueData = this.generateSshKeysIssue(issue); issueData = this.generateSshKeysIssue(issue);
break; break;
case 'sambacry': case "sambacry":
issueData = this.generateSambaCryIssue(issue); issueData = this.generateSambaCryIssue(issue);
break; break;
case 'elastic': case "elastic":
issueData = this.generateElasticIssue(issue); issueData = this.generateElasticIssue(issue);
break; break;
case 'shellshock': case "shellshock":
issueData = this.generateShellshockIssue(issue); issueData = this.generateShellshockIssue(issue);
break; break;
case 'conficker': case "conficker":
issueData = this.generateConfickerIssue(issue); issueData = this.generateConfickerIssue(issue);
break; break;
case 'island_cross_segment': case "island_cross_segment":
issueData = this.generateIslandCrossSegmentIssue(issue); issueData = this.generateIslandCrossSegmentIssue(issue);
break; break;
case 'shared_passwords': case "shared_passwords":
issueData = this.generateSharedCredsIssue(issue); issueData = this.generateSharedCredsIssue(issue);
break; break;
case 'shared_passwords_domain': case "shared_passwords_domain":
issueData = this.generateSharedCredsDomainIssue(issue); issueData = this.generateSharedCredsDomainIssue(issue);
break; break;
case 'shared_admins_domain': case "shared_admins_domain":
issueData = this.generateSharedLocalAdminsIssue(issue); issueData = this.generateSharedLocalAdminsIssue(issue);
break; break;
case 'strong_users_on_crit': case "strong_users_on_crit":
issueData = this.generateStrongUsersOnCritIssue(issue); issueData = this.generateStrongUsersOnCritIssue(issue);
break; break;
case 'tunnel': case "tunnel":
issueData = this.generateTunnelIssue(issue); issueData = this.generateTunnelIssue(issue);
break; break;
case 'azure_password': case "azure_password":
issueData = this.generateAzureIssue(issue); issueData = this.generateAzureIssue(issue);
break; break;
case 'struts2': case "struts2":
issueData = this.generateStruts2Issue(issue); issueData = this.generateStruts2Issue(issue);
break; break;
case 'weblogic': case "weblogic":
issueData = this.generateWebLogicIssue(issue); issueData = this.generateWebLogicIssue(issue);
break; break;
case 'hadoop': case "hadoop":
issueData = this.generateHadoopIssue(issue); issueData = this.generateHadoopIssue(issue);
break; break;
case 'mssql': case "mssql":
issueData = this.generateMSSQLIssue(issue); issueData = this.generateMSSQLIssue(issue);
break; break;
case 'drupal': case "drupal":
issueData = this.generateDrupalIssue(issue); issueData = this.generateDrupalIssue(issue);
break; break;
case 'zerologon': case "zerologon":
issueData = this.generateZerologonIssue(issue); issueData = this.generateZerologonIssue(issue);
break; break;
} }