Skip to content

Commit

Permalink
Fix bugcrowd parsing (#150)
Browse files Browse the repository at this point in the history
Co-authored-by: arkadiyt <>
  • Loading branch information
arkadiyt authored Sep 13, 2023
1 parent e828d0f commit 41b00a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bounty-targets/bugcrowd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def parse_program(program_link)
max_payout_amount[1].gsub(',', '').to_i
end

uri.path += '/target_groups'
groups = ::JSON.parse(::SsrfFilter.get(uri).body)['groups']
uri.path += '/target_groups.json'
groups = ::JSON.parse(::SsrfFilter.get(uri).body)['groups'] || {}
{
name: name,
url: program_link,
Expand Down

0 comments on commit 41b00a8

Please sign in to comment.