Skip to content

Task 4 min read

Connect YesWeHack

The YesWeHack integration imports the reports of a YesWeHack program into the Bug Bounty Validator, where you can validate them with a scan. Ostorlab only reads the reports: it changes nothing in YesWeHack.

What do I need before I start?

  • An Ostorlab plan that includes integrations, and the Admin role in your Ostorlab organisation.
  • A YesWeHack user with the Business Unit Owner, Business Unit Manager or Program Manager role. Only these roles can create personal access tokens.
  • The slug of the program, shown in the URL of its details page. For example, the slug of https://yeswehack.com/business-units/acme/programs/acme-bug-bounty/details is acme-bug-bounty.

Create a personal access token in YesWeHack

These steps follow the YesWeHack documentation: Personal Access Tokens and the API documentation.

  1. Log in to YesWeHack, then click MyYesWeHack tools in the drop-down or the left-side menu.
  2. Click Create Token.
  3. Name the token, for example Ostorlab, and set its validity period.
  4. Select the Business Unit or Program and the Role. Choose a role that gives access to the program, other than Business Unit Bug Tracker and Program Bug Tracker, which are meant for YesWeHack x BugTracker.
  5. Click Create.
  6. Copy the token right away: it cannot be viewed again.

About the validity of the token:

  • If you set an expiry date, YesWeHack sends you a reminder 7 days before the token expires.
  • If your membership of the program or Business Unit is revoked, your tokens for it are revoked too.
  • You can revoke a token at any time from MyYesWeHack tools.

Add the configuration in Ostorlab

  1. Open Integrations/API > Integrations, select the Bug Bounty category, then YesWeHack.
  2. Open the Configuration tab and click New configuration.

    YesWeHack Configuration tab with the New configuration button highlighted

  3. Fill in the form, then click Save.

    Add YesWeHack configuration form with the token field highlighted

Field What to enter
Name A name for the configuration, for example Acme public program.
Program slug The slug of the program.
Personal access token The token. It is encrypted at rest and never shown again.

A program can be connected only once in an organisation.

Test the connection

Open the action menu of the configuration and click Test connection.

Check What it verifies If it fails
Credentials YesWeHack accepts the personal access token. Check that the token was copied entirely, that it has not expired and that it was not revoked.
Program access The token can read the reports of the program. Check the program slug, and that the Business Unit or program and the role of the token give access to the program.

When Credentials fails, Program access is not run.

Import the reports

Ostorlab imports the reports of every enabled configuration every hour. To import right away, click Sync now (the sync icon) on the configuration. The first sync imports every report of the program. The next ones import the reports changed since the last successful sync.

The Last sync column shows:

  • Never synced before the first sync;
  • Synced and the date of the last successful sync;
  • Failed when the last sync failed. Hover over it to read the error. The date of the last successful sync is shown below it.

YesWeHack configurations table with the Last sync column and the Sync now button highlighted

The imported reports appear in Bug Bounty Validator. See Validate bug bounty reports.

Edit, disable or delete the configuration

Use the action menu of the configuration:

  • Edit changes the name, the program slug, the token and the Enabled switch. Leave Personal access token empty to keep the saved token. After a change of program slug, the next sync imports every report of the new program.
  • Disable stops the hourly sync of the configuration, and Sync now is no longer available. The reports already imported stay. Enable turns it back on.
  • Delete removes the configuration and its token from Ostorlab. The reports it imported and their validation history are deleted too. The validation scans stay in your scans.