forked from p15670423/monkey
report: rename ZEROLOGON_CRED_RESTORE_FAILED -> ZEROLOGON_PASSWORD_RESTORED
This commit is contained in:
parent
94ac75e649
commit
67fd1712b5
|
@ -65,7 +65,7 @@ class ReportService:
|
|||
VSFTPD = 13
|
||||
DRUPAL = 14
|
||||
ZEROLOGON = 15
|
||||
ZEROLOGON_CRED_RESTORE_FAILED = 16
|
||||
ZEROLOGON_PASSWORD_RESTORED = 16
|
||||
|
||||
class WARNINGS_DICT(Enum):
|
||||
CROSS_SEGMENT = 0
|
||||
|
@ -716,7 +716,7 @@ class ReportService:
|
|||
issues_byte_array[ReportService.ISSUES_DICT.DRUPAL.value] = True
|
||||
elif issue['type'] == 'zerologon':
|
||||
if issue['password_restored']:
|
||||
issues_byte_array[ReportService.ISSUES_DICT.ZEROLOGON_CRED_RESTORE_FAILED.value] = True
|
||||
issues_byte_array[ReportService.ISSUES_DICT.ZEROLOGON_PASSWORD_RESTORED.value] = True
|
||||
issues_byte_array[ReportService.ISSUES_DICT.ZEROLOGON.value] = True
|
||||
elif issue['type'].endswith('_password') and issue['password'] in config_passwords and \
|
||||
issue['username'] in config_users or issue['type'] == 'ssh':
|
||||
|
|
|
@ -44,7 +44,7 @@ class ReportPageComponent extends AuthComponent {
|
|||
VSFTPD: 13,
|
||||
DRUPAL: 14,
|
||||
ZEROLOGON: 15,
|
||||
ZEROLOGON_CRED_RESTORE_FAILED: 16
|
||||
ZEROLOGON_PASSWORD_RESTORED: 16
|
||||
};
|
||||
|
||||
Warning =
|
||||
|
@ -368,7 +368,7 @@ class ReportPageComponent extends AuthComponent {
|
|||
let zeroLogonOverview = [];
|
||||
|
||||
// TODO finish this by linking to the documentation
|
||||
if(this.state.report.overview.issues[this.Issue.ZEROLOGON_CRED_RESTORE_FAILED]) {
|
||||
if(!this.state.report.overview.issues[this.Issue.ZEROLOGON_PASSWORD_RESTORED]) {
|
||||
zeroLogonOverview.push(<span>
|
||||
<WarningIcon/> Automatic password restoration on a domain controller failed!
|
||||
<Button variant={"link"} href={"#"} target={"_blank"} className={"security-report-link"}>
|
||||
|
|
Loading…
Reference in New Issue