Skip to content

Fix Bugcrowd scope extraction#94

Open
Parasimpaticki wants to merge 1 commit into
sw33tLie:mainfrom
Parasimpaticki:fix-bugcrowd-data-api-endpoints
Open

Fix Bugcrowd scope extraction#94
Parasimpaticki wants to merge 1 commit into
sw33tLie:mainfrom
Parasimpaticki:fix-bugcrowd-data-api-endpoints

Conversation

@Parasimpaticki

@Parasimpaticki Parasimpaticki commented Jun 26, 2026

Copy link
Copy Markdown

BugCrowd scope extraction was broken because their engagement page format changed.

The data-api-endpoints attribute is now rendered on several elements (navbar, footer, toasts, session timer, ...). The previous code grabbed the ResearcherEngagementBrief element, but the change in layout meant the first matched element no longer reliably carried engagementBriefApi.getBriefVersionDocument.

This PR selects the element that actually contains engagementBriefApi.getBriefVersionDocument (preferring ResearcherEngagementBrief, then falling back to a scan of all data-api-endpoints elements).

Tested with two different accounts by providing their session tokens, scope now extracts correctly.

BugCrowd extraction was broken because their engagement page format changed:
the data-api-endpoints attribute is now rendered on several elements and the
first one (navbar) lacks the brief endpoint key. Select the element that
actually contains engagementBriefApi.getBriefVersionDocument instead.

Tested with two different accounts via their session tokens.
@sw33tLie

Copy link
Copy Markdown
Owner

Thanks! Will review ASAP

@sw33tLie

sw33tLie commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Hey @Parasimpaticki,

i've checked this code and i'm gettng the same exact number of entries running it on bugcrowd.

Is this the case for you as well? Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants