forked from p15670423/monkey
Changed the logic of zerologon password restoration issue overview to be more consistent with the function of issue map.
This commit is contained in:
parent
abc76e0c73
commit
b3e9922d0f
|
@ -65,7 +65,7 @@ class ReportService:
|
||||||
VSFTPD = 13
|
VSFTPD = 13
|
||||||
DRUPAL = 14
|
DRUPAL = 14
|
||||||
ZEROLOGON = 15
|
ZEROLOGON = 15
|
||||||
ZEROLOGON_PASSWORD_RESTORED = 16
|
ZEROLOGON_PASSWORD_RESTORE_FAILED = 16
|
||||||
|
|
||||||
class WARNINGS_DICT(Enum):
|
class WARNINGS_DICT(Enum):
|
||||||
CROSS_SEGMENT = 0
|
CROSS_SEGMENT = 0
|
||||||
|
@ -715,8 +715,8 @@ class ReportService:
|
||||||
elif issue['type'] == 'drupal':
|
elif issue['type'] == 'drupal':
|
||||||
issues_byte_array[ReportService.ISSUES_DICT.DRUPAL.value] = True
|
issues_byte_array[ReportService.ISSUES_DICT.DRUPAL.value] = True
|
||||||
elif issue['type'] == 'zerologon':
|
elif issue['type'] == 'zerologon':
|
||||||
if issue['password_restored']:
|
if not issue['password_restored']:
|
||||||
issues_byte_array[ReportService.ISSUES_DICT.ZEROLOGON_PASSWORD_RESTORED.value] = True
|
issues_byte_array[ReportService.ISSUES_DICT.ZEROLOGON_PASSWORD_RESTORE_FAILED.value] = True
|
||||||
issues_byte_array[ReportService.ISSUES_DICT.ZEROLOGON.value] = True
|
issues_byte_array[ReportService.ISSUES_DICT.ZEROLOGON.value] = True
|
||||||
elif issue['type'].endswith('_password') and issue['password'] in config_passwords and \
|
elif issue['type'].endswith('_password') and issue['password'] in config_passwords and \
|
||||||
issue['username'] in config_users or issue['type'] == 'ssh':
|
issue['username'] in config_users or issue['type'] == 'ssh':
|
||||||
|
|
|
@ -44,7 +44,7 @@ class ReportPageComponent extends AuthComponent {
|
||||||
VSFTPD: 13,
|
VSFTPD: 13,
|
||||||
DRUPAL: 14,
|
DRUPAL: 14,
|
||||||
ZEROLOGON: 15,
|
ZEROLOGON: 15,
|
||||||
ZEROLOGON_PASSWORD_RESTORED: 16
|
ZEROLOGON_PASSWORD_RESTORE_FAILED: 16
|
||||||
};
|
};
|
||||||
|
|
||||||
Warning =
|
Warning =
|
||||||
|
@ -367,8 +367,7 @@ class ReportPageComponent extends AuthComponent {
|
||||||
generateZerologonOverview() {
|
generateZerologonOverview() {
|
||||||
let zerologonOverview = [];
|
let zerologonOverview = [];
|
||||||
|
|
||||||
// TODO finish this by linking to the documentation
|
if (this.state.report.overview.issues[this.Issue.ZEROLOGON_PASSWORD_RESTORE_FAILED]) {
|
||||||
if(!this.state.report.overview.issues[this.Issue.ZEROLOGON_PASSWORD_RESTORED]) {
|
|
||||||
zerologonOverview.push(<span>
|
zerologonOverview.push(<span>
|
||||||
<WarningIcon/> Automatic password restoration on a domain controller failed!
|
<WarningIcon/> Automatic password restoration on a domain controller failed!
|
||||||
<Button variant={"link"} href={"#"} target={"_blank"} className={"security-report-link"}>
|
<Button variant={"link"} href={"#"} target={"_blank"} className={"security-report-link"}>
|
||||||
|
|
Loading…
Reference in New Issue