UI: Check for actual stolen credentials in issues
This commit is contained in:
parent
89f5ff89d2
commit
bfda71dd45
|
@ -622,6 +622,9 @@ class ReportPageComponent extends AuthComponent {
|
||||||
|
|
||||||
isStolenCredentialsIssue(issue) {
|
isStolenCredentialsIssue(issue) {
|
||||||
return ( Object.prototype.hasOwnProperty.call(issue, 'credential_type') &&
|
return ( Object.prototype.hasOwnProperty.call(issue, 'credential_type') &&
|
||||||
|
(getCredentialsSecrets(this.state.stolenCredentials, 'password').includes(issue.password) ||
|
||||||
|
getCredentialsSecrets(this.state.configuredCredentials, 'nt_hash').includes(issue.password) ||
|
||||||
|
getCredentialsSecrets(this.state.configuredCredentials, 'lm_hash').includes(issue.password)) &&
|
||||||
(issue.credential_type === 'PASSWORD' ||
|
(issue.credential_type === 'PASSWORD' ||
|
||||||
issue.credential_type === 'NT_HASH' ||
|
issue.credential_type === 'NT_HASH' ||
|
||||||
issue.credential_type === 'LM_HASH'))
|
issue.credential_type === 'LM_HASH'))
|
||||||
|
|
Loading…
Reference in New Issue