infobyte / faraday

Open Source Vulnerability Management Platform
https://www.faradaysec.com
GNU General Public License v3.0
4.78k stars 885 forks source link

Create vulnerability template using API #421

Closed gister9000 closed 3 years ago

gister9000 commented 3 years ago

Your API simply does not have (or it's not documented on https://api.faradaysec.com/) an option to create a vulnerability template. I think it would be very useful to be able to import/export vulnerability templates using API for a quick backup.

The JSON body response we get after issuing a GET request could be used to create a new vulnerability template. From your example:

{
  "_id": 0,
  "_rev": "string",
  "create_at": "2020-12-01T12:00:56.201Z",
  "cwe": "string",
  "data": "string",
  "desc": "string",
  "description": "string",
  "easeofresolution": "trivial",
  "exploitation": "string",
  "external_id": "string",
  "id": 0,
  "name": "string",
  "policyviolations": [
    "string"
  ],
  "refs": [
    "string"
  ],
  "resolution": "string"
}
EricHorvat commented 3 years ago

Hi @gister9000 !

I have recently checked and its only not documented but the POST endpoint exists; we will add it to the API documentation for future referece.

Thank you for the advice!

gister9000 commented 3 years ago

Glad to hear that the endpoint exists. Thanks