Skip to content

Commit d5fb75f

Browse files
authored
Fix intigriti (#196)
Co-authored-by: arkadiyt <>
1 parent 6b8399e commit d5fb75f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/bounty-targets/intigriti.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ def directory_index
112112

113113
def program_scopes(program)
114114
url = "https://app.intigriti.com/api/core/public/programs/#{encode(program[:company_handle])}/#{encode(program[:handle])}"
115-
targets = (JSON.parse(SsrfFilter.get(url).body)['domains'].max_by do |domains|
115+
targets = (JSON.parse(SsrfFilter.get(url).body)['assets'].max_by do |domains|
116116
domains['createdAt']
117117
end)['content'].map do |content|
118118
{
119-
type: TYPES[content['type']],
120-
endpoint: content['endpoint'],
119+
type: TYPES[content['typeId']],
120+
endpoint: content['name'],
121121
description: content['description'],
122122
impact: TIERS[content['bountyTierId']]
123123
}

spec/fixtures/intigriti/scopes.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
"handle": "intel",
88
"name": "Intel®",
99
"description": "Intel® Bug Bounty Program\nIntel Corporation believes that forging relationships with security researchers and fostering security research is a crucial part of our Security First Pledge. We encourage security researchers to work with us to mitigate and coordinate the disclosure of potential security vulnerabilities. By submitting your report, you agree to the terms of the Intel® Bug Bounty Program. Intel reserves the right to alter the terms and conditions of this program at its sole discretion.\n",
10-
"domains": [
10+
"assets": [
1111
{
1212
"content": [
1313
{
1414
"id": "dd6d5718-737b-44f3-a833-fa74d0462f1f",
15-
"type": 6,
16-
"endpoint": "(Hardware)\tProcessor (inclusive of micro-code ROM + updates)",
15+
"typeId": 6,
16+
"name": "(Hardware)\tProcessor (inclusive of micro-code ROM + updates)",
1717
"bountyTierId": 4,
1818
"description": null
1919
}
@@ -24,8 +24,8 @@
2424
"content": [
2525
{
2626
"id": "dd6d5718-737b-44f3-a833-fa74d0462f1f",
27-
"type": 6,
28-
"endpoint": "endpoint",
27+
"typeId": 6,
28+
"name": "endpoint",
2929
"bountyTierId": 4,
3030
"description": null
3131
}

0 commit comments

Comments
 (0)