UpdateVulnerabilityById
This method can be used for the following functionality: Update a vulnerability this user has access to, by vulnerability identifier (Id).
Last updated
{
"projectId": "656158c0965172000f9119e8"
}{
"asset_library_ids": ["6569608e55bc00bacc67b417", "...", "..."]
}{
"affected_asset": {
"assetId": "...",
"assetName": "..."
}
}[
{
"assetId": "...",
"assetName": "...",
"notes": [
"..."
],
"tags": [
"..."
],
"actioned": false,
"components": [
{
"name": "...",
"notes": [
"..."
],
"actioned": false,
"tags": [
"..."
]
}
]
}
]{
"created": "2021-06-03T23:15:33.008Z"
}{
"title": "..."
}{
"priority": "Critical"
}{
"status": "Closed"
}{
"status": "Closed",
"reason": "Risk accepted"
}{
"likelihood_of_exploitation": 10
}{
"description": "..."
}{
"attack_scenario": "..."
}{
"remediation_recommendation": "..."
}{
"steps_to_reproduce": "..."
}{
"cvssv4_vector": "CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:L/SI:L/SA:L"
}{
"tags": ["...", "...", "..."]
}{
"notes": [
{
"note": "Lorem ipsum..",
"type": "PLAINTEXT"
}
]
}{
"is_zeroday": true
}{
"is_visible": true
}{
"is_deleted": false
}{
"custom_tags": [{"name": "...", "value": "..."}]
}{
"linked_testcases": ["..."]
}{
"custom_fields": [{"key": "...", "value": "..."}]
}curl -X PUT 'https://demo.attackforge.com/api/ss/vulnerability/5e7afb0be7aa1b0f20eb62fe' -H 'Host: demo.attackforge.com' -H 'X-SSAPI-KEY: ***************************************' -H 'Content-Type: application/json' -H 'Connection: close' -d '{
"title": "SQL Injection",
"priority": "Critical",
"status": "Open",
"likelihood_of_exploitation": 10,
"description": "Lorem Ipsum...",
"attack_scenario": "Lorem Ipsum...",
"remediation_recommendation": "Lorem Ipsum...",
"steps_to_reproduce": "Lorem Ipsum...",
"tags": ["CWE-89", "Injection"],
"notes": [
{
"note": "Lorem ipsum..",
"type": "PLAINTEXT"
}
],
"is_zeroday": false,
"is_visible": true,
"is_deleted": false,
"custom_tags": [{"name": "ext_vuln_score", "value": "123"}],
"custom_fields": [{"key": "af_sys_affected_endpoint", "value": "https://batportal.attackforge.com"}],
"linked_testcases": ["66845d85d427ba0010d0681b"]
}'{
"result": {
"result": "Vulnerability Updated"
}
}