Skip to content

Bugcrowd Executor

Category: Pentesting and Bug Bounty Script: bugcrowd.py Integration: REST API Faraday Plugin: Raw JSON Website: https://www.bugcrowd.com

Description

Imports validated bug-bounty submissions from Bugcrowd into Faraday. Each submission becomes a vulnerability, so external researcher reports show up alongside your internal scanner findings.

Prerequisites

  • A Bugcrowd account with a bug-bounty program
  • A Bugcrowd API token with permission to read submissions
  • requests available in the agent's Python environment

Configuration

Environment Variables (Setup)

Variable Required Description
BC_API_TOKEN Yes Bugcrowd API token, created in your Bugcrowd account's API settings

These variables are also accepted as execution arguments, so a single run can override them.

Execution Arguments

Parameter Type Mandatory Description
BC_PROGRAM_UUID string No Comma-separated program UUIDs or slugs to import (e.g., acme-prod,acme-mobile). Default: all programs the token can see.
BC_STATE string No Comma-separated submission states to import: new, triaged, unresolved, resolved, duplicate, not-reproducible, not-applicable, out-of-scope, informational, needs-reproduction, spam (some common aliases like open and closed also work). Default: all states.
BC_MIN_PRIORITY string No Only import submissions at or above this priority: 1 (P1, most critical) to 5 (P5, least). P1 maps to Faraday's critical, P2 to high, P3 to medium, P4 to low, P5 to info. Default: import every priority.

YAML Configuration Example

executors:
  bugcrowd:
    repo_executor: bugcrowd.py
    max_size: 65536
    varenvs:
      BC_API_TOKEN: "<bc_api_token>"
    params:
      BC_PROGRAM_UUID:
        mandatory: false
        type: string
        base: string
      BC_STATE:
        mandatory: false
        type: string
        base: string
      BC_MIN_PRIORITY:
        mandatory: false
        type: string
        base: string

How It Works

  1. Authenticates every request with Authorization: Token <BC_API_TOKEN>
  2. Reads the submissions from GET {BC_HOST}/submissions (JSON:API pagination), 100 per page, filtered by program and state when set
  3. Maps each submission to a Faraday vulnerability:
    • Name: [BUG-BOUNTY] Bugcrowd submission: followed by the title
    • Severity: from the Bugcrowd priority (P1 to P5), forced down to info if the submission is in a closed state (resolved, duplicate, not reproducible, not applicable, out of scope, informational or spam)
    • Details: program, researcher, VRT classification, dates, reward and CVSS information, plus any CVEs and CWEs found in the text
  4. Drops submissions whose priority is below BC_MIN_PRIORITY

Notes

  • Each submission becomes a host with the synthetic IP 0.0.0.0, since bug-bounty reports are keyed on a URL rather than an IP address. The report's title and target URL become its hostnames.
  • Vulnerabilities are always created as open; the original Bugcrowd state is preserved in a reference (BC-State).
  • By default the executor reads at most 1000 submissions per run (BC_PAGES, default 10 pages of 100, not exposed as a manifest parameter).
  • The run stops if the token is rejected (HTTP 401). If Bugcrowd rate-limits or denies a later request, the executor keeps what it has already read.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use BC_MIN_PRIORITY to filter by severity.