Giter Site home page Giter Site logo

hackeroneapiclient's Introduction

HackerOneAPIClient

The main idea of this project is to send reports automatically (or programmatically, some day automagically) to HackerOne programs.

Configuration

Setup your HackerOne username and APIkey into the config.txt file.

Get your API Key here

Create a dummy project here (I recommend you to also create another h1 account, otherwise you might have too many reports and reports sent to your dummy program cannot be deleted)

How to use

createReport

The basic use is as follows:

./createReports.sh -mode programName domain bug

Mode as 3 possible values

flag Meaning Explanation
-d Dry-run mode Won't make the API call at the end. Just to check parameters and request formation.
-t Testing mode Send reports to a dummy project (usernameTesting and apikeyTesting values are going to be used from the config file)
-p Production mode Use production mode after you tested your reports against a dummy project, then you are ready to finally report them!

Some reports have extra parameters, like open redirect that needs the full vulnerable URL to be added as last parameter.

Examples

  • Creating an open redirect report to program prueba_h1b (dry run mode)

./createReports.sh -d prueba_h1b vulnerable.com open-redirect https://vulnerable.com/1/_evil.com

  • Creating a report of CVE-2019-12616 to program prueba_h1b (dry run mode). The latest parameter is the version of the PhpMyAdmin instance.

./createReports.sh -d prueba_h1b vulnerable.com CVE-2019-12616 4.7.7

  • Creating a report of CVE-2020-3580 to program prueba_h1b (dry run mode).

./createReports.sh -d prueba_h1b vulnerable.com CVE-2020-3580

  • Creating a report of Generic Reflected XSS to program prueba_h1b (dry run mode).

    ./createReports.sh -d prueba_h1b target.domain.com xss "https://target.domain/XXS_payload"

More templates?

I created this project with all the templates I've used. The templates were filled manually but I will migrate them to this project. (eventually)

Supported bugs

  • Generic Open Redirect
  • Generic Reflected XSS
  • PhpMyAdmin CVE-2019-12616
  • CVE-2020-3580

Problems

  • HackerOne's API documentation is awful. There are not many examples. I hate that.
  • I still don't know how to inject markdown code into the template.
  • I was using a dummy program in my primary account but then I couldn't remove the reports sent. I recommend you to create a dummy program in a secondary account.
  • I couldn't find a way to obtain the ids of weaknesses using the API. Withouth the ID you won't be able to submit the report. A way to get the ID is to use the filtering function on the HackerOne web site in your Inbox section. If you filter by weakness you will see the ID in the resulting the URL of the filter.

TODO

  • Use yaml to define every type of bug. (Just like nuclei templates)
  • Take screenshots of vulnerable URLS to be inclued in the reports. This could be solved using Google Photos API and then include the URL in the report.

hackeroneapiclient's People

Contributors

pdelteil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hackeroneapiclient's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.