HackerOne Executor¶
Category: Pentesting and Bug Bounty
Script: hackerone.py
Integration: REST API
Faraday Plugin: Raw JSON
Website: https://www.hackerone.com
Description¶
Imports bug bounty reports from HackerOne programs into Faraday. Each report becomes a host with one vulnerability prefixed with [BUG-BOUNTY].
Prerequisites¶
- A HackerOne account with an API identity (API username and token) that can read the program reports
Configuration¶
Environment Variables (Setup)¶
| Variable | Required | Description |
|---|---|---|
H1_USER |
Yes | HackerOne API username (the API identity, not your display name) |
H1_HOST |
No | HackerOne API URL (default: https://api.hackerone.com) |
H1_PAGES |
No | Maximum number of pages (100 reports each) to read, from 1 to 100 (default: 10) |
H1_API_TOKEN |
Yes | HackerOne API token |
These variables are also accepted as execution arguments, so a single run can override them.
Execution Arguments¶
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
H1_PROGRAM_HANDLE |
string | No | Comma-separated program handles to import (default: all programs the token can read) |
H1_STATE |
string | No | Comma-separated report states to import, e.g. new,triaged (other values: needs-more-info, pending-program-review, informative, resolved, not-applicable, duplicate, spam, retesting). Default: all. |
H1_MIN_SEVERITY |
string | No | Minimum severity to import: info, low, medium, high or critical (default: no filter) |
YAML Configuration Example¶
executors:
hackerone:
repo_executor: hackerone.py
max_size: 65536
varenvs:
H1_USER: "<h1_user>"
H1_API_TOKEN: "<h1_api_token>"
params:
H1_PROGRAM_HANDLE:
mandatory: false
type: string
base: string
H1_STATE:
mandatory: false
type: string
base: string
H1_MIN_SEVERITY:
mandatory: false
type: string
base: string
How It Works¶
- Authenticates with HTTP Basic using
H1_USERandH1_API_TOKEN - Reads the reports from
/v1/reports, 100 per page, filtered byH1_PROGRAM_HANDLEandH1_STATEwhen set - Creates one vulnerability per report with the report text, state, bounty, reporter, program, CVEs, CWEs and references
- Sets the severity from the report's severity rating (or its score). Reports in a closed state (
resolved,informative,not-applicable,duplicate,spam) are set toinfo. - Drops reports below
H1_MIN_SEVERITY, if set
Notes¶
- Each report is a separate host with the synthetic IP
0.0.0.0. Its hostnames are the report title and the vulnerable endpoint, when present. - All vulnerabilities are imported as open, including those of closed reports.
- Reads at most
H1_PAGESpages. UnrecognizedH1_STATEvalues are ignored. - The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor. UseH1_MIN_SEVERITYto filter by severity.