AttackForge Enterprise & AttackForge Core
Powered By GitBook
UpdateVulnerabilityWithLibrary
This method can be used for the following: Update a vulnerability on a project you have access to, by vulnerability identifier (Id) and vulnerability library identifier (Id).

Parameters

The following URL, Headers and Parameters are required for requests to this API endpoint. Where a parameter is optional, it will be indicated. Otherwise treat all parameters as mandatory.

Headers

1
PUT /api/ss/vulnerability-with-library/:vulnerabilityId HTTP/1.1
2
Host: demo.attackforge.com
3
X-SSAPI-KEY: APIKey
4
Content-Type: application/json
5
Connection: close
Copied!

Query

vulnerabilityId (string)
Identifier for the vulnerability.
Example:
1
PUT /api/ss/vulnerability-with-library/5f976f775345860a3491e075 HTTP/1.1
Copied!
vulnerabilityLibraryId (string)
Identifier for the issue in the Vulnerability Library. Must be 15-digit number e.g. 203858903055049.
Example:
1
{
2
"vulnerabilityLibraryId": "..."
3
}
Copied!
priority (string) (optional)
Priority for the vulnerability. Must be one of the following: Critical, High, Medium, Low, Info
Example:
1
{
2
"priority": "Critical"
3
}
Copied!
status (string) (optional)
Status for the vulnerability. Must be one of the following: Open, Closed, Retest
Example:
1
{
2
"status": "Closed"
3
}
Copied!
likelihood_of_exploitation (number) (optional)
Likelihood of Exploitation for the vulnerability. Must be a number between 1 to 10.
Example:
1
{
2
"likelihood_of_exploitation": 10
3
}
Copied!
steps_to_reproduce (string) (optional)
Steps to Reproduce the vulnerability (POC).
Example:
1
{
2
"steps_to_reproduce": "..."
3
}
Copied!
tags (array of strings) (optional)
Tags for the vulnerability.
Example:
1
{
2
"tags": ["...", "...", "..."]
3
}
Copied!
notes (array of strings) (optional)
Notes for the vulnerability.
Example:
1
{
2
"notes": ["...", "...", "..."]
3
}
Copied!
is_zeroday (boolean) (optional)
Whether vulnerability is a zeroday (0-day) or not.
Example:
1
{
2
"is_zeroday": true
3
}
Copied!
is_visible (boolean) (optional)
Whether vulnerability is visible to the project team (true) or only team members with Edit access (false).
Example:
1
{
2
"is_visible": true
3
}
Copied!
is_deleted (boolean) (optional)
Whether vulnerability is deleted or not.
Example:
1
{
2
"is_deleted": false
3
}
Copied!

Example

The following example is a cURL request to update a vulnerability by its identifier (Id) and an issue from the Vulnerability Library by its identifier (Id).

Request

Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.
1
curl -X PUT 'https://demo.attackforge.com/api/ss/vulnerability-with-library/5f976f775345860a3491e075' -H 'Host: demo.attackforge.com' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close' -d '{
2
"vulnerabilityLibraryId": "212193650644186",
3
"priority": "Critical",
4
"status": "Open",
5
"likelihood_of_exploitation": 10,
6
"steps_to_reproduce": "Lorem Ipsum...",
7
"tags": ["CWE-89", "Injection"],
8
"notes": ["Lorem Ipsum...", "Lorem Ipsum..."],
9
"is_zeroday": false,
10
"is_visible": true,
11
"is_deleted": false
12
}'
Copied!

Response

Response contains a result object.
1
{
2
"result": {
3
"result": "Vulnerability Updated"
4
}
5
}
Copied!
Last modified 3mo ago