diff --git a/lib/bounty-targets/intigriti.rb b/lib/bounty-targets/intigriti.rb index c3a5b41..a503c71 100644 --- a/lib/bounty-targets/intigriti.rb +++ b/lib/bounty-targets/intigriti.rb @@ -22,7 +22,7 @@ def scan return @scan_results if instance_variable_defined?(:@scan_results) @scan_results = directory_index.select do |program| - program[:confidentiality_level] == 'public' && program[:status] == 'open' && program[:tacRequired] != true + program[:confidentiality_level] == 'public' && program[:status] == 'open' && program[:tacRequired] != true && program[:twoFactorRequired] != true end.map do |program| program.merge(program_scopes(program)) end.sort_by do |program| @@ -62,6 +62,7 @@ def directory_index status: STATUSES[program['status']], confidentiality_level: CONFIDENTIALITY_LEVELS[program['confidentialityLevel']], tacRequired: program['tacRequired'], + twoFactorRequired: program['twoFactorRequired'], min_bounty: program['minBounty'], max_bounty: program['maxBounty'] } diff --git a/spec/bounty-targets/intigriti_spec.rb b/spec/bounty-targets/intigriti_spec.rb index 9f1cb6b..8d7a520 100644 --- a/spec/bounty-targets/intigriti_spec.rb +++ b/spec/bounty-targets/intigriti_spec.rb @@ -23,6 +23,7 @@ id: '12715f4b-d10e-415f-a309-6ab042f6158a', status: 'open', tacRequired: true, + twoFactorRequired: nil, url: 'https://www.intigriti.com/programs/doccle/doccle/detail', max_bounty: {'currency' => 'EUR', 'value' => 2500}, min_bounty: {'currency' => 'EUR', 'value' => 0}, @@ -34,6 +35,7 @@ handle: 'e-tracker', id: 'a09e497e-fd75-4b56-afa0-7a6689389b76', tacRequired: false, + twoFactorRequired: nil, max_bounty: {'currency' => 'EUR', 'value' => 0}, min_bounty: {'currency' => 'EUR', 'value' => 0}, name: 'e-tracker',