Closed 0xJeti closed 1 year ago
bbscope it breaks when a user has some Intigriti hybrid pentests active. The reason is that API call (https://api.intigriti.com/core/researcher/programs) to get list of programs has active pentests attached at the end of JSON array:
bbscope it
[{"type":1,"minBounty":{"value":0.0,"currency":"EUR"},"maxBounty":{"value":3500.0,"currency":"EUR"},"programId":"f65f73f6-e60f-405e-a7fd-xxxxxxxxxx","status":3,"confidentialityLevel":1}, {"baseBounty":{"value":1600.0,"currency":"USD"},"bountyPool":{"value":5600.0,"currency":"USD"},"testWindowStartsAt":1696420800,"testWindowEndsAt":1697630400,"expectedEffort":144000,"type":2,"programId":"678fffc1-c455-452d-ad72-xxxxxxxxxxxxxxxx","status":1002,"confidentialityLevel":2}
Structure of JSON describing a pentest is different then for standard program (maxBounty field is missing).
maxBounty
The solution is to filter JSON array on type==1 which will only return regular programs.
type==1
Hey @0xJeti ,happy to see you here :) Merging! Thank you so much
bbscope it
breaks when a user has some Intigriti hybrid pentests active. The reason is that API call (https://api.intigriti.com/core/researcher/programs) to get list of programshas active pentests attached at the end of JSON array:
Structure of JSON describing a pentest is different then for standard program (
maxBounty
field is missing).The solution is to filter JSON array on
type==1
which will only return regular programs.